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
Renamed modules: Following modules have been renamed in order to comply with PEP8 naming conventions: dictIO.dictReader->dictIO.dict_reader dictIO.dictWriter->dictIO.dict_writer dictIO.dictParser->dictIO.dict_parser dictIO.cppDict->dictIO.cpp_dict
class CppDict in module dictIO.cppDict has been replaced with the new class SDict[K, V] in module dictIO.dict.
In order to maintain backward compatibility, a thin wrapper class named CppDict is kept in version ~0.4.0.
It is marked as deprecated, though, and will be removed with release 0.5.0.
Where CppDict inherited from UserDict, SDict inherits directly from Python's dict class,
allowing to use it in any context where a dict or any other MutableMapping is expected.
SDict is generic: Static type checkers will hence require type arguments when SDict is used.
Where in dictIO < 0.4.0 you could write my_dict: CppDict = CppDict(),
you will now need to specify the type arguments, e.g. my_dict: SDict[str, Any] = SDict().
With this change, type hinting is in line with how Python's builtin dict class works, and offers more control in static type checking.