lib/parlour/rbi_generator/module_namespace.rb in parlour-8.1.0 vs lib/parlour/rbi_generator/module_namespace.rb in parlour-9.0.0
- old
+ new
@@ -29,10 +29,10 @@
# interface.
# @param abstract [Boolean] A boolean indicating whether this module is abstract.
# @param block A block which the new instance yields itself to.
# @return [void]
def initialize(generator, name, final, sealed, interface, abstract, &block)
- super(generator, name, final, sealed, &block)
+ super(generator, name, final, sealed, &T.cast(block, T.nilable(T.proc.params(x: Namespace).void)))
@name = name
@interface = interface
@abstract = abstract
end