summaryrefslogtreecommitdiff
path: root/scalarstring.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-04-04 10:18:52 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-04-04 10:18:52 +0200
commit5139f86a76d2125b33e9288bf307e7063a89f007 (patch)
tree3d1d7c88506e3243f9e2d294bf7128c31cb76094 /scalarstring.py
parent334c46400c2334b3939c76ab7a7b5d9195b6d131 (diff)
downloadruamel.yaml-5139f86a76d2125b33e9288bf307e7063a89f007.tar.gz
update type info on new method
Diffstat (limited to 'scalarstring.py')
-rw-r--r--scalarstring.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scalarstring.py b/scalarstring.py
index 6689911..3282c1e 100644
--- a/scalarstring.py
+++ b/scalarstring.py
@@ -22,6 +22,7 @@ class ScalarString(text_type):
return text_type.__new__(cls, *args, **kw) # type: ignore
def replace(self, old, new, maxreplace=-1):
+ # type: (Any, Any, int) -> Any
return type(self)((text_type.replace(self, old, new, maxreplace)))