Assert isinstance intead of cast
This commit is contained in:
parent
8e38fc0641
commit
cfb1654b65
|
@ -1681,7 +1681,8 @@ class OutputVerbosity:
|
||||||
@property
|
@property
|
||||||
def verbose(self) -> int:
|
def verbose(self) -> int:
|
||||||
"""Application wide verbosity level."""
|
"""Application wide verbosity level."""
|
||||||
return cast(int, self._config.option.verbose)
|
assert isinstance(self._config.option.verbose, int)
|
||||||
|
return self._config.option.verbose
|
||||||
|
|
||||||
def get(self, verbosity_type: VerbosityType = VerbosityType.Global) -> int:
|
def get(self, verbosity_type: VerbosityType = VerbosityType.Global) -> int:
|
||||||
"""Return verbosity level for the given output type.
|
"""Return verbosity level for the given output type.
|
||||||
|
|
Loading…
Reference in New Issue