Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Functions __name__'s are properties, not methods
  • Loading branch information
PeterJCLaw committed Sep 24, 2022
commit ddd9749d63c5a1ba62c296497557e63f89d398d1
1 change: 1 addition & 0 deletions routemaster/state_machine/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def __call__(
"""Type signature for the label state processor callable."""
...

@property
def __name__(self) -> str:
"""Name of the callable."""
...
Expand Down