How to disable type checking for a python package? #4335
ahmedbilal
started this conversation in
General
Replies: 1 comment 1 reply
-
You can create a local stub file (which are typically located in a project-local directory called "typings") that tells pyright to assume that any symbols imported from Here's what that would look like: # typings/django-environ/__init__.pyi
def __getattr__(name: str) -> Any: ... With this technique, you have the option of adding additional type information for specific classes or functions in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to disable type checking for a python package. For instance, my project is a django based and there is a dependency i.e django-environ that doesn't play well with typings. Can I disable type checking for django-environ? or any other package?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions