Skip to content

Commit 3275fbe

Browse files
committed
Documentation: add comments to important logic within dynamic eval'd code.
1 parent d14c4a2 commit 3275fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pywisetransfer/deprecation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class deprecated:
2525
@staticmethod
2626
def {orig.__name__}(*args, **kwargs):
2727
self._emit_warning()
28-
return orig(*args, **kwargs)
28+
return orig(*args, **kwargs) # may implicitly include 'self' instance argument
2929
30-
self.f = deprecated.{orig.__name__}
30+
self.f = deprecated.{orig.__name__} # adds a 'deprecated.' prefix to the function repr
3131
""",
3232
locals(),
3333
)

0 commit comments

Comments
 (0)