You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename Method refactoring allowed for methods defined to implement container objects
It would be nice if Rope sent an alert to the user to avoid incompatible parameter type errors when using the "len()" function.
fromunittestimportTestCasefrommainimportmainastbclassSentenceTest(TestCase):
defsetUp(self):
self.raw_sentence='Any place with frites and Belgian beer has my vote.'self.sentence=tb.Sentence(self.raw_sentence)
deftest_len(self):
self.assertEqual(len(self.sentence), len(self.raw_sentence))
Apply the Rename Method refactoring with the new name 'text' to the method 'StringlikeMixin.__len__'
The text was updated successfully, but these errors were encountered:
Rename Method refactoring allowed for methods defined to implement container objects
It would be nice if Rope sent an alert to the user to avoid incompatible parameter type errors when using the "len()" function.
Steps to reproduce the behavior:
structure
main.py:
test.py:
The text was updated successfully, but these errors were encountered: