summaryrefslogtreecommitdiff
path: root/scalarint.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-06-09 15:29:00 +0200
committerAnthon van der Neut <anthon@mnt.org>2021-06-09 15:29:00 +0200
commit5a5b603289bfd9b9e1bcd57618cf8694bd0ec2aa (patch)
tree3244f3c128fbb54bfc57e06f309a3ea333a62938 /scalarint.py
parent148949be5260969391a5b993cbb3fb602bed55a6 (diff)
downloadruamel.yaml-5a5b603289bfd9b9e1bcd57618cf8694bd0ec2aa.tar.gz
fix for issue 3870.17.8
tagged objects that have a templated (idNNN) anchor, did get the anchor added explicitly, resulting potentially in double anchors
Diffstat (limited to 'scalarint.py')
-rw-r--r--scalarint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scalarint.py b/scalarint.py
index 3923206..1572b0f 100644
--- a/scalarint.py
+++ b/scalarint.py
@@ -11,10 +11,10 @@ __all__ = ['ScalarInt', 'BinaryInt', 'OctalInt', 'HexInt', 'HexCapsInt', 'Decima
class ScalarInt(int):
def __new__(cls, *args, **kw):
# type: (Any, Any, Any) -> Any
- width = kw.pop('width', None) # type: ignore
- underscore = kw.pop('underscore', None) # type: ignore
- anchor = kw.pop('anchor', None) # type: ignore
- v = int.__new__(cls, *args, **kw) # type: ignore
+ width = kw.pop('width', None)
+ underscore = kw.pop('underscore', None)
+ anchor = kw.pop('anchor', None)
+ v = int.__new__(cls, *args, **kw)
v._width = width
v._underscore = underscore
if anchor is not None: