Hi Marco,

It seems issue is about file py.typed and PEP-561. As I understand issue's description you don't need to do it in C but some work in Python files need to done. Maybe this link helps (https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/)

// BR (KR)

01.01.2022 21:49, Marco Sulla пишет:
I created a type in a C extension, that is an immutable dict. If I do:

a: mydict[str, str]

it works. But it doesn't work with mypy, as signalled to me by an user:

https://github.com/Marco-Sulla/python-frozendict/issues/39

How can I make it work? I don't know what he means with annotating
methods, and furthermore I suppose I can't do this in C.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to