Skip to content

Commit 32dff03

Browse files
committed
Add explicit None return annotation on _MetadataRequester.__init_subclass__
1 parent 19a9e48 commit 32dff03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/sklearn/utils/_metadata_requests.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class RequestMethod:
7070
def __get__(self, instance, owner): ...
7171

7272
class _MetadataRequester:
73-
def __init_subclass__(cls, **kwargs): ...
73+
def __init_subclass__(cls, **kwargs) -> None: ...
7474
def get_metadata_routing(self) -> MetadataRequest: ...
7575
# This code is never run in runtime, but it's here for type checking.
7676
# Type checkers fail to understand that the `set_{method}_request`

0 commit comments

Comments
 (0)