Skip to content

Commit

Permalink
Enable strict typing for ipp (home-assistant#98792)
Browse files Browse the repository at this point in the history
enable strict typing for ipp
  • Loading branch information
ctalkington authored Aug 23, 2023
1 parent 3c10d0e commit 22c1dde
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .strict-typing
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ homeassistant.components.imap.*
homeassistant.components.input_button.*
homeassistant.components.input_select.*
homeassistant.components.integration.*
homeassistant.components.ipp.*
homeassistant.components.iqvia.*
homeassistant.components.isy994.*
homeassistant.components.jellyfin.*
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/ipp/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class IPPFlowHandler(ConfigFlow, domain=DOMAIN):

VERSION = 1

def __init__(self):
def __init__(self) -> None:
"""Set up the instance."""
self.discovery_info = {}
self.discovery_info: dict[str, Any] = {}

async def async_step_user(
self, user_input: dict[str, Any] | None = None
Expand Down
10 changes: 10 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,16 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true

[mypy-homeassistant.components.ipp.*]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true

[mypy-homeassistant.components.iqvia.*]
check_untyped_defs = true
disallow_incomplete_defs = true
Expand Down

0 comments on commit 22c1dde

Please sign in to comment.