On Fri, Oct 15, 2021 at 9:20 AM Sebastian M. Ernst <er...@pleiszenburg.de>
wrote:


> PEP 589 introduces typed dictionaries, but for a fixed set of predefined
> keys (similar to struct-like constructs in other languages). In
> contrast, I am looking for an arbitrary number of typed keys/value pairs.
>

But that's exactly what Dict[int, str] already is -- the keys are ints, the
values are strings, and there can be any number of items.

What are you looking for that's different from that??

As far as I can tell, there is a bug / missing feature in typeguard.

What could you possibly do to better specify this particular type?

Maybe that's more clear in the SO thread you referenced, but SO seems to be
down at the moment ...

-CHB




> For reference, related question on SO:
> https://stackoverflow.com/q/69555006/1672565
>
> Best regards,
> Sebastian
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/DY5DPGWXLOOP3NQYSD73S53EMTRNKD74/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/PBKGZ4WIC4HEIXTXVZCFHUZTMUU3XO2B/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to