style: remove from future import annotations

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-02-28 16:38:15 -05:00
committed by Henry Schreiner
parent 1b63074d76
commit 708cf1d32b
93 changed files with 63 additions and 239 deletions
-2
View File
@@ -5,8 +5,6 @@
# ///
from __future__ import annotations
import os
import subprocess
import sys
-2
View File
@@ -11,8 +11,6 @@ This will cache the results to all_known_setup.yaml; you can reprint
the results without the `--online` setting.
"""
from __future__ import annotations
import ast
from collections.abc import Iterable, Iterator
from pathlib import Path
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import os
import subprocess
+2 -4
View File
@@ -17,8 +17,6 @@ Suggested usage:
git diff
"""
from __future__ import annotations
import builtins
import functools
import textwrap
@@ -28,7 +26,7 @@ from collections.abc import Iterable, Mapping, Sequence
from datetime import datetime
from io import StringIO
from pathlib import Path
from typing import Any, TextIO
from typing import Any, Self, TextIO
import click
import yaml
@@ -85,7 +83,7 @@ class Project:
name_len = len(self.name) + 4
self.__class__.NAME = max(self.__class__.NAME, name_len)
def __lt__(self, other: Project) -> bool:
def __lt__(self, other: Self) -> bool:
if self.online:
return self.num_stars < other.num_stars
else:
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import os
import shutil
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import argparse
import os
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import argparse
import os
-1
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import annotations
import configparser
from dataclasses import dataclass
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import subprocess
import sys
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import difflib
import logging
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import copy
import difflib
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import re
import sys
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import annotations
import difflib
import logging