Skip to content

Commit

Permalink
Fix incorrect usages of T.nilable(X, Y) in signatures
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <[email protected]>
  • Loading branch information
Morriar committed Jul 25, 2024
1 parent 106d047 commit 132c0fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rbi/annotations/lhm-shopify.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ class Lhm::Migrator
sig do
params(
columns: T.any(String, Symbol, T::Array[T.any(String, Symbol)]),
index_name: T.nilable(String, Symbol)
index_name: T.nilable(T.any(String, Symbol))
).void
end
def add_index(columns, index_name = nil); end

sig do
params(
columns: T.any(String, Symbol, T::Array[T.any(String, Symbol)]),
index_name: T.nilable(String, Symbol)
index_name: T.nilable(T.any(String, Symbol))
).void
end
def add_unique_index(columns, index_name = nil); end
Expand All @@ -143,7 +143,7 @@ class Lhm::Migrator
sig do
params(
columns: T.any(String, Symbol, T::Array[T.any(String, Symbol)]),
index_name: T.nilable(String, Symbol)
index_name: T.nilable(T.any(String, Symbol))
).void
end
def remove_index(columns, index_name = nil); end
Expand Down
6 changes: 3 additions & 3 deletions rbi/annotations/lhm.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ class Lhm::Migrator
sig do
params(
columns: T.any(String, Symbol, T::Array[T.any(String, Symbol)]),
index_name: T.nilable(String, Symbol)
index_name: T.nilable(T.any(String, Symbol))
).void
end
def add_index(columns, index_name = nil); end

sig do
params(
columns: T.any(String, Symbol, T::Array[T.any(String, Symbol)]),
index_name: T.nilable(String, Symbol)
index_name: T.nilable(T.any(String, Symbol))
).void
end
def add_unique_index(columns, index_name = nil); end
Expand Down Expand Up @@ -145,7 +145,7 @@ class Lhm::Migrator
sig do
params(
columns: T.any(String, Symbol, T::Array[T.any(String, Symbol)]),
index_name: T.nilable(String, Symbol)
index_name: T.nilable(T.any(String, Symbol))
).void
end
def remove_index(columns, index_name = nil); end
Expand Down

0 comments on commit 132c0fc

Please sign in to comment.