Skip to content

Commit

Permalink
Some fixes for mypy issues
Browse files Browse the repository at this point in the history
There have been exposed by upgrades to dependencies that have more type
annotations.
  • Loading branch information
bmerry committed Jan 28, 2021
1 parent 44a27ab commit 85c69fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions katsdpcontroller/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import weakref
import functools
import shutil
from typing import Dict, List, Set, Tuple, Optional
from typing import Dict, List, Set, Tuple, Optional, Any

import pkg_resources
from aiokatcp import Sensor, Reading
Expand Down Expand Up @@ -76,8 +76,8 @@ def _get_guis(server: master_controller.DeviceServer) -> dict:


@aiohttp_jinja2.template('rotate_sd.html.j2')
def _rotate_handler(request: web.Request) -> dict:
defaults = {'rotate_interval': 5000, 'width': 500, 'height': 500}
async def _rotate_handler(request: web.Request) -> dict:
defaults: Dict[str, Any] = {'rotate_interval': 5000, 'width': 500, 'height': 500}
defaults.update(request.query)
return defaults

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
addict==2.1.1
aioconsole # via aiomonitor
aiohttp
aiohttp-jinja2==1.1.0
aiohttp-jinja2==1.4.2
aiohttp-retry # via katsdpmodels
aiokatcp
aiomonitor
Expand Down

0 comments on commit 85c69fd

Please sign in to comment.