This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Get synapse/ to pass mypy #11271
Labels
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Z-Dev-Wishlist
Makes developers' lives better, but doesn't have direct user impact
Our mypy configuration currently includes an explicit enumeration of files to check. That list covers 409 of the 491 Python files in the
synapse/
directory.We should:
synapse/
are checked by default, while failing files are explicitly excluded.As of 4249082, the omitted files are:
storage/databases/__init__.py
storage/databases/main/cache.py
storage/schema/*
(25 files)We should probably start with switching from inclusion to exclusion, and burn down from there. Note that the next release of mypy will have significantly better syntax for multiple exclusions, but it's not out yet, so we'll have to get by with gnarlier regex-based syntax.
(Edited 2022-08-30 by dmr to reflect the status quo.)
The text was updated successfully, but these errors were encountered: