TypedDict and missing keys #1883
              
                
                  
                  
                    Answered
                  
                  by
                    brianschubert
                  
              
          
                  
                    
                      dineshbvadhia
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Hi. I don't understand why the following causes a  
 | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            brianschubert
          
      
      
        Nov 8, 2024 
      
    
    Replies: 1 comment
-
| Since  class TransportParams(TypedDict):
    host: str
    user: str
    port: str
    connect_kwargs: ConnectKwargs
    keyfile: str | None
    passphrase: str | NoneSee TypedDict - Inheritance from the typing spec for more details. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        dineshbvadhia
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Since
TransportParamsis a subclass ofConnectKwargs, it inherits all of the keys ofConnectKwargs, more or less the same as if you had writtenSee TypedDict - Inheritance from the typing spec for more details.