Skip to content

Commit

Permalink
Fix implicit optional type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Feb 29, 2024
1 parent 66895c7 commit 34ddc6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mreg_cli/commands/host_submodules/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""

import argparse
from typing import Dict, List, Union
from typing import Dict, List, Optional, Union

from mreg_cli.commands.host import registry as command_registry
from mreg_cli.exceptions import HostNotFoundWarning
Expand Down Expand Up @@ -167,7 +167,7 @@ def remove(args: argparse.Namespace) -> None:
if override not in accepted_overrides:
cli_warning(f"Invalid override: {override}. Accepted overrides: {accepted_overrides}")

def forced(override_required: str = None) -> bool:
def forced(override_required: Optional[str] = None) -> bool:
# If we require an override, check if it's in the list of provided overrides.
if override_required:
return override_required in overrides
Expand Down

0 comments on commit 34ddc6a

Please sign in to comment.