autotyping: --scalar-return: add a return annotation to functions that only return literal bool, str, bytes, int, or float objects

This commit is contained in:
Hugo van Kemenade 2022-04-03 12:45:23 +03:00
parent 6c3f3afb3a
commit eb4af40d64
2 changed files with 14 additions and 14 deletions

View file

@ -40,7 +40,7 @@ class PyLastTestCase:
assert s.endswith(suffix, start, end)
def _no_xfail_rerun_filter(err, name, test, plugin):
def _no_xfail_rerun_filter(err, name, test, plugin) -> bool:
for _ in test.iter_markers(name="xfail"):
return False