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 Apr 1, 2024
1 parent eaf4961 commit e45cffc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
35 changes: 13 additions & 22 deletions crystal_toolkit/apps/examples/tests/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,33 @@ class DashDuo(Protocol):

# driver = ... # selenium.webdriver.remote.WebDriver

def start_server(self, start_server) -> None:
...
def start_server(self, start_server) -> None: ...

def find_element(self, selector: str) -> dash.development.base_component.Component:
...
def find_element(
self, selector: str
) -> dash.development.base_component.Component: ...

def wait_for_text_to_equal(
self, selector: str, text: str, timeout: int | None = None
) -> None:
...
) -> None: ...

def get_logs(self) -> list[str]:
...
def get_logs(self) -> list[str]: ...

def clear_storage(self) -> None:
...
def clear_storage(self) -> None: ...

def percy_snapshot(self, name: str, wait_for_callbacks: bool = False) -> None:
...
def percy_snapshot(self, name: str, wait_for_callbacks: bool = False) -> None: ...

def multiple_click(self, selector: str, clicks: int) -> None:
...
def multiple_click(self, selector: str, clicks: int) -> None: ...

def wait_for_element(self, selector: str, timeout: int | None = None) -> None:
...
def wait_for_element(self, selector: str, timeout: int | None = None) -> None: ...

def take_snapshot(self, name: str) -> None:
...
def take_snapshot(self, name: str) -> None: ...

def wait_for_page(self, url: str | None = None, timeout: int = 10) -> None:
...
def wait_for_page(self, url: str | None = None, timeout: int = 10) -> None: ...

def find_elements(
self, selector: str
) -> list[dash.development.base_component.Component]:
...
) -> list[dash.development.base_component.Component]: ...

def select_dcc_dropdown(
self,
Expand Down
2 changes: 1 addition & 1 deletion crystal_toolkit/components/phonon.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def layout(self) -> html.Div:

@staticmethod
def _get_ph_bs_dos(
data: dict[str, Any] | None
data: dict[str, Any] | None,
) -> tuple[PhononBandStructureSymmLine, CompletePhononDos]:
data = data or {}

Expand Down
1 change: 1 addition & 0 deletions crystal_toolkit/defaults.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Populate the default values from the JSON file."""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions crystal_toolkit/helpers/asymptote_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
TODO The code should also append a set of special points at the end in case the user wants to add
more "hand drawn" features to the plot.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions crystal_toolkit/helpers/povray_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
For creating publication quality plots.
"""

from __future__ import annotations

from jinja2 import Environment
Expand Down

0 comments on commit e45cffc

Please sign in to comment.