Skip to content

TypedDict and missing keys #1883

Discussion options

You must be logged in to vote

Since TransportParams is a subclass of ConnectKwargs, it inherits all of the keys of ConnectKwargs, more or less the same as if you had written

class TransportParams(TypedDict):
    host: str
    user: str
    port: str
    connect_kwargs: ConnectKwargs
    keyfile: str | None
    passphrase: str | None

See TypedDict - Inheritance from the typing spec for more details.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dineshbvadhia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants