Skip to content
New issue

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

[FEATURE REQUEST] Type hinting #489

Open
paxcodes opened this issue Feb 20, 2021 · 0 comments
Open

[FEATURE REQUEST] Type hinting #489

paxcodes opened this issue Feb 20, 2021 · 0 comments

Comments

@paxcodes
Copy link

Version of the SDK being used

3.1.0

Actual Behavior

Given code like this and a project that requires strict type-hinting,

response = self.graph.get_connections( 
  id=postId, connection_name="insights", metric=metric
)

I get an "UnknownVariableType" error in Pylance

Type of "response" is partially unknown
  Type of "response" is "Unknown | Any | dict[str, Unknown | bytes | str] | dict[str, str | Unknown]"

Current Workarounds

Desired Behavior

facebook-sdk will do type hinting out-of-the-box making the workarounds unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant