Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent b825328 commit 12e99ca
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/widgetastic/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
class LocatorProtocol(Protocol):
CHECK_VISIBILITY: bool

def __locator__(self) -> Union[str, Locator, WebElement]:
...
def __locator__(self) -> Union[str, Locator, WebElement]: ...


LocatorAlias = Union[str, Dict[str, str], WebElement, LocatorProtocol, "Widget"]
Expand Down
1 change: 1 addition & 0 deletions src/widgetastic/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains some supporting classes."""

import functools
import re
import string
Expand Down
1 change: 1 addition & 0 deletions src/widgetastic/widget/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the base classes that are used to implement the more specific behaviour."""

from .base import * # noqa: F403 F401
from .checkbox import Checkbox
from .image import Image
Expand Down
6 changes: 3 additions & 3 deletions src/widgetastic/widget/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ def _get_included_widget(self, includer_id, widget_name, use_parent):
for widget_includer in self._included_widgets:
if widget_includer._seq_id == includer_id:
parent = self if use_parent else self.parent
self._initialized_included_widgets[
widget_includer._seq_id
] = widget_includer.widget_class(parent, self.logger)
self._initialized_included_widgets[widget_includer._seq_id] = (
widget_includer.widget_class(parent, self.logger)
)
break
else:
raise ValueError(f"Could not find includer #{includer_id}")
Expand Down
1 change: 1 addition & 0 deletions src/widgetastic/widget/table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the base classes that are used to implement the more specific behaviour."""

import itertools
import re
from collections import defaultdict
Expand Down

0 comments on commit 12e99ca

Please sign in to comment.