@@ -88,7 +88,7 @@ def g():
8888DEFAULT_PROTOCOL = pickle .HIGHEST_PROTOCOL
8989
9090# Track the provenance of reconstructed dynamic classes to make it possible to
91- # recontruct instances from the matching singleton class definition when
91+ # reconstruct instances from the matching singleton class definition when
9292# appropriate and preserve the usual "isinstance" semantics of Python objects.
9393_DYNAMIC_CLASS_TRACKER_BY_CLASS = weakref .WeakKeyDictionary ()
9494_DYNAMIC_CLASS_TRACKER_BY_ID = weakref .WeakValueDictionary ()
@@ -239,7 +239,7 @@ def _extract_code_globals(co):
239239 out_names = {names [oparg ] for _ , oparg in _walk_global_ops (co )}
240240
241241 # Declaring a function inside another one using the "def ..."
242- # syntax generates a constant code object corresonding to the one
242+ # syntax generates a constant code object corresponding to the one
243243 # of the nested function's As the nested function may itself need
244244 # global variables, we need to introspect its code, extract its
245245 # globals, (look for code object in it's co_consts attribute..) and
@@ -460,7 +460,7 @@ def _is_parametrized_type_hint(obj):
460460 is_typing = getattr (obj , '__origin__' , None ) is not None
461461
462462 # typing_extensions.Literal
463- is_litteral = getattr (obj , '__values__' , None ) is not None
463+ is_literal = getattr (obj , '__values__' , None ) is not None
464464
465465 # typing_extensions.Final
466466 is_final = getattr (obj , '__type__' , None ) is not None
@@ -472,7 +472,7 @@ def _is_parametrized_type_hint(obj):
472472 getattr (obj , '__result__' , None ) is not None and
473473 getattr (obj , '__args__' , None ) is not None
474474 )
475- return any ((is_typing , is_litteral , is_final , is_union , is_tuple ,
475+ return any ((is_typing , is_literal , is_final , is_union , is_tuple ,
476476 is_callable ))
477477
478478 def _create_parametrized_type_hint (origin , args ):
@@ -702,7 +702,7 @@ def _make_skel_func(code, cell_count, base_globals=None):
702702 """
703703 # This function is deprecated and should be removed in cloudpickle 1.7
704704 warnings .warn (
705- "A pickle file created using an old (<=1.4.1) version of cloudpicke "
705+ "A pickle file created using an old (<=1.4.1) version of cloudpickle "
706706 "is currently being loaded. This is not supported by cloudpickle and "
707707 "will break in cloudpickle 1.7" , category = UserWarning
708708 )
0 commit comments