Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @heckad for the contribution!
The Type checkers like You can see more details on this topic in the typing specification Here is an example of a correct implementation of |
If |
@heckad |
Please check before writing. Example:
mypy outputs
Event If I add
Mypy: |
@heckad But the point is that adding from typing import reveal_type
from firebase_admin.app_check import verify_token
v = verify_token(1)
reveal_type(v) Without py.typed markmypy 1.15
pyright 1.1.400
With py.typed markmypy 1.15
pyright 1.1.400
Here what developers expect is that it returns from typing import reveal_type
from firebase_admin import get_app
reveal_type(get_app)
reveal_type(get_app()) |
I think you are confusing hot with soft. The problem with from typing import reveal_type
from firebase_admin import get_app
reveal_type(get_app)
reveal_type(get_app()) mypy's outputs
But this works only if
My point is that |
#569