You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last three lines make Pylance unhappy. They say:
Cannot access attribute "ratelimit_remaining" for class "Dict[str, int | dict[Unknown, Unknown]]"
Attribute "ratelimit_remaining" is unknownPylance[reportAttributeAccessIssue](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportAttributeAccessIssue)
Expected behavior
I expect VSCode/Pylance to find the appropriate symbols and be happy.
Environment (please complete the following information):
OS: Ubuntu 22.04 in WSL 2
Python: 3.12
FalconPy: 1.4.6
The text was updated successfully, but these errors were encountered:
jshcodes
added
question ❓
Further information is requested
python
Pull requests that update Python code or general Python related questions
investigating
This issue is being investigated
and removed
bug 🐛
Something isn't working
labels
Jan 28, 2025
If you type your result object, does the Pylance error go away? (Currently the type hint for the return of API operation methods do not speak to the pythonic Result object.)
@jshcodes It actually looks like it does fix some of the errors. But it causes additional errors? Strange. Here's a code sample that uses the total, after, and resources properties:
Describe the bug
When I set
pythonic=True
in my client and do a query, the response object doesn't appear to properly support type hinting.To Reproduce
The last three lines make Pylance unhappy. They say:
Expected behavior
I expect VSCode/Pylance to find the appropriate symbols and be happy.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: