We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug Report
Same as title. The code example below shows a function being properly typed.
To Reproduce This code produces the bug.
class WorkedAsExpected: ... def deco(a: Any) -> WorkedAsExpected: return WorkedAsExpected() @deco def function_test() -> None: ... @deco class ClassTest: ... reveal_type(function_test) # Revealed type is "test.WorkedAsExpected" reveal_type(ClassTest) # Revealed type is "def () -> test.ClassTest" print(type(function_test)) # <class '__main__.WorkedAsExpected'> print(type(ClassTest)) #<class '__main__.WorkedAsExpected'>
Expected Behavior
reveal_type should be the same type for the function and class examples. The function example is the expected result.
reveal_type
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
Duplicate of #3135.
Sorry, something went wrong.
No branches or pull requests
Bug Report
Same as title. The code example below shows a function being properly typed.
To Reproduce
This code produces the bug.
Expected Behavior
reveal_type
should be the same type for the function and class examples. The function example is the expected result.Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: