Unable to utilise a module as a type. What is the alternative? #9931
Unanswered
RokeJulianLockhart
asked this question in
Q&A
Replies: 1 comment 3 replies
-
A type annotation specifies a set of valid objects for that parameter, variable, etc. It wouldn't make sense for a module to be used within a type annotation. What would that even mean? I suspect what you mean here is that For more information about type annotations, refer to the getting started documentation in pyright. You might also find the type system concepts chapter of the Python typing spec to be useful. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
Problem
Currently, I have:
Instead, I want to use what
stackoverflow.com/revisions/46092347/5
recommends:However, I see:
Diagnosis
Is this an example of
issues/2704#issuecomment-993666444
? I request confirmation because the discussion at that issue and its cited predecessor are somewhat too technical for me to be confident that I've correctly understood them.Beta Was this translation helpful? Give feedback.
All reactions