Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r91621:2e1b4bdca21f Date: 2017-06-17 18:29 +0200 http://bitbucket.org/pypy/pypy/changeset/2e1b4bdca21f/
Log: Add "can_be_None=False" in the result annotation of these methods diff --git a/rpython/rlib/rstring.py b/rpython/rlib/rstring.py --- a/rpython/rlib/rstring.py +++ b/rpython/rlib/rstring.py @@ -636,7 +636,7 @@ return SomeInteger(nonneg=True) def method_build(self): - return SomeString() + return SomeString(can_be_None=False) def rtyper_makerepr(self, rtyper): from rpython.rtyper.lltypesystem.rbuilder import stringbuilder_repr @@ -676,7 +676,7 @@ return SomeInteger(nonneg=True) def method_build(self): - return SomeUnicodeString() + return SomeUnicodeString(can_be_None=False) def rtyper_makerepr(self, rtyper): from rpython.rtyper.lltypesystem.rbuilder import unicodebuilder_repr _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit