Skip to content

Commit 3c97106

Browse files
dataclasses.py: comments
1 parent 4d9f5ab commit 3c97106

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal_filesystem/lib/dataclasses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ def __init__(self, *args, **kwargs):
5252
# Positional arguments
5353
init_fields = [name for name, f in fields.items() if f.init]
5454
for i, value in enumerate(args):
55+
print(f"dataclasses.py: {i} {value}")
5556
if i >= len(init_fields):
56-
raise TypeError(f"Too many positional arguments")
57+
raise TypeError(f"dataclasses.py: too many positional arguments")
5758
setattr(self, init_fields[i], value)
5859

5960
# Keyword arguments, defaults, and default_factory

0 commit comments

Comments
 (0)