autoDocstring
autoDocstring copied to clipboard
return len(X) should infer int
When a function returns len(whatever)
, autoDocstring
should infer that return type is int
Versions (please complete the following information):
- autoDocstring Version: 0.5.1
- Operating System: macOS
- Vscode Version: 1.44.2
Original Code (with line to generate on):
def n_hospitals(self):
return len(self.hospitals)
Expected Result:
def n_hospitals(self):
"""
[summary]
Returns:
int: [description]
"""
return len(self.hospitals)
Actual Result:
def n_hospitals(self):
"""
[summary]
Returns:
[type]: [description]
"""
return len(self.hospitals)