X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e1036119f264a846bb049fad8404df318bc2f455..066aa9210ac7815cbb9b4a25075f54d614b0afc7:/scripts/make_width_table.py?ds=inline diff --git a/scripts/make_width_table.py b/scripts/make_width_table.py index 89c2025..30fd32c 100644 --- a/scripts/make_width_table.py +++ b/scripts/make_width_table.py @@ -52,13 +52,7 @@ def main() -> None: f.write(f"""# Generated by {basename(__file__)} # wcwidth {wcwidth.__version__} # Unicode {wcwidth.list_versions()[-1]} -import sys -from typing import List, Tuple - -if sys.version_info < (3, 8): - from typing_extensions import Final -else: - from typing import Final +from typing import Final, List, Tuple WIDTH_TABLE: Final[List[Tuple[int, int, int]]] = [ """)