Skip to content

Commit 19ae5e5

Browse files
committed
unfix typing
1 parent 4ed9751 commit 19ae5e5

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
repos:
2-
- repo: https://github.com/pre-commit/mirrors-mypy
3-
rev: v1.5.1
4-
hooks:
5-
- id: mypy
6-
args: [--strict]
7-
additional_dependencies: [pydantic, pytest, pytest_mock, types-pytest-lazy-fixture, types-setuptools, semver]
82
- repo: https://github.com/MarcoGorelli/absolufy-imports
93
rev: v0.3.1
104
hooks:
@@ -33,3 +27,15 @@ repos:
3327
rev: v2.7.1
3428
hooks:
3529
- id: prettier
30+
- repo: local
31+
hooks:
32+
- id: python-typecheck
33+
name: python-typecheck
34+
language: system
35+
entry: mypy --strict flag_engine tests
36+
require_serial: true
37+
pass_filenames: false
38+
types: [python]
39+
40+
ci:
41+
skip: [python-typecheck]

flag_engine/segments/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from contextlib import suppress
77
from functools import lru_cache, wraps
88

9-
import jsonpath_rfc9535 # type: ignore[import]
9+
import jsonpath_rfc9535
1010
import semver
1111

1212
from flag_engine.context.mappers import map_any_value_to_context_value

tests/unit/segments/test_segments_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typing
22

33
import pytest
4-
from pytest_lazy_fixtures import lf # type: ignore[import]
4+
from pytest_lazy_fixtures import lf
55
from pytest_mock import MockerFixture
66

77
from flag_engine.context.types import (

0 commit comments

Comments
 (0)