fix(checker): make builtin type constructor parameter optional

This commit is contained in:
2026-06-16 20:40:48 +02:00
parent 75f8e4af53
commit e5cb90aff6

View File

@@ -61,7 +61,7 @@ class Preamble(Environment):
# TODO: more specific arg types
self._def_function(
name=name,
pos=[Param("object", TopType())],
pos=[Param("object", TopType(), required=False)],
returns=self._types.get_type(name),
)