mypy question

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Dec 30 19:25:26 EST 2023


On 31/12/23 10:06 am, Thomas Passin wrote:
> my suggestion above does 
> work, *except* that you cannot mix-and-match different DictTypex types

Have you tried declaring the argument as a Mapping instead of a dict?
Seeing as Thomas Passin's Sequence experiment worked, it seems like this
should work too.

-- 
Greg


More information about the Python-list mailing list