Skip to content
Merged
Changes from all commits
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
3 changes: 1 addition & 2 deletions patterns/creational/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@


class Localizer(Protocol):
def localize(self, msg: str) -> str:
pass
def localize(self, msg: str) -> str: ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea - definitely more in line with modern usage. However; shouldn't the ellipsis go on the next line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I equipped black formatter as requested.
Black formatter insists that ellipsis go the exact same line with the function

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.



class GreekLocalizer:
Expand Down
Loading