mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-10 14:34:43 +02:00
Fix linting errors
This commit is contained in:
parent
fd687b8e3b
commit
45e1dcbba2
2 changed files with 6 additions and 7 deletions
|
@ -4,6 +4,8 @@ from __future__ import annotations # allows forward references in annotations
|
|||
|
||||
import logging
|
||||
|
||||
from typing import Union
|
||||
|
||||
from django import forms
|
||||
from django.shortcuts import render
|
||||
|
||||
|
@ -72,7 +74,7 @@ class OrganizationElectionForm(RegistrarForm):
|
|||
(False, "No"),
|
||||
],
|
||||
),
|
||||
required=False
|
||||
required=False,
|
||||
)
|
||||
|
||||
|
||||
|
@ -298,12 +300,12 @@ def _get_organization_type(wizard: ApplicationWizard) -> Union[str, None]:
|
|||
return None
|
||||
|
||||
|
||||
def show_organization_federal(wizard: ApplicationWizard) -> Bool:
|
||||
def show_organization_federal(wizard: ApplicationWizard) -> bool:
|
||||
"""Show this step if the answer to the first question was "federal"."""
|
||||
return _get_organization_type(wizard) == "Federal"
|
||||
|
||||
|
||||
def show_organization_election(wizard: ApplicationWizard) -> Bool:
|
||||
def show_organization_election(wizard: ApplicationWizard) -> bool:
|
||||
"""Show this step if the answer to the first question implies it.
|
||||
|
||||
This shows for answers that aren't "Federal" or "Interstate".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue