element-hq / element-hq/synapse

[tracker] `pyupgrade --py36-plus`

Open
#9,744 0 comments 0 reactions 0 assignees View on GitHub
T-Task
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#9744](https://github.com/matrix-org/synapse/issues/9744).

---

This is a tracker issue for running and PR-ing automated refactors using [pyupgrade](https://github.com/asottile/pyupgrade), per #9131.

I'll do this in the following changes:
- [x] Remove all `# -*- coding: utf-8 -*-` lines (#9786)
- [ ] `pyupgrade` the codebase with `--keep-precent-format`
- [x] `tests/` (#10347)
- [x] `synapse/` (#10348)
- [ ] Other (#XXXX)
- [ ] `pyupgrade` without `--keep-precent-format` (#XXXX)

### Overall Extra Info

Some common changes from `pyupgrade`:
- Changes `%`-formatting to `.format` (or f-strings if non-trivial)
- Removes `coding: utf-8` file header (not needed since python 3)
- Changes `typing.TypedDict("A")` class instantiations to `class A(TypedDict)`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.