Skip to content
Merged
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
Added missing @classmethod to example
  • Loading branch information
ilevkivskyi committed Sep 4, 2016
commit c5e553d3b74f5a40d65761ed0a1f804012f47910
1 change: 1 addition & 0 deletions pep-0484.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@ of the first argument::

T = TypeVar('T', bound='C')
class C:
@classmethod
def factory(cls: Type[T]) -> T:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing @classmethod?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@markshannon
Oops!
Thank you, fixed this.

# make a new instance of cls

Expand Down