Skip to content

Commit ef6144a

Browse files
committed
[refactor] Satisfy linters.
Signed-off-by: Michael Seifert <[email protected]>
1 parent df29481 commit ef6144a

11 files changed

+13
-4
lines changed

pytest_asyncio/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The main point for importing pytest-asyncio items."""
2+
23
from ._version import version as __version__ # noqa
34
from .plugin import fixture
45

pytest_asyncio/plugin.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-asyncio implementation."""
2+
23
import asyncio
34
import contextlib
45
import enum
@@ -102,8 +103,7 @@ def fixture(
102103
None,
103104
] = ...,
104105
name: Optional[str] = ...,
105-
) -> FixtureFunction:
106-
...
106+
) -> FixtureFunction: ...
107107

108108

109109
@overload
@@ -119,8 +119,7 @@ def fixture(
119119
None,
120120
] = ...,
121121
name: Optional[str] = None,
122-
) -> FixtureFunctionMarker:
123-
...
122+
) -> FixtureFunctionMarker: ...
124123

125124

126125
def fixture(

tests/async_fixtures/test_async_fixtures_scope.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
We support module-scoped async fixtures, but only if the event loop is
33
module-scoped too.
44
"""
5+
56
import asyncio
67

78
import pytest

tests/hypothesis/test_base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for the Hypothesis integration, which wraps async functions in a
22
sync shim for Hypothesis.
33
"""
4+
45
from textwrap import dedent
56

67
import pytest

tests/loop_fixture_scope/test_loop_fixture_scope.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for overriding the event loop with a larger scoped one."""
2+
23
import asyncio
34

45
import pytest

tests/markers/test_class_marker.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test if pytestmark works when defined on a class."""
2+
23
import asyncio
34

45
import pytest

tests/markers/test_module_marker.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test if pytestmark works when defined in a module."""
2+
23
import asyncio
34

45
import pytest

tests/multiloop/test_alternative_loops.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for overriding the event loop."""
2+
23
import asyncio
34

45
import pytest

tests/test_flaky_integration.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Tests for the Flaky integration, which retries failed tests.
22
"""
3+
34
from textwrap import dedent
45

56

tests/test_simple.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Quick'n'dirty unit tests for provided fixtures and markers."""
2+
23
import asyncio
34
from textwrap import dedent
45

tests/test_subprocess.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for using subprocesses in tests."""
2+
23
import asyncio.subprocess
34
import sys
45

0 commit comments

Comments
 (0)