Skip to content

Commit

Permalink
Add typing to PyReverse and fix an unused-argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jul 29, 2021
1 parent 3297210 commit a051aa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pylint/pyreverse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import os
import subprocess
import sys
from typing import Iterable

from pylint.config import ConfigurationMixIn
from pylint.pyreverse import writer
Expand Down Expand Up @@ -192,10 +193,10 @@ class Run(ConfigurationMixIn):

options = OPTIONS # type: ignore

def __init__(self, args):
def __init__(self, args: Iterable[str]):
ConfigurationMixIn.__init__(self, usage=__doc__)
insert_default_options()
args = self.load_command_line_configuration()
args = self.load_command_line_configuration(args)
if self.config.output_format not in ("dot", "vcg"):
_check_graphviz_available(self.config.output_format)

Expand Down

0 comments on commit a051aa8

Please sign in to comment.