Final lint pass

This commit is contained in:
zandercymatics 2023-11-09 11:42:38 -07:00
parent fef39c4cbe
commit b6f3b7a1e0
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 4 additions and 4 deletions

View file

@ -460,7 +460,6 @@ class Command(BaseCommand):
logger.info("Reading domain-contacts data file %s", domain_contacts_filename)
with open(domain_contacts_filename, "r") as domain_contacts_file:
for row in csv.reader(domain_contacts_file, delimiter=sep):
# TerminalHelper.printProgressBar(total_rows_parsed, total_lines)
total_rows_parsed += 1
# fields are just domain, userid, role

View file

@ -1,6 +1,7 @@
import logging
import argparse
import sys
from typing import Tuple
from django_fsm import TransitionNotAllowed # type: ignore
@ -161,7 +162,7 @@ class Command(BaseCommand):
# ======================================================
def update_or_create_domain(
self, transition_domain: TransitionDomain, debug_on: bool
) -> (Domain, bool):
) -> Tuple[Domain, bool]:
"""Given a transition domain, either finds & updates an existing
corresponding domain, or creates a new corresponding domain in
the Domain table.
@ -445,7 +446,7 @@ class Command(BaseCommand):
fed_choices,
org_choices,
debug_on: bool,
) -> (DomainInformation, bool):
) -> Tuple[DomainInformation, bool]:
transition_domain_name = transition_domain.domain_name
# Get associated domain

View file

@ -113,7 +113,7 @@ class TerminalHelper:
else:
logger.info("Please respond with a valid selection.\n")
# @staticmethod
@staticmethod
def array_as_string(array_to_convert: List[str]) -> str:
array_as_string = "{}".format("\n".join(map(str, array_to_convert)))
return array_as_string