Skip to content

Commit

Permalink
Merge branch 'Aaryanverma-master' into typing_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzi committed Sep 21, 2024
2 parents f154602 + d17482b commit 8a1ef2b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
7 changes: 6 additions & 1 deletion emoji/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@

import re
import unicodedata
import sys
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
from typing_extensions import Literal, Match, TypedDict

if sys.version_info < (3, 9):
from typing_extensions import Literal, Match, TypedDict
else:
from typing import Literal, Match, TypedDict

from emoji import unicode_codes
from emoji.tokenizer import (
Expand Down
7 changes: 6 additions & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

import random
import re
import sys

from typing import Any, Callable, Dict, List, Tuple, Union
from typing_extensions import Literal
if sys.version_info < (3, 9):
from typing_extensions import Literal
else:
from typing import Literal
import pytest
import emoji.unicode_codes
from testutils import (
Expand Down
9 changes: 6 additions & 3 deletions utils/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
import sys
import unicodedata

import emoji.unicode_codes

from typing_extensions import Literal
import pytest
if sys.version_info < (3, 9):
from typing_extensions import Literal
else:
from typing import Literal

import emoji.unicode_codes

_NormalizationForm = Literal['NFC', 'NFD', 'NFKC', 'NFKD']

Expand Down

0 comments on commit 8a1ef2b

Please sign in to comment.