Skip to content

Commit 2ab39b8

Browse files
committed
ruff fix unsafe
1 parent af7dc51 commit 2ab39b8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests/argparse/test_18.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pathlib import Path
99

1010

11-
def main():
11+
def main() -> None:
1212
parser = argparse.ArgumentParser(description="Web scraper with aria2c output")
1313
parser.add_argument(
1414
"urls_file",
@@ -36,16 +36,16 @@ def main():
3636
blocking_run(args)
3737

3838

39-
def blocking_run(args):
39+
def blocking_run(args) -> None:
4040
asyncio.run(run(args))
4141

4242

43-
async def run(args):
43+
async def run(args) -> None:
4444
print(args)
4545
print(args.timeout)
4646

4747

48-
def wrapper(args):
48+
def wrapper(args) -> None:
4949
global THREAD
5050

5151
if THREAD is not None and THREAD.is_alive():

tests/argparse/test_22.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pathlib import Path
99

1010

11-
def main():
11+
def main() -> None:
1212
parser = argparse.ArgumentParser(description="Web scraper with aria2c output")
1313
parser.add_argument(
1414
"urls_file",
@@ -36,16 +36,16 @@ def main():
3636
blocking_run(args)
3737

3838

39-
def blocking_run(args):
39+
def blocking_run(args) -> None:
4040
asyncio.run(run(args))
4141

4242

43-
async def run(args):
43+
async def run(args) -> None:
4444
print(args)
4545
print(args.timeout)
4646

4747

48-
def wrapper(args):
48+
def wrapper(args) -> None:
4949
global THREAD
5050

5151
if THREAD is not None and THREAD.is_alive():

tests/click/test_simple.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
def hello(count: int, name: str) -> None:
2222
"""Simple program that greets NAME for a total of COUNT times."""
2323
for _index in range(count):
24-
click.echo("Hello %s!" % name)
24+
click.echo(f"Hello {name}!")
2525

2626

2727
Click2Gui(run_function=hello)

0 commit comments

Comments
 (0)