Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
omry committed Jan 18, 2021
1 parent 202ba8c commit 9434634
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ repos:
hooks:
- id: mypy
args: [--strict]
additional_dependencies: ['pytest']
4 changes: 3 additions & 1 deletion tests/structured_conf/test_structured_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ def test_dict_field(self, class_type: str) -> None:
with pytest.raises(ValidationError):
OmegaConf.merge(conf, OmegaConf.create({"dict": {"foo": "fail"}}))

@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires Python 3.8 or newer") # type: ignore
@pytest.mark.skipif(
sys.version_info < (3, 8), reason="requires Python 3.8 or newer"
)
def test_typed_dict_field(self, class_type: str) -> None:
module: Any = import_module(class_type)
input_ = module.WithTypedDictField
Expand Down

0 comments on commit 9434634

Please sign in to comment.