[DEV] Bump pylint from 3.3.8 to 4.0.1 (#1361)
* Bump pylint from 3.3.8 to 4.0.1 Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.3.8 to 4.0.1. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.3.8...v4.0.1) --- updated-dependencies: - dependency-name: pylint dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * update fixes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Bannon <jbann1994@gmail.com>
This commit is contained in:
parent
a5dd438398
commit
d3e978e517
3 changed files with 5 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ test = [
|
|||
lint = [
|
||||
"black==24.10.0",
|
||||
"isort==6.1.0",
|
||||
"pylint==3.3.8",
|
||||
"pylint==4.0.1",
|
||||
]
|
||||
docs = [
|
||||
"sphinx>=7,<9",
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ import os
|
|||
|
||||
from ytdl_sub.utils.system import IS_WINDOWS
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
|
||||
|
||||
def _existing_path(*paths: str) -> str:
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
import inspect
|
||||
from dataclasses import dataclass
|
||||
from inspect import FullArgSpec
|
||||
from types import NoneType
|
||||
from typing import Callable
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
|
|
@ -50,7 +51,7 @@ def get_optional_type(optional_type: Type) -> Type[NamedType]:
|
|||
-------
|
||||
Type within the Optional[Type]
|
||||
"""
|
||||
return [arg for arg in optional_type.__args__ if arg != type(None)][0]
|
||||
return [arg for arg in optional_type.__args__ if not isinstance(arg, NoneType)][0]
|
||||
|
||||
|
||||
def _is_union_compatible(
|
||||
|
|
|
|||
Loading…
Reference in a new issue