File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
with :
11
11
python-version : 3.8
12
12
- run : pip install --upgrade pip
13
- - run : pip install types-setuptools "black<23" ruff "mypy<1 " "jsonschema<5" pytest "returns<1" "aiohttp<4" "aiozmq<1" "django<5" "fastapi<1" "flask<3" "flask-socketio<5.3.1" "pyzmq" "sanic" "tornado<7" "uvicorn<1" "websockets<11"
13
+ - run : pip install types-setuptools "black<23" ruff "mypy<2 " "jsonschema<5" pytest "returns<1" "aiohttp<4" "aiozmq<1" "django<5" "fastapi<1" "flask<3" "flask-socketio<5.3.1" "pyzmq" "sanic" "tornado<7" "uvicorn<1" "websockets<11"
14
14
- run : black --diff --check $(git ls-files -- '*.py' ':!:docs/*')
15
15
- run : ruff $(git ls-files -- '*.py' ':!:docs/*')
16
16
- run : mypy --strict $(git ls-files -- '*.py' ':!:docs/*')
Original file line number Diff line number Diff line change 15
15
- id : ruff
16
16
17
17
- repo : https://github.com/pre-commit/mirrors-mypy
18
- rev : v0.971
18
+ rev : v1.2.0
19
19
hooks :
20
20
- id : mypy
21
21
args : [--strict]
Original file line number Diff line number Diff line change 1
1
"""Test methods.py"""
2
- from jsonrpcserver .result import Result
2
+ from jsonrpcserver .result import Ok , Result
3
3
from jsonrpcserver .methods import global_methods , method
4
4
5
5
# pylint: disable=missing-function-docstring
10
10
def test_decorator () -> None :
11
11
@method
12
12
def func () -> Result :
13
- pass
13
+ return Ok ()
14
14
15
15
assert callable (global_methods ["func" ])
16
16
You can’t perform that action at this time.
0 commit comments