summaryrefslogtreecommitdiff
path: root/natsort/ns_enum.py
diff options
context:
space:
mode:
authorSeth M Morton <seth.m.morton@gmail.com>2018-11-18 09:58:36 -0800
committerSeth M Morton <seth.m.morton@gmail.com>2018-11-18 09:58:36 -0800
commit3f5408cd87f3f00e666c9f9c4e2afcc165221da7 (patch)
treed16d7e2d779a15f1f28b545119bea8ae8eb6e8aa /natsort/ns_enum.py
parent7dad614367f72f0c99952c486b39eb1ed8aef600 (diff)
downloadnatsort-3f5408cd87f3f00e666c9f9c4e2afcc165221da7.tar.gz
Fix/ignore code formatting violations in ns_enum.py
The ignored violations are introduced to make the warning system of the enum attributes work. I am OK with introducing them now because they will be removed in version 6.0.0.
Diffstat (limited to 'natsort/ns_enum.py')
-rw-r--r--natsort/ns_enum.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/natsort/ns_enum.py b/natsort/ns_enum.py
index 5e90106..29f8d87 100644
--- a/natsort/ns_enum.py
+++ b/natsort/ns_enum.py
@@ -206,32 +206,32 @@ class _NSEnum(collections.namedtuple("_NSEnum", enum_field_names)):
_msg += "this option does nothing so please simply remove its use."
@property
- def V(self):
+ def V(self): # noqa: N802
warnings.warn(self._msg.format("V"), DeprecationWarning, stacklevel=2)
return 0
@property
- def VERSION(self):
+ def VERSION(self): # noqa: N802
warnings.warn(self._msg.format("VERSION"), DeprecationWarning, stacklevel=2)
return 0
@property
- def T(self):
+ def T(self): # noqa: N802
warnings.warn(self._msg.format("T"), DeprecationWarning, stacklevel=2)
return 0
@property
- def TYPESAFE(self):
+ def TYPESAFE(self): # noqa: N802
warnings.warn(self._msg.format("TYPESAFE"), DeprecationWarning, stacklevel=2)
return 0
@property
- def D(self):
+ def D(self): # noqa: N802
warnings.warn(self._msg.format("D"), DeprecationWarning, stacklevel=2)
return 0
@property
- def DIGIT(self):
+ def DIGIT(self): # noqa: N802
warnings.warn(self._msg.format("DIGIT"), DeprecationWarning, stacklevel=2)
return 0
@@ -242,4 +242,3 @@ ns = _NSEnum(*enum_field_values)
# The below is private for internal use only.
ns_DUMB = 1 << 31
-