File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -403,19 +403,18 @@ def create_function_closure():
403
403
closure = create_function_closure.__closure__
404
404
func = types.FunctionType(*args[:-1] + [closure])
405
405
return func
406
+
407
+ probably best realized by AST-analysis and code generation...
406
408
"""
407
409
if self .domain is not None :
408
- return f"{ self .domain ._name } ."
410
+ return f"{ self .domain ._name } .{ self . name } "
409
411
return f"Set({ __name__ } ({ self .func .__qualname__ } )"
410
412
411
413
def __str__ (self ) -> str :
412
414
"""Return a string for print()."""
413
415
if self .domain is not None :
414
416
return f"{ self .domain ._name } .{ self .name } "
415
- if self .name is None :
416
- return f"dangling Set({ self .func } )"
417
- else :
418
- return f"dangling Set({ self .name } "
417
+ return f"dangling Set({ self .func .__name__ } "
419
418
420
419
def normalized (self ) -> T :
421
420
"""Return a set that is normalized *for this domain* with 1 as max."""
You can’t perform that action at this time.
0 commit comments