Skip to content

Context and TypedDict #280

@MosGeo

Description

@MosGeo

I am just getting into app-model and its features. I noticed that context is typed as MutableMapping which makes sense. In my case, I want to use typing. I ended up using TypedDict as it is typed. It seems to work (if you ignore the warning).

  1. Is there a side effect issue of using TypedDict? If not, i suggest the inclusion of TypedDict as a possible type for the context variable.
  2. Is there anythong way to use a class? some of the AIs are suggesting to use ContextNamespace but i am not sure how to use and couldn't get it to work.

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