Skip to content

Commit

Permalink
Shim typing.Literal in tests for py3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Jan 7, 2023
1 parent 951fa0d commit 2a2ffec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_parsing.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import pytest
from typing import Dict, Literal, Union
from typing import Dict, Union
from dataclasses import dataclass
from xml.etree.ElementTree import Element, fromstring
from easy_entrez.parsing import parse_dbsnp_variants, VariantSet
from easy_entrez.queries import FetchQuery

try:
from typing import Literal
except ImportError:
# python <=3.7
Literal = Union

@dataclass
class DummyResponse:
Expand Down

0 comments on commit 2a2ffec

Please sign in to comment.