From 5139f86a76d2125b33e9288bf307e7063a89f007 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Tue, 4 Apr 2017 10:18:52 +0200 Subject: update type info on new method --- scalarstring.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scalarstring.py') 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))) -- cgit v1.2.1