[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:
dependabot[bot] 2025-10-26 23:57:35 -07:00 committed by GitHub
parent a5dd438398
commit d3e978e517
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -49,7 +49,7 @@ test = [
lint = [ lint = [
"black==24.10.0", "black==24.10.0",
"isort==6.1.0", "isort==6.1.0",
"pylint==3.3.8", "pylint==4.0.1",
] ]
docs = [ docs = [
"sphinx>=7,<9", "sphinx>=7,<9",

View file

@ -2,6 +2,8 @@ import os
from ytdl_sub.utils.system import IS_WINDOWS from ytdl_sub.utils.system import IS_WINDOWS
# pylint: disable=invalid-name
def _existing_path(*paths: str) -> str: def _existing_path(*paths: str) -> str:
""" """

View file

@ -2,6 +2,7 @@
import inspect import inspect
from dataclasses import dataclass from dataclasses import dataclass
from inspect import FullArgSpec from inspect import FullArgSpec
from types import NoneType
from typing import Callable from typing import Callable
from typing import List from typing import List
from typing import Optional from typing import Optional
@ -50,7 +51,7 @@ def get_optional_type(optional_type: Type) -> Type[NamedType]:
------- -------
Type within the Optional[Type] 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( def _is_union_compatible(