Skip to content

Commit

Permalink
fix: update format for pylint ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lecontm committed Jun 4, 2024
1 parent 158f337 commit 42445ea
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pandora/margins/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ def __init__(self, left: int, up: int, right: int, down: int) -> None:
self.value = Margins(left, up, right, down)

@overload
def __get__(self, instance: None, owner: None) -> FixedMargins:
...
def __get__(self, instance: None, owner: None) -> FixedMargins: ...

@overload
def __get__(self, instance: object, owner: type[object]) -> Margins:
...
def __get__(self, instance: object, owner: type[object]) -> Margins: ...

def __get__(self, instance: object | None, owner: type[object] | None = None) -> FixedMargins | Margins:
if instance is None:
Expand Down Expand Up @@ -103,12 +101,10 @@ class HalfWindowMargins(ReadOnlyDescriptor):
# pylint:disable=too-few-public-methods

@overload
def __get__(self, instance: None, owner: None) -> HalfWindowMargins:
...
def __get__(self, instance: None, owner: None) -> HalfWindowMargins: ...

@overload
def __get__(self, instance: object, owner: type[object]) -> Margins:
...
def __get__(self, instance: object, owner: type[object]) -> Margins: ...

def __get__(self, instance: object | None, owner: type[object] | None = None) -> HalfWindowMargins | Margins:
if instance is None:
Expand Down

0 comments on commit 42445ea

Please sign in to comment.