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
from typing import Union
import sys
from logging import Logger
def fetch_name () -> Union[str, None]:
"""Fetch name from --person-name in sys.argv.
Returns:
name of the person if available, otherwise None
"""
test = len(5)
Logger.info(test)
# test commented code
# Logger.info("test code")
for i in range (0, len (sys.argv)) :
if sys.argv[i] == "--name" :
return sys.argv[i + 1]
return None
Here's a test file where E211 seems to fail
ruff v0.1.3 doesn't show any errors.
Here's my ruff.toml
Originally posted by @chaitanya2692 in #3313 (comment)
The text was updated successfully, but these errors were encountered: