PEP 484: Add missing def to NewType example function (#2890)

This commit is contained in:
James Hilton-Balfe 2022-11-16 22:15:09 +00:00 committed by GitHub
parent 52f982d0e4
commit 5fd06047be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1558,7 +1558,7 @@ errors by creating simple classes. For example::
class UserId(int): class UserId(int):
pass pass
get_by_user_id(user_id: UserId): def get_by_user_id(user_id: UserId):
... ...
However, this approach introduces a runtime overhead. To avoid this, However, this approach introduces a runtime overhead. To avoid this,