Support dictionary unpacking for classes that don't explicitly derive from Mapping
#4826
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
See this python/typing discussion forum thread.
We can use the
SupportsKeysAndGetItem
protocol to determine whether a type supports dictionary unpacking.The text was updated successfully, but these errors were encountered: