pygobject-stubs icon indicating copy to clipboard operation
pygobject-stubs copied to clipboard

typing: Gio: Make ListModel and ListStore generic

Open jtojnar opened this issue 1 year ago • 1 comments

jtojnar avatar Mar 09 '23 12:03 jtojnar

Hmm, my app crashes when I try to use it so probably requires changes to pygobject itself:

Traceback (most recent call last):
  File "/nix/store/m8l8vlxnp3a5wbvrx162qzjfakbayds8-nonemast-0.1.0/bin/..nonemast-wrapped-wrapped", line 30, in <module>
    from nonemast import main
  File "/nix/store/m8l8vlxnp3a5wbvrx162qzjfakbayds8-nonemast-0.1.0/share/nonemast/nonemast/main.py", line 11, in <module>
    from .window import NonemastWindow
  File "/nix/store/m8l8vlxnp3a5wbvrx162qzjfakbayds8-nonemast-0.1.0/share/nonemast/nonemast/window.py", line 19, in <module>
    from .operations import ensure_coauthors
  File "/nix/store/m8l8vlxnp3a5wbvrx162qzjfakbayds8-nonemast-0.1.0/share/nonemast/nonemast/operations/ensure_coauthors.py", line 17, in <module>
    def ensure_coauthors(updates: Gio.ListStore[PackageUpdate]) -> None:
TypeError: 'GObjectMeta' object is not subscriptable

Edit: Opened https://gitlab.gnome.org/GNOME/pygobject/-/merge_requests/237

jtojnar avatar Mar 09 '23 12:03 jtojnar