Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforce typed defs, fix type hint #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
[mypy]
ignore_missing_imports = True
strict_optional = True
warn_redundant_casts = True
disallow_untyped_calls = False
check_untyped_defs = True

[mypy-bravado.client.*]
disallow_untyped_defs = False

[mypy-bravado.docstring_property.*]
disallow_untyped_defs = False

[mypy-bravado.swagger_model.*]
disallow_untyped_defs = False
disallow_untyped_defs = True
2 changes: 1 addition & 1 deletion src/lariat/lariat.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def api_connect(
def get_devices(
client: SwaggerClient,
request_opts: typing.Dict,
fields=typing.Optional[typing.List[str]],
fields: typing.Optional[typing.Set[typing.Any]],
) -> typing.List[typing.Dict[typing.Any, typing.Any]]:
"""Retrieve a list of devices from the DeviceFarmer API.

Expand Down