Skip to content

Commit ed1d152

Browse files
committed
fix: Ignore type warning as code logic makes it unnecessary
1 parent 7a13a26 commit ed1d152

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: deepl/api_data.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ def valid(self) -> bool:
221221
def limit_reached(self) -> bool:
222222
"""True if this limit is valid and the amount used is greater than
223223
or equal to the amount allowed, otherwise False."""
224-
return (
225-
self.valid and self.count >= self.limit
226-
) # type: ignore[operator]
224+
return self.valid and self.count >= self.limit # type: ignore[operator] # noqa: E501
227225

228226
@property
229227
def limit_exceeded(self) -> bool:

0 commit comments

Comments
 (0)