Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated black formatter #57

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions droplets/emulsions.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,10 @@ def __add__(self, rhs):
return Emulsion(list.__add__(self, rhs))

@overload # type: ignore
def __getitem__(self, key: int) -> SphericalDroplet:
...
def __getitem__(self, key: int) -> SphericalDroplet: ...

@overload
def __getitem__(self, key: slice) -> Emulsion:
...
def __getitem__(self, key: slice) -> Emulsion: ...

def __getitem__(self, key):
# return result from extended slicing as Emulsion
Expand Down
6 changes: 2 additions & 4 deletions droplets/tools/spherical.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,13 @@ def polar_coordinates(
*,
origin: np.ndarray | None = None,
ret_angle: Literal[False] = False,
) -> np.ndarray:
...
) -> np.ndarray: ...


@t.overload
def polar_coordinates(
grid: GridBase, *, origin: np.ndarray | None = None, ret_angle: Literal[True]
) -> tuple[np.ndarray, ...]:
...
) -> tuple[np.ndarray, ...]: ...


def polar_coordinates(
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r ../requirements.txt
black>=19.*
black>=24.*
h5py
isort>=5.1
pyupgrade>=3
Expand Down
Loading