Skip to content

Commit fc04144

Browse files
authored
Add return type for get_metadata_routing()
1 parent 66c94a2 commit fc04144

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
@@ -71,7 +71,7 @@ class RequestMethod:
7171

7272
class _MetadataRequester:
7373
def __init_subclass__(cls, **kwargs): ...
74-
def get_metadata_routing(self): ...
74+
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`
7777
# methods are dynamically generated, and they complain that they are

0 commit comments

Comments
 (0)