mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-13 18:16:37 +01:00
add type hints (Python 3.11)
This commit is contained in:
parent
f933cd0d32
commit
201e6510f8
10 changed files with 272 additions and 135 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import pytest
|
||||
from typing import Any
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
def pytest_addoption(parser: pytest.Parser) -> None:
|
||||
parser.addoption("--relaxed", action='store_true', help="run tests in relaxed mode")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def relaxed(request):
|
||||
def relaxed(request: pytest.FixtureRequest) -> Any:
|
||||
return request.config.getoption("--relaxed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue