Skip to content

Commit e125009

Browse files
committed
Resolve 3.9 issue with type on unit test
1 parent f625679 commit e125009

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/security_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import subprocess
55
from contextlib import contextmanager
66
from inspect import cleandoc
7+
from typing import Type
78
from unittest import mock
89

910
import pytest
@@ -475,7 +476,7 @@ def test_from_json(json_file, expected):
475476
),
476477
],
477478
)
478-
def test_from_prefix(prefix: str, expected: security.VulnerabilitySource | None):
479+
def test_from_prefix(prefix: str, expected):
479480
assert security.VulnerabilitySource.from_prefix(prefix) == expected
480481

481482

0 commit comments

Comments
 (0)