Skip to content

Commit 9dc80bc

Browse files
Update docs/spec/annotations.rst
Co-authored-by: Alex Waygood <[email protected]>
1 parent 14426e2 commit 9dc80bc

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
@@ -367,7 +367,7 @@ with a type variable. In this case the return type may use the same
367367
type variable, thus making that method a generic function. For example::
368368

369369
class Copyable:
370-
def copy[T: 'Copyable'](self: T) -> T:
370+
def copy[T: Copyable](self: T) -> T:
371371
# return a copy of self
372372

373373
class C(Copyable): ...

0 commit comments

Comments
 (0)