Skip to content

Conversation

pavelfeldman
Copy link
Member

No description provided.

method: str
headers: List[Header]
postData: str
url: Optional[str]
Copy link
Member

@mxschmitt mxschmitt Nov 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since total=False all keys inside the dict are optional, so afaik you don't have to specify it each time.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to treat it as a type, probably total=False should not be there

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think mypy then complains from the user perspective if you only specify a single property.

@pavelfeldman pavelfeldman merged commit 7b79980 into microsoft:master Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants