1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

6 Commits

Author SHA1 Message Date
David Sangrey
b7633fa6e3
Handover a number of Lists to Tuples
Tuples are (slightly) more efficient for comparing if x in y. Not that it'll really matter at this scale, but it's technically better and simple to implement.

Applying to all files except theme.py, because theme.py is scary.
2023-12-27 00:29:35 -05:00
David Sangrey
cb2a18025c
[2051] First Pass Remaining Files 2023-11-30 21:30:18 -05:00
A_D
ca915782f6
hotkey: add sys.platform guards to all files
This both makes mypy happy and ensures that the wrong file is not
imported in the wrong place
2022-12-23 19:01:02 +02:00
Athanasius
872ab1b814
hotkey/darwin: No need to sys.platform gate within this
And it gets rid of a `pre-commit run --all-files mypy` error.
2022-12-23 14:47:12 +00:00
Athanasius
a08eef3244
flake8, hotkey/darwin: Just ignore this file for now
It'll take digging into macOS-specific documents to type things sufficiently
to pass the flake8 TAE001 "too few type annotations" check.
2022-12-23 14:47:07 +00:00
Athanasius
f7cba59e61
hotkey: Re-factor into a module, per-arch files
This helps avoid some pre-commit/mypy carping.
2022-12-23 14:47:06 +00:00