Skip to content

Commit

Permalink
fix: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarrabah committed Jan 28, 2025
1 parent 17324a6 commit 25cee1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
3 changes: 1 addition & 2 deletions src/frformat/custom_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class CustomFormat(ABC, Generic[ValueType]):
formatter: Formatter = DefaultFormatter[ValueType]()

@abstractmethod
def is_valid(self, value: ValueType) -> bool:
...
def is_valid(self, value: ValueType) -> bool: ...

def format(self, value: ValueType) -> str:
if not self.is_valid(value):
Expand Down
3 changes: 1 addition & 2 deletions src/frformat/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@


class Formatter(Protocol, Generic[ValueType]):
def format(self, value: ValueType) -> str:
...
def format(self, value: ValueType) -> str: ...


class DefaultFormatter(Generic[ValueType]):
Expand Down
21 changes: 7 additions & 14 deletions src/frformat/versioned_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@


class Version(Protocol):
def get_id(self) -> str:
...
def get_id(self) -> str: ...

@classmethod
def is_sorted(cls) -> bool:
Expand All @@ -32,23 +31,17 @@ class _SortableVersion(Version, Protocol):
"""A version subclass that is sortable
For type checking purposes only"""

def __lt__(self, v) -> bool:
...
def __lt__(self, v) -> bool: ...

def __le__(self, v) -> bool:
...
def __le__(self, v) -> bool: ...

def __gt__(self, v) -> bool:
...
def __gt__(self, v) -> bool: ...

def __ge__(self, v) -> bool:
...
def __ge__(self, v) -> bool: ...

def __eq__(self, v) -> bool:
...
def __eq__(self, v) -> bool: ...

def __ne__(self, v) -> bool:
...
def __ne__(self, v) -> bool: ...


class VersionedSet(Generic[V]):
Expand Down

0 comments on commit 25cee1a

Please sign in to comment.