_pickle.UnpicklingError: NEWOBJ class argument must be a type, not types.GenericAlias
05:09 12 Nov 2025

When doing pickle.load() for a Python data dump, I am getting an error:

_pickle.UnpicklingError: NEWOBJ class argument must be a type, not types.GenericAlias

What is the cause?

Python 3.11.

python