Skip to content

Commit fb21e7a

Browse files
Update docs/spec/annotations.rst
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 9dc80bc commit fb21e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/annotations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ of the first argument::
379379

380380
class C:
381381
@classmethod
382-
def factory[T: 'C'](cls: type[T]) -> T:
382+
def factory[T: C](cls: type[T]) -> T:
383383
# make a new instance of cls
384384

385385
class D(C): ...

0 commit comments

Comments
 (0)