Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Resolve mypy type lints when running with Python 3.8 (minimum supported version) #15603

@MadLittleMods

Description

@MadLittleMods

Spawning from #15602, where we should be running mypy with our minimum supported Python version since later versions can include overloads, etc which aren't backwards compatible.

Before we can actually merge the PR which updates the CI to use Python 3.8, we have to resolve the lints that pop up first so we don't just have a broken CI after merging #15602

TODO Python 3.8

TODO Python 3.7

We're no longer trying to target Python 3.7 given that EOL is weeks away (wasted effort)

Dev notes

Find/replace from the mypy output to generate that list:

Find:

^(.*):(\d+): (.*)$

Replace:

 - [ ] [`$1:$2`](https://github.com/matrix-org/synapse/blob/ba572647b291e593e70a30e45c234c9766472ff3/$1#L$2): `$3`

Metadata

Metadata

Assignees

Labels

A-CIIssues related to CI on the Synapse repositoryT-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions