File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -121,9 +121,10 @@ Removed
121121typing
122122------ 
123123
124- * Using  ``TypedDict("T") `` or ``TypedDict("T", None) `` to construct
125-   :class: `~typing.TypedDict ` with zero fields is no more supported.
126-   Use ``TypedDict("T", []) `` instead.
124+ * Using ``TD = TypedDict("TD") `` or ``TD = TypedDict("TD", None) `` to
125+   construct a :class: `~typing.TypedDict ` type with zero field is no
126+   longer supported. Use ``class TTD(TypedDict): pass ``
127+   or ``TD = TypedDict("TD", {}) `` instead.
127128  (Contributed by Bénédikt Tran in :gh: `133823 `.)
128129
129130
Original file line number Diff line number Diff line change 1- Remove support for ``TypedDict("T ") `` and ``TypedDict("T ", None) `` calls for 
2- constructing :class: `typing.TypedDict ` objects with zero fields. Patch by 
3- Bénédikt Tran.
1+ Remove support for ``TD =  TypedDict("TD ")TD =  TypedDict("TD ", None)
2+ calls for  constructing :class: `typing.TypedDict ` objects with zero field. 
3+ Patch by  Bénédikt Tran.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments