-
| Hi We'd like to run mypy as part of CI of an application that uses xarray but ran into a large number of barks from mypy because we perform string-operations on variable names from Datasets and DataArrays. These are type-defined as Hashable. What would be the best way to work around something like: Without adding  | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            rhkleijn
          
      
      
        Jan 21, 2021 
      
    
    Replies: 1 comment 2 replies
-
| I guess  | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        max-sixty
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
I guess
str(var_name).upper()would do the trick.