How would the type hint look like for a types.MappingProxyType object?
For instance for
schema = types.MappingProxyType(
{
"name": "foo",
"email": [
{
"private": "[email protected]",
"active": True
}
]
}
)
MappingProxyType[str, str | list[dict[str, Unknown]]]
If you're using Pylance in VSCode, the types can be inferred
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With