Skip to content

Commit

Permalink
Merge pull request #851 from asottile/protocol-38
Browse files Browse the repository at this point in the history
use Protocol directly from typing (3.8+)
  • Loading branch information
asottile authored Jul 1, 2023
2 parents 395e8f7 + 6844b78 commit 540f373
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pyupgrade/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@
from typing import Iterable
from typing import List
from typing import NamedTuple
from typing import Protocol
from typing import Tuple
from typing import TYPE_CHECKING
from typing import TypeVar

from tokenize_rt import Offset
from tokenize_rt import Token

from pyupgrade import _plugins

if TYPE_CHECKING:
from typing import Protocol
else:
Protocol = object

Version = Tuple[int, ...]


Expand Down

0 comments on commit 540f373

Please sign in to comment.