Skip to content

Commit eb2cbca

Browse files
committed
Delete unused type params
1 parent f46ac6c commit eb2cbca

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

core/enumerable.rbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ module Enumerable[unchecked out Elem]: _Each[Elem]
384384
def filter_map: [U] () { (Elem elem) -> (nil | false | U) } -> ::Array[U]
385385
| () -> ::Enumerator[Elem, ::Array[untyped]]
386386

387-
def chain: (*self enumerables) -> ::Enumerator::Chain[Elem, ::Array[self]]
387+
def chain: (*self enumerables) -> ::Enumerator::Chain[Elem]
388388

389389
def tally: () -> ::Hash[Elem, Integer]
390390

core/enumerator.rbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class Enumerator[unchecked out Elem, out Return] < Object
242242
| [U] (U arg0) -> ::Enumerator[[ Elem, U ], Return]
243243
end
244244

245-
class Enumerator::Generator[out Elem, out Return] < Object
245+
class Enumerator::Generator[out Elem] < Object
246246
include Enumerable[Elem]
247247
end
248248

@@ -257,6 +257,6 @@ class Enumerator::Yielder < Object
257257
def to_proc: () -> Proc
258258
end
259259

260-
class Enumerator::Chain[out Elem, out Return] < Object
260+
class Enumerator::Chain[out Elem] < Object
261261
include Enumerable[Elem]
262262
end

test/rbs/cli_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_ancestors
7474
cli.run(%w(-r set ancestors ::Set))
7575
assert_equal <<-EOF, stdout.string
7676
::Set[A]
77-
::Enumerable[A, self]
77+
::Enumerable[A]
7878
::Object
7979
::Kernel
8080
::BasicObject
@@ -85,7 +85,7 @@ def test_ancestors
8585
cli.run(%w(-r set ancestors --instance ::Set))
8686
assert_equal <<-EOF, stdout.string
8787
::Set[A]
88-
::Enumerable[A, self]
88+
::Enumerable[A]
8989
::Object
9090
::Kernel
9191
::BasicObject

test/stdlib/Enumerable_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def each
134134
end
135135
end
136136

137-
testing "::Enumerable[String, TestEnumerable]"
137+
testing "::Enumerable[String]"
138138

139139
def test_inject
140140
assert_send_type "(String init, Symbol method) -> untyped", TestEnumerable.new, :inject, '', :<<

0 commit comments

Comments
 (0)