Skip to content

Commit

Permalink
[refactor] Satisfy linters.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
  • Loading branch information
seifertm committed Apr 29, 2024
1 parent df29481 commit ef6144a
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions pytest_asyncio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The main point for importing pytest-asyncio items."""

from ._version import version as __version__ # noqa
from .plugin import fixture

Expand Down
7 changes: 3 additions & 4 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pytest-asyncio implementation."""

import asyncio
import contextlib
import enum
Expand Down Expand Up @@ -102,8 +103,7 @@ def fixture(
None,
] = ...,
name: Optional[str] = ...,
) -> FixtureFunction:
...
) -> FixtureFunction: ...


@overload
Expand All @@ -119,8 +119,7 @@ def fixture(
None,
] = ...,
name: Optional[str] = None,
) -> FixtureFunctionMarker:
...
) -> FixtureFunctionMarker: ...


def fixture(
Expand Down
1 change: 1 addition & 0 deletions tests/async_fixtures/test_async_fixtures_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
We support module-scoped async fixtures, but only if the event loop is
module-scoped too.
"""

import asyncio

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/hypothesis/test_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Tests for the Hypothesis integration, which wraps async functions in a
sync shim for Hypothesis.
"""

from textwrap import dedent

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/loop_fixture_scope/test_loop_fixture_scope.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests for overriding the event loop with a larger scoped one."""

import asyncio

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/markers/test_class_marker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test if pytestmark works when defined on a class."""

import asyncio

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/markers/test_module_marker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test if pytestmark works when defined in a module."""

import asyncio

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/multiloop/test_alternative_loops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests for overriding the event loop."""

import asyncio

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_flaky_integration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for the Flaky integration, which retries failed tests.
"""

from textwrap import dedent


Expand Down
1 change: 1 addition & 0 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Quick'n'dirty unit tests for provided fixtures and markers."""

import asyncio
from textwrap import dedent

Expand Down
1 change: 1 addition & 0 deletions tests/test_subprocess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for using subprocesses in tests."""

import asyncio.subprocess
import sys

Expand Down

0 comments on commit ef6144a

Please sign in to comment.