Skip to content

Commit

Permalink
Fix types in map_syncer_test and pin mypy version
Browse files Browse the repository at this point in the history
Pinning mypy version might be good idea to avoid spurious type
checking issues when pushing unrelated changes.
  • Loading branch information
p2004a committed Nov 26, 2023
1 parent 4194c5e commit 7df3b6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion tools/map_syncer/map_syncer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ def test_sync_files_deletes_only_old(live_maps_url: str, fs: FakeFilesystem) ->
assert fs.exists(d / "map_old_1.sd7")
assert not fs.exists(d / "map_old_2.sd7")
assert cast(
Dict[str, int], json.loads(fs.get_object(d / "tombstones.json").contents)
Dict[str, int],
json.loads(fs.get_object(d / "tombstones.json").contents or "{}"),
) == {
"map_old_1.sd7": initial_tombstones["map_old_1.sd7"],
}
16 changes: 8 additions & 8 deletions tools/map_syncer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
black>=23.3.0
black>=23.11.0
isort>=5.12.0
mypy>=1.4.1
mypy==1.7.1
paho-mqtt>=1.6.1
pyfakefs>=5.2.2
pyfakefs>=5.3.1
pytest-httpserver>=1.0.8
pytest-mock>=3.11.1
pytest-mqtt>=0.2.0
pytest>=7.4.0
ruff>=0.0.277
types-paho-mqtt>=1.6.0.6
pytest-mock>=3.12.0
pytest-mqtt>=0.3.1
pytest>=7.4.3
ruff>=0.1.6
types-paho-mqtt>=1.6.0.7

0 comments on commit 7df3b6b

Please sign in to comment.