File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11import  io 
2+ from  collections .abc  import  Sequence 
23from  typing  import  Any 
34
45from  zarr .core .group  import  AsyncGroup 
@@ -21,10 +22,15 @@ def __repr__(self) -> str:
2122        console .print (self .tree )
2223        return  str (console .file .getvalue ())
2324
24-     def  _repr_mimebundle_ (self , ** kwargs : dict [str , Any ]) ->  dict [str , str ]:
25+     def  _repr_mimebundle_ (
26+         self ,
27+         include : Sequence [str ],
28+         exclude : Sequence [str ],
29+         ** kwargs : Any ,
30+     ) ->  dict [str , str ]:
2531        # For jupyter support. 
26-         # We don't depend on jupyter, so we can't do  the static types appropriately here.  
27-         return  self .tree ._repr_mimebundle_ (** kwargs )  # type: ignore[no-any-return] 
32+         # Unsure why mypy infers  the return type to by Any  
33+         return  self .tree ._repr_mimebundle_ (include = include ,  exclude = exclude ,  ** kwargs )  # type: ignore[no-any-return] 
2834
2935
3036async  def  group_tree_async (group : AsyncGroup , max_depth : int  |  None  =  None ) ->  TreeRepr :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments