[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
4354bae714
commit
bb0bc23569
|
@ -1,32 +1,32 @@
|
||||||
# mypy: allow-untyped-defs
|
# mypy: allow-untyped-defs
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from collections.abc import Collection
|
||||||
|
from collections.abc import Sized
|
||||||
|
from decimal import Decimal
|
||||||
import math
|
import math
|
||||||
|
from numbers import Complex
|
||||||
import pprint
|
import pprint
|
||||||
import re
|
import re
|
||||||
from collections.abc import Collection, Sized
|
|
||||||
from decimal import Decimal
|
|
||||||
from numbers import Complex
|
|
||||||
from types import TracebackType
|
from types import TracebackType
|
||||||
from typing import (
|
from typing import Any
|
||||||
TYPE_CHECKING,
|
from typing import Callable
|
||||||
Any,
|
from typing import cast
|
||||||
Callable,
|
from typing import ContextManager
|
||||||
ContextManager,
|
from typing import final
|
||||||
Mapping,
|
from typing import Mapping
|
||||||
Pattern,
|
from typing import overload
|
||||||
Sequence,
|
from typing import Pattern
|
||||||
Tuple,
|
from typing import Sequence
|
||||||
Type,
|
from typing import Tuple
|
||||||
TypeVar,
|
from typing import Type
|
||||||
cast,
|
from typing import TYPE_CHECKING
|
||||||
final,
|
from typing import TypeVar
|
||||||
overload,
|
|
||||||
)
|
|
||||||
|
|
||||||
import _pytest._code
|
import _pytest._code
|
||||||
from _pytest.outcomes import fail
|
from _pytest.outcomes import fail
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from numpy import ndarray
|
from numpy import ndarray
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ import sys
|
||||||
|
|
||||||
from _pytest.outcomes import Failed
|
from _pytest.outcomes import Failed
|
||||||
from _pytest.pytester import Pytester
|
from _pytest.pytester import Pytester
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@ -137,7 +136,7 @@ class TestRaises:
|
||||||
pytester.makepyfile(
|
pytester.makepyfile(
|
||||||
"""
|
"""
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
def test_invalid_regex():
|
def test_invalid_regex():
|
||||||
with pytest.raises(ValueError, match="invalid regex character ["):
|
with pytest.raises(ValueError, match="invalid regex character ["):
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
|
|
Loading…
Reference in New Issue