Skip to content

Commit 33eb6ca

Browse files
authored
remove problematic type hint (piccolo-orm#198)
1 parent ed23fa3 commit 33eb6ca

File tree

1 file changed

+1
-5
lines changed
  • piccolo/apps/tester/commands

1 file changed

+1
-5
lines changed

piccolo/apps/tester/commands/run.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import sys
33
import typing as t
44

5-
from _pytest.config import ExitCode
6-
75

86
class set_env_var:
97
def __init__(self, var_name: str, temp_value: str):
@@ -37,9 +35,7 @@ def __exit__(self, *args):
3735
self.set_var(self.existing_value)
3836

3937

40-
def run_pytest(
41-
pytest_args: t.List[str],
42-
) -> t.Union[int, ExitCode]: # pragma: no cover
38+
def run_pytest(pytest_args: t.List[str]) -> int: # pragma: no cover
4339
try:
4440
import pytest
4541
except ImportError:

0 commit comments

Comments
 (0)