1- import  sys 
21from  _typeshed  import  ReadableBuffer , SupportsWrite 
32from  collections .abc  import  Callable , Iterable , Iterator , Mapping 
43from  pickle  import  PickleBuffer  as  PickleBuffer 
@@ -75,10 +74,9 @@ class Pickler:
7574    def  memo (self , value : PicklerMemoProxy  |  dict [int , tuple [int , Any ]]) ->  None : ...
7675    def  dump (self , obj : Any , / ) ->  None : ...
7776    def  clear_memo (self ) ->  None : ...
78-     if  sys .version_info  >=  (3 , 13 ):
79-         def  persistent_id (self , obj : Any , / ) ->  Any : ...
80-     else :
81-         persistent_id : Callable [[Any ], Any ]
77+ 
78+     # this method has no default implementation for Python < 3.13 
79+     def  persistent_id (self , obj : Any , / ) ->  Any : ...
8280
8381@type_check_only  
8482class  UnpicklerMemoProxy :
@@ -101,7 +99,6 @@ class Unpickler:
10199    def  memo (self , value : UnpicklerMemoProxy  |  dict [int , tuple [int , Any ]]) ->  None : ...
102100    def  load (self ) ->  Any : ...
103101    def  find_class (self , module_name : str , global_name : str , / ) ->  Any : ...
104-     if  sys .version_info  >=  (3 , 13 ):
105-         def  persistent_load (self , pid : Any , / ) ->  Any : ...
106-     else :
107-         persistent_load : Callable [[Any ], Any ]
102+ 
103+     # this method has no default implementation for Python < 3.13 
104+     def  persistent_load (self , pid : Any , / ) ->  Any : ...
0 commit comments