lib/tapioca/gem/pipeline.rb in tapioca-0.11.14 vs lib/tapioca/gem/pipeline.rb in tapioca-0.11.15
- old
+ new
@@ -269,12 +269,10 @@
return if skip_object?(name, value)
klass = class_of(value)
- klass_name = if klass == ObjectSpace::WeakMap
- sorbet_supports?(:non_generic_weak_map) ? "ObjectSpace::WeakMap" : "ObjectSpace::WeakMap[T.untyped]"
- elsif T::Generic === klass
+ klass_name = if T::Generic === klass
generic_name_of(klass)
else
name_of(klass)
end