Skip to content

Commit 15f397c

Browse files
committed
Linting.
1 parent 002bfc9 commit 15f397c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

domdf_python_tools/bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def append( # type: ignore # noqa: D102
640640
super().append(item)
641641
return self
642642

643-
def extend( # type: ignore# noqa: D102
643+
def extend( # type: ignore # noqa: D102
644644
self: _LU,
645645
other: Iterable[_T],
646646
) -> _LU:

domdf_python_tools/stringlist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Indent:
5151
:param type: The indent character.
5252
"""
5353

54-
def __init__(self, size: int = 0, type: str = '\t'): # noqa A002 # pylint: disable=redefined-builtin
54+
def __init__(self, size: int = 0, type: str = '\t'): # noqa: A002 # pylint: disable=redefined-builtin
5555
self.size = int(size)
5656
self.type = str(type)
5757

@@ -75,7 +75,7 @@ def size(self) -> int:
7575
def size(self, size: int) -> None:
7676
self._size = int(size)
7777

78-
@property # noqa: A002,A003
78+
@property # noqa: A002,A003 # pylint: disable=redefined-builtin
7979
def type(self) -> str: # noqa: A002,A003 # pylint: disable=redefined-builtin
8080
"""
8181
The indent character.
@@ -84,7 +84,7 @@ def type(self) -> str: # noqa: A002,A003 # pylint: disable=redefined-builtin
8484
return self._type
8585

8686
@type.setter # noqa: A002,A003 # pylint: disable=redefined-builtin
87-
def type(self, type: str) -> None: # noqa A002 # pylint: disable=redefined-builtin
87+
def type(self, type: str) -> None: # noqa: A002 # pylint: disable=redefined-builtin
8888
if not str(type):
8989
raise ValueError("'type' cannot an empty string.")
9090

tests/test_pretty_print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __repr__(self):
115115
# Class Orderable is orderable with any type
116116
class Orderable:
117117

118-
def __init__(self, hash): # noqa A002 # pylint: disable=redefined-builtin
118+
def __init__(self, hash): # noqa: A002 # pylint: disable=redefined-builtin
119119
self._hash = hash
120120

121121
def __lt__(self, other):

0 commit comments

Comments
 (0)