Update package resource API 68.2.2 (8ad627d) → 70.1.1 (222ebf9).

This commit is contained in:
JackDandy 2024-06-26 00:40:03 +01:00
parent 874876391a
commit 83d2aa32a2
3 changed files with 376 additions and 214 deletions

View file

@ -1,6 +1,7 @@
### 3.33.0 (2024-0x-xx xx:xx:00 UTC) ### 3.33.0 (2024-0x-xx xx:xx:00 UTC)
* Update filelock 3.14.0 (8556141) to 3.15.4 (9a979df) * Update filelock 3.14.0 (8556141) to 3.15.4 (9a979df)
* Update package resource API 68.2.2 (8ad627d) to 70.1.1 (222ebf9)
* Update urllib3 2.2.1 (54d6edf) to 2.2.2 (27e2a5c) * Update urllib3 2.2.1 (54d6edf) to 2.2.2 (27e2a5c)

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,9 @@
from __future__ import annotations
from importlib.machinery import ModuleSpec from importlib.machinery import ModuleSpec
import importlib.util import importlib.util
import sys import sys
from types import ModuleType from types import ModuleType
from typing import Iterable, Optional, Sequence from typing import Iterable, Sequence
class VendorImporter: class VendorImporter:
@ -15,7 +16,7 @@ class VendorImporter:
self, self,
root_name: str, root_name: str,
vendored_names: Iterable[str] = (), vendored_names: Iterable[str] = (),
vendor_pkg: Optional[str] = None, vendor_pkg: str | None = None,
): ):
self.root_name = root_name self.root_name = root_name
self.vendored_names = set(vendored_names) self.vendored_names = set(vendored_names)
@ -65,8 +66,8 @@ class VendorImporter:
def find_spec( def find_spec(
self, self,
fullname: str, fullname: str,
path: Optional[Sequence[str]] = None, path: Sequence[str] | None = None,
target: Optional[ModuleType] = None, target: ModuleType | None = None,
): ):
"""Return a module spec for vendored names.""" """Return a module spec for vendored names."""
return ( return (