Skip to content

Commit 351bbe3

Browse files
committed
Fix noqa codes: F841→F824 for unused global declarations
flake8 reports unused global as F824, not F841.
1 parent 5abeefa commit 351bbe3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bitmath/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def unit(self):
304304
>>> Byte(1.1).unit == 'Bytes'
305305
>>> Gb(2).unit == 'Gbs'
306306
"""
307-
global format_plural # noqa: F841
307+
global format_plural # noqa: F824
308308

309309
if self.prefix_value == 1:
310310
# If it's a '1', return it singular, no matter what
@@ -383,12 +383,12 @@ def from_other(cls, item):
383383
def __repr__(self):
384384
"""Representation of this object as you would expect to see in an
385385
interpreter"""
386-
global _FORMAT_REPR # noqa: F841
386+
global _FORMAT_REPR # noqa: F824
387387
return self.format(_FORMAT_REPR)
388388

389389
def __str__(self):
390390
"""String representation of this object"""
391-
global format_string # noqa: F841
391+
global format_string # noqa: F824
392392
return self.format(format_string)
393393

394394
def format(self, fmt):

0 commit comments

Comments
 (0)