X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/268dcb677ce80331e0ef104d8335c2ada32872fb..7316a793187eedd94c288f1df648ecca0d8763dd:/src/black/comments.py?ds=inline diff --git a/src/black/comments.py b/src/black/comments.py index 619123a..226968b 100644 --- a/src/black/comments.py +++ b/src/black/comments.py @@ -1,13 +1,7 @@ import re -import sys from dataclasses import dataclass from functools import lru_cache -from typing import Iterator, List, Optional, Union - -if sys.version_info >= (3, 8): - from typing import Final -else: - from typing_extensions import Final +from typing import Final, Iterator, List, Optional, Union from black.nodes import ( CLOSING_BRACKETS,