Skip to content

Commit 071eeef

Browse files
committed
Correct a comment in the README example
1 parent ffba8ae commit 071eeef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def on_other_class(cls: type[OtherT], /) -> None:
4141
print("OtherT!")
4242

4343

44-
# Useful for <=3.10 as soon as `@class_singledispatch` allows specifying
45-
# similarly to `.register`:
46-
# Pass the class to the decorator not to use the annotation for resolution
44+
# Useful for <=3.10, as soon as `@class_singledispatch` allows specifying
45+
# the class similarly to `.register` -- pass the class to the decorator
46+
# not to use the annotation from the function for the targeted class resolution
4747
@on_class.register(SomeOtherT)
4848
def on_some_other_class(cls: type[SomeOtherT], /) -> None:
4949
print("SomeOtherT!")

0 commit comments

Comments
 (0)