We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffba8ae commit 071eeefCopy full SHA for 071eeef
README.md
@@ -41,9 +41,9 @@ def on_other_class(cls: type[OtherT], /) -> None:
41
print("OtherT!")
42
43
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
+# Useful for <=3.10, as soon as `@class_singledispatch` allows specifying
+# the class similarly to `.register` -- pass the class to the decorator
+# not to use the annotation from the function for the targeted class resolution
47
@on_class.register(SomeOtherT)
48
def on_some_other_class(cls: type[SomeOtherT], /) -> None:
49
print("SomeOtherT!")
0 commit comments