Skip to content

Commit

Permalink
chore: fixes to pre-commit settings
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Mar 9, 2021
1 parent 87ec03e commit d0e8cd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ addopts = "-rs -s -Wd"
testpaths = [
"tests",
]

[tool.isort]
profile = "black"
multi_line_output = 3
10 changes: 6 additions & 4 deletions src/uhi/typing/plottable.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class PlottableAxisGeneric(Protocol[T]):
# available on all histograms and not part of the Protocol.

@property
def traits(self) -> PlottableTraits: ...
def traits(self) -> PlottableTraits:
...

def __getitem__(self, index: int) -> T:
"""
Expand Down Expand Up @@ -95,12 +96,13 @@ def __eq__(self, other: Any) -> bool:

@runtime_checkable
class PlottableHistogram(Protocol):

@property
def axes(self) -> Sequence[PlottableAxis]: ...
def axes(self) -> Sequence[PlottableAxis]:
...

@property
def kind(self) -> Kind: ...
def kind(self) -> Kind:
...

# All methods can have a flow=False argument - not part of this Protocol.
# If this is included, it should return an array with flow bins added,
Expand Down

0 comments on commit d0e8cd9

Please sign in to comment.