Skip to content

Commit 0336309

Browse files
committed
Fixed mypy errors
1 parent 69775f7 commit 0336309

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

netutils/config/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ class PaloAltoNetworksConfigParser(BaseSpaceConfigParser):
14961496
"set deviceconfig system login-banner",
14971497
]
14981498
# Not used, but must be defined
1499-
banner_end = None
1499+
banner_end = ""
15001500

15011501
def _build_banner(self, config_line: str) -> t.Optional[str]:
15021502
"""Handle banner config lines.
@@ -1512,7 +1512,7 @@ def _build_banner(self, config_line: str) -> t.Optional[str]:
15121512
"""
15131513
self._update_config_lines(config_line)
15141514
self._current_parents += (config_line,)
1515-
banner_config = []
1515+
banner_config: t.List[str] = []
15161516
for line in self.generator_config:
15171517
# Note, this is a little fragile and will cause false positives if any line in
15181518
# the middle of a multi-line banner starts with "set ".

0 commit comments

Comments
 (0)