| ▲ | sevensor 3 days ago | |
No, I’d type the function argument as a Mapping. Frozendict is so that the function will raise an exception if it violates its type signature. Edit: that is, if as the caller you want foo to be immutable, then you make it a frozendict | ||