Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed May 10, 2024
1 parent 7e2344f commit cc64c5c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions lib/overpass_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
require File.expand_path(File.join('..', 'ext', 'overpass_parser', 'overpass_parser'), __dir__)
require 'sorbet-runtime'
require_relative('overpass_parser/visitor')
require_relative('overpass_parser/sql_dialect/duckdb')
require_relative('overpass_parser/sql_dialect/postgres')
require_relative('overpass_parser/sql_dialect/sql_dialect')

module OverpassParser
extend T::Sig
Expand Down
2 changes: 1 addition & 1 deletion lib/overpass_parser/nodes/out.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Out < T::Struct
sig do
params(
sql_dialect: SqlDialect::SqlDialect
).returns(T.nilable(String))
).returns(String)
end
def to_sql(sql_dialect)
way_member_nodes = %w[skel body meta].include?(@level_of_details)
Expand Down
2 changes: 1 addition & 1 deletion lib/overpass_parser/nodes/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Request < T::Struct
params(
sql_dialect: SqlDialect::SqlDialect,
finalizer: T.nilable(String)
).returns(T.nilable(String))
).returns(String)
end
def to_sql(sql_dialect, finalizer = nil)
default_set = T.let(nil, T.nilable(String))
Expand Down
2 changes: 0 additions & 2 deletions lib/overpass_parser/sql_dialect/duckdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

module OverpassParser
module SqlDialect
extend T::Sig

class Duckdb < SqlDialect
extend T::Sig

Expand Down
2 changes: 0 additions & 2 deletions lib/overpass_parser/sql_dialect/postgres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

module OverpassParser
module SqlDialect
extend T::Sig

class Postgres < SqlDialect
extend T::Sig

Expand Down
2 changes: 0 additions & 2 deletions lib/overpass_parser/sql_dialect/sql_dialect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

module OverpassParser
module SqlDialect
extend T::Sig

class SqlDialect
extend T::Sig

Expand Down

0 comments on commit cc64c5c

Please sign in to comment.