How to handle libraries with type information in the docstrings? #1673
Unanswered
astronuttt
asked this question in
Q&A
Replies: 1 comment
-
|
If you're dealing with a lot of un-annotated code, try setting untyped-def-behavior to skip-and-infer-return-any in your config: https://pyrefly.org/en/docs/configuration/#untyped-def-behavior |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm fairly new to static type checking and pyrefly. I've been using pyright in vscode with basic/standart type checking and there was very little issue with untyped libraries.
For example I'm using the
vmware-vcenterlibrary in my django application and thecom.vmwarepackage does not have any type hints or type stubs, but it has type information in the docstrings:When using the library pyrefly can't infer the types and throws all kind of errors.
what is the recommended approach for handling this kind of issues in general? does pyrefly have any tools for doing something about this?
Beta Was this translation helpful? Give feedback.
All reactions