lib/tapioca/compilers/dsl/smart_properties.rb in tapioca-0.6.2 vs lib/tapioca/compilers/dsl/smart_properties.rb in tapioca-0.6.3
- old
+ new
@@ -141,14 +141,11 @@
types
else
"T.untyped"
end
- # Early return for "T.untyped", nothing more to do.
- return type if type == "T.untyped"
-
might_be_optional = Proc === required || !required
- type = "T.nilable(#{type})" if might_be_optional
+ type = as_nilable_type(type) if might_be_optional
type
end
end
end