-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New resolver for getting parameter types from *.pyi files #220
Conversation
…*.pyi. - The signatures extras now installs the typeshed-client package.
from .optionals import ( | ||
import_typeshed_client, | ||
typeshed_client_support, | ||
typing_extensions_import, | ||
) |
Check notice
Code scanning / CodeQL
Cyclic import
typeshed_client_support, | ||
typing_extensions_import, | ||
) | ||
from .util import unique |
Check notice
Code scanning / CodeQL
Cyclic import
@@ -68,7 +68,7 @@ | |||
import_fsspec, | |||
import_jsonnet, | |||
) | |||
from .parameter_resolvers import ConditionalDefault | |||
from .parameter_resolvers import UnknownDefault |
Check notice
Code scanning / CodeQL
Cyclic import
|
||
from ._stubs_resolver import get_stub_types |
Check notice
Code scanning / CodeQL
Cyclic import
|
||
def test_get_mro_method_parent(self): | ||
class WithoutParent: | ||
... |
Check notice
Code scanning / CodeQL
Statement has no effect
- When stub type fails to parse, keep it with empty type if not among known parameters. - Avoid issues with invalid value defaults, e.g. torch.optim.optimizer.required. - Fixed fail_untyped=False not propagated to subclass --*.help actions.
535ce73
to
1251812
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What does this PR do?
See title.
Before submitting