summaryrefslogtreecommitdiff
path: root/pylint/pyreverse/utils.py
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-15 00:37:50 +0200
committerDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-15 00:37:50 +0200
commitf120a798bbe122e87442fa9df809057777fb658a (patch)
treea8d2b0fc53da41db9fc6e5db9296a1ca863f39fd /pylint/pyreverse/utils.py
parent2d9b2781f3c7176ca61071555490cdfb61b02cf9 (diff)
downloadpylint-git-f120a798bbe122e87442fa9df809057777fb658a.tar.gz
Add typing and small refactors to pyreverse
Diffstat (limited to 'pylint/pyreverse/utils.py')
-rw-r--r--pylint/pyreverse/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/pyreverse/utils.py b/pylint/pyreverse/utils.py
index 2bd8585e0..393ff8c77 100644
--- a/pylint/pyreverse/utils.py
+++ b/pylint/pyreverse/utils.py
@@ -18,7 +18,7 @@ from astroid import nodes
RCFILE = ".pyreverserc"
-def get_default_options():
+def get_default_options() -> list[str]:
"""Read config file and return list of options."""
options = []
home = os.environ.get("HOME", "")
@@ -32,7 +32,7 @@ def get_default_options():
return options
-def insert_default_options():
+def insert_default_options() -> None:
"""Insert default options to sys.argv."""
options = get_default_options()
options.reverse()