Skip to content

Commit

Permalink
remove typing_extensions from install_requires
Browse files Browse the repository at this point in the history
No longer needed since we target >= 3.8 now
  • Loading branch information
anthrotype authored and khaledhosny committed Dec 2, 2023
1 parent 2f24905 commit 36684d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ python_requires = >=3.8
install_requires =
attrs >= 22.1.0
fonttools[ufo] >= 4.0.0
typing_extensions ; python_version < "3.8"

# https://www.python.org/dev/peps/pep-0561
[options.package_data]
Expand Down
9 changes: 1 addition & 8 deletions src/ufoLib2/typing.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
from __future__ import annotations

import os
import sys
from typing import TypeVar, Union
from typing import Protocol, TypeVar, Union

from fontTools.pens.basePen import AbstractPen
from fontTools.pens.pointPen import AbstractPointPen

if sys.version_info >= (3, 8):
from typing import Protocol
else:
from typing_extensions import Protocol


T = TypeVar("T")
"""Generic variable for mypy for trivial generic function signatures."""

Expand Down

0 comments on commit 36684d4

Please sign in to comment.