Skip to content

Commit d3787ef

Browse files
c0llab0rat0rntninja
authored andcommitted
Remove unnecessary noqa hints related to line length
1 parent ff7da06 commit d3787ef

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ipfshttpclient/encoding.py

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def __init__(self) -> None:
106106
self._lasterror = None # type: ty.Optional[ValueError]
107107

108108
# It works just fine and I don't want to rewrite it just because mypy doesn't understand…
109-
# noqa: E114, E116
110109
@ty.no_type_check
111110
def parse_partial(self, data: bytes) -> ty.Generator[utils.json_value_t, ty.Any, ty.Any]:
112111
"""Incrementally decodes JSON data sets into Python objects.

ipfshttpclient/filescanner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def __init__(
512512
#
513513
# Note: `os.fwalk` support for binary paths was only added in 3.7+.
514514
directory_str_or_fd = directory_str # type: ty.Union[ty.AnyStr, int]
515-
if HAVE_FWALK and (not isinstance(directory_str, bytes) or HAVE_FWALK_BYTES): # noqa: E501
515+
if HAVE_FWALK and (not isinstance(directory_str, bytes) or HAVE_FWALK_BYTES):
516516
self._close_fd = directory_str_or_fd = os.open(directory_str, os.O_RDONLY | O_DIRECTORY)
517517

518518
self._generator = self._walk(

0 commit comments

Comments
 (0)