Skip to content

Pyright has issues with some things in 3.10.0 of the api #445

@jhultgre

Description

@jhultgre

Pyright has issues with some things in 3.10.0 of the api

These two things are really common in our code

from shotgun_api3 import Shotgun
has this warning
"Shotgun" is not exported from module "shotgun_api3" Import from "shotgun_api3.shotgun" instead (Pyright)
I assume since __init__.py doesn't define an __all__

And when accessing any fields returned from the api
asset['code']
Could not access item in TypedDict "code" is not a defined key in "BaseEntity" (Pyright)

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