You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first argument provides the initial value for the default_factory attribute; it defaults to None. All remaining arguments are treated the same as if they were passed to the dict constructor, including keyword arguments.
However, the second argument is currently treated as a generic type that influences the type of the first argument.
The docs for
defaultdict
say:However, the second argument is currently treated as a generic type that influences the type of the first argument.
The following should be valid:
However, we get the error
error: Argument 1 to "defaultdict" has incompatible type "Type[Dict[Any, Any]]"; expected "Optional[Callable[[], str]]"
.The text was updated successfully, but these errors were encountered: