summaryrefslogtreecommitdiff
path: root/scalarstring.py
diff options
context:
space:
mode:
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)))