Skip to content

Commit

Permalink
Remove duplicated mixins from annotations
Browse files Browse the repository at this point in the history
Those are already generated by Tapioca and are caught by `check-shims`
since Shopify/tapioca#1077 was released.

Signed-off-by: Alexandre Terrasa <[email protected]>
  • Loading branch information
Morriar committed Oct 21, 2022
1 parent b1bcc2b commit d98ec05
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 57 deletions.
26 changes: 0 additions & 26 deletions rbi/annotations/actionpack.rbi
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# typed: strict

module AbstractController::Helpers
mixes_in_class_methods(::AbstractController::Helpers::ClassMethods)
end

module AbstractController::UrlFor
mixes_in_class_methods(::AbstractController::UrlFor::ClassMethods)
end

class ActionController::Base < ::ActionController::Metal
include(::ActiveSupport::Rescuable)
end

class ActionController::API
MODULES = T.let(T.unsafe(nil), T::Array[T.untyped])
end
Expand All @@ -21,10 +9,6 @@ module ActionController::Flash::ClassMethods
def add_flash_types(*types); end
end

module ActionController::Helpers
mixes_in_class_methods(::ActionController::Helpers::ClassMethods)
end

module ActionController::Helpers::ClassMethods
sig { returns(ActionView::Base) }
def helpers; end
Expand Down Expand Up @@ -226,14 +210,6 @@ class ActionController::Parameters
def values_at(*keys); end
end

module ActionController::Renderers
mixes_in_class_methods(::ActionController::Renderers::ClassMethods)
end

module ActionController::Rendering
mixes_in_class_methods(::ActionController::Rendering::ClassMethods)
end

module ActionController::RequestForgeryProtection
private

Expand All @@ -255,8 +231,6 @@ module ActionController::StrongParameters
end

module ActionDispatch::Http::Parameters
mixes_in_class_methods ::ActionDispatch::Http::Parameters::ClassMethods

sig { returns(ActionController::Parameters) }
def parameters(); end

Expand Down
19 changes: 0 additions & 19 deletions rbi/annotations/graphql.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ module GraphQL
end

class GraphQL::Backtrace
include ::Enumerable
extend ::Forwardable

Elem = type_member {{fixed: T.untyped}}
end

Expand All @@ -27,23 +24,15 @@ class GraphQL::Schema::InputObject < ::GraphQL::Schema::Member
end

class GraphQL::Schema::Object < ::GraphQL::Schema::Member
extend ::GraphQL::Schema::Member::HasFields

sig { returns(GraphQL::Query::Context) }
def context; end
end

class GraphQL::Schema::Resolver
extend ::GraphQL::Schema::Member::BaseDSLMethods

sig { returns(GraphQL::Query::Context) }
def context; end
end

class GraphQL::Schema::Member
extend ::GraphQL::Schema::Member::BaseDSLMethods
end

module GraphQL::Schema::Member::HasFields
sig do
params(
Expand All @@ -64,11 +53,3 @@ module GraphQL::Schema::Interface
mixes_in_class_methods ::GraphQL::Schema::Member::BaseDSLMethods
mixes_in_class_methods ::GraphQL::Schema::Member::HasFields
end

class GraphQL::Schema::Mutation < ::GraphQL::Schema::Resolver
extend ::GraphQL::Schema::Member::HasFields
end

class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver
extend ::GraphQL::Schema::Member::HasFields
end
12 changes: 0 additions & 12 deletions rbi/annotations/sidekiq.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,14 @@ class Sidekiq::Launcher
end

class Sidekiq::Middleware::Chain
include ::Enumerable

Elem = type_member {{fixed: T.untyped}}
end

class Sidekiq::ProcessSet
include ::Enumerable

Elem = type_member {{fixed: Sidekiq::Process}}
end

class Sidekiq::Queue
include ::Enumerable

Elem = type_member {{fixed: Sidekiq::Job}}

sig { returns(T::Boolean) }
Expand All @@ -61,14 +55,10 @@ class Sidekiq::ScheduledSet < ::Sidekiq::JobSet
end

class Sidekiq::SortedSet
include ::Enumerable

Elem = type_member {{fixed: Sidekiq::SortedEntry}}
end

module Sidekiq::Worker
mixes_in_class_methods ::Sidekiq::Worker::ClassMethods

sig { returns(String) }
def jid; end
end
Expand All @@ -85,7 +75,5 @@ module Sidekiq::Worker::ClassMethods
end

class Sidekiq::WorkSet
include ::Enumerable

Elem = type_member {{fixed: T.untyped}}
end

0 comments on commit d98ec05

Please sign in to comment.