Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Make sydent.config pass mypy --strict#431

Merged
DMRobertson merged 3 commits intomainfrom
dmr/mypy-config
Oct 19, 2021
Merged

Make sydent.config pass mypy --strict#431
DMRobertson merged 3 commits intomainfrom
dmr/mypy-config

Conversation

@DMRobertson
Copy link
Copy Markdown
Contributor

This was easier than I expected!

Part of #414.

@DMRobertson DMRobertson requested a review from a team October 18, 2021 19:19
"""

def __init__(self):
def __init__(self) -> None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this needed? (Does strict require this?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's needed if there are no arguments other than self. Some discussion here: matrix-org/synapse#10892 (comment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

And this is from the option disallow-untyped-defswhich is implied by--strict`.

@clokep
Copy link
Copy Markdown
Member

clokep commented Oct 19, 2021

It seems linting is failing here though.

@DMRobertson DMRobertson requested a review from clokep October 19, 2021 11:33
Copy link
Copy Markdown
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

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

Looks good!

@DMRobertson DMRobertson merged commit 8404075 into main Oct 19, 2021
@DMRobertson DMRobertson deleted the dmr/mypy-config branch October 19, 2021 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants