def get_base_generic_type(object_type):
return get_origin(object_type) or object_type<EOL>
Utility method to return the equivalent non-customized type for a Generic type, including user-defined ones.
for example calling it on typing.List<~T>[int] will return typing.List<~T>.

If the type is not parametrized it is returned as is

:param object_type:
:return: