facebook-sdk icon indicating copy to clipboard operation
facebook-sdk copied to clipboard

[FEATURE REQUEST] Type hinting

Open paxcodes opened this issue 4 years ago • 0 comments

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.

paxcodes avatar Feb 20 '21 17:02 paxcodes