Skip to content

Commit 7f51c64

Browse files
authored
Merge pull request #2324 from Shopify/at-remove-t-sig
Remove useless `extend T::Sig`
2 parents 5f8ae67 + f7894cd commit 7f51c64

File tree

113 files changed

+2
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2
-344
lines changed

lib/tapioca.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
require "rubygems/user_interaction"
66

77
module Tapioca
8-
extend T::Sig
9-
108
@traces = [] #: Array[TracePoint]
119

1210
class Error < StandardError; end

lib/tapioca/bundler_ext/auto_require_hook.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ module BundlerExt
88
# `Bundler.require`.
99
# @requires_ancestor: ::Bundler::Dependency
1010
module AutoRequireHook
11-
extend T::Sig
1211
@exclude = [] #: Array[String]
1312
@enabled = false #: bool
1413

1514
class << self
16-
extend T::Sig
17-
1815
#: (untyped name) -> bool
1916
def excluded?(name)
2017
@exclude.include?(name)

lib/tapioca/cli.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,6 @@ def __print_version
378378
@addon_mode = false
379379

380380
class << self
381-
extend T::Sig
382-
383381
# Indicates that we are running from the LSP, set using the `addon_mode!` method
384382
attr_reader :addon_mode
385383

lib/tapioca/commands/annotations.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
module Tapioca
55
module Commands
66
class Annotations < CommandWithoutTracker
7-
extend T::Sig
8-
97
#: (
108
#| central_repo_root_uris: Array[String],
119
#| ?auth: String?,

lib/tapioca/commands/check_shims.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
module Tapioca
55
module Commands
66
class CheckShims < CommandWithoutTracker
7-
extend T::Sig
87
include SorbetHelper
98
include RBIFilesHelper
109

lib/tapioca/commands/command.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module Tapioca
55
module Commands
66
# @abstract
77
class Command
8-
extend T::Sig
98
class FileWriter < Thor
109
include Thor::Actions
1110
end

lib/tapioca/dsl/compiler.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ module Dsl
66
# @abstract
77
#: [ConstantType < T::Module[top]]
88
class Compiler
9-
extend T::Sig
10-
119
include RBIHelper
1210
include Runtime::Reflection
1311
extend Runtime::Reflection
@@ -24,8 +22,6 @@ class Compiler
2422
@@requested_constants = [] #: Array[T::Module[top]] # rubocop:disable Style/ClassVars
2523

2624
class << self
27-
extend T::Sig
28-
2925
#: (T::Module[top] constant) -> bool
3026
def handles?(constant)
3127
processable_constants.include?(constant)

lib/tapioca/dsl/compilers/aasm.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ module Compilers
3434
#
3535
#: [ConstantType = (Class[::AASM] & ::AASM::ClassMethods)]
3636
class AASM < Compiler
37-
extend T::Sig
38-
3937
# Taken directly from the AASM::Core::Event class, here:
4038
# https://github.com/aasm/aasm/blob/0e03746/lib/aasm/core/event.rb#L21-L29
4139
EVENT_CALLBACKS = [
@@ -200,8 +198,6 @@ def decorate
200198
end
201199

202200
class << self
203-
extend T::Sig
204-
205201
# @override
206202
#: -> Enumerable[T::Module[top]]
207203
def gather_constants

lib/tapioca/dsl/compilers/action_controller_helpers.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ module Compilers
6363
# ~~~
6464
#: [ConstantType = singleton(::ActionController::Base)]
6565
class ActionControllerHelpers < Compiler
66-
extend T::Sig
67-
6866
# @override
6967
#: -> void
7068
def decorate
@@ -118,8 +116,6 @@ def decorate
118116
end
119117

120118
class << self
121-
extend T::Sig
122-
123119
# @override
124120
#: -> Enumerable[T::Module[top]]
125121
def gather_constants

lib/tapioca/dsl/compilers/action_mailer.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ module Compilers
3131
# ~~~
3232
#: [ConstantType = singleton(::ActionMailer::Base)]
3333
class ActionMailer < Compiler
34-
extend T::Sig
35-
3634
# @override
3735
#: -> void
3836
def decorate
@@ -51,8 +49,6 @@ def decorate
5149
end
5250

5351
class << self
54-
extend T::Sig
55-
5652
# @override
5753
#: -> Enumerable[T::Module[top]]
5854
def gather_constants

0 commit comments

Comments
 (0)