Skip to content

Commit 30dcf1d

Browse files
committed
Use older 3.9 union syntax.
1 parent c2098df commit 30dcf1d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pytest_cov/engine.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import warnings
1313
from io import StringIO
1414
from pathlib import Path
15+
from typing import Union
1516

1617
import coverage
1718
from coverage.data import CoverageData
@@ -68,9 +69,7 @@ def _data_suffix(name):
6869
class CovController:
6970
"""Base class for different plugin implementations."""
7071

71-
cov: coverage.Coverage | None
72-
73-
def __init__(self, options: argparse.Namespace, config: None | object, nodeid: None | str):
72+
def __init__(self, options: argparse.Namespace, config: Union[None, object], nodeid: Union[None, str]):
7473
"""Get some common config used by multiple derived classes."""
7574
self.cov_source = options.cov_source
7675
self.cov_report = options.cov_report

0 commit comments

Comments
 (0)