Skip to content

[FEATURE REQUEST] Type hinting #489

@paxcodes

Description

@paxcodes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions