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 numberDiff line numberDiff line change
Expand Up@@ -26,8 +26,7 @@


classLocalizer(Protocol):
deflocalize(self, msg: str) ->str:
pass
deflocalize(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
ContributorAuthor

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.



classGreekLocalizer:
Expand Down
Loading