SDK - Components - Fixed bug in _strip_type_hints_using_lib2to3 (#3679)

This commit is contained in:
Alexey Volkov 2020-05-04 22:41:08 -07:00 committed by GitHub
parent a539d53be6
commit 5ff7a65a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ def _strip_type_hints_using_lib2to3(source_code: str) -> str:
def get_fixers(self):
return self._fixers, []
stripped_code = Refactor([StripAnnotations]).refactor_string(source_code, '')
stripped_code = str(Refactor([StripAnnotations]).refactor_string(source_code, ''))
return stripped_code