Reformat code with upgraded version of black (#3446)

This commit is contained in:
zhexu14
2024-10-05 07:19:39 +10:00
committed by GitHub
parent b008305275
commit 0e9a8ac1a1
58 changed files with 121 additions and 161 deletions

View File

@@ -1,4 +1,5 @@
"""Generates landmaps from GIS shapefiles."""
import argparse
import logging
import pickle

View File

@@ -17,8 +17,7 @@ from game import VERSION
class ReportElement(ABC):
@abstractmethod
def __str__(self) -> str:
...
def __str__(self) -> str: ...
class Heading(ReportElement):
@@ -75,8 +74,7 @@ ReportStream: TypeAlias = Iterator[ReportElement]
class LinterBase(ABC):
def stream_reports(self) -> ReportStream:
...
def stream_reports(self) -> ReportStream: ...
class UncheckedDataLinter(LinterBase):

View File

@@ -20,6 +20,7 @@ beacons = {
}
"""
import argparse
import dataclasses
import gettext

View File

@@ -1,4 +1,5 @@
"""Command-line utility for displaying human readable loadout configurations."""
import argparse
import sys
from collections.abc import Iterator