Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mypy for openSUSE:Factory checked in at 2023-05-14 16:31:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mypy (Old) and /work/SRC/openSUSE:Factory/.mypy.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mypy" Sun May 14 16:31:35 2023 rev:37 rq:1086859 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mypy/mypy.changes 2023-05-07 18:54:35.420127825 +0200 +++ /work/SRC/openSUSE:Factory/.mypy.new.1533/mypy.changes 2023-05-14 16:34:00.299859594 +0200 @@ -1,0 +2,109 @@ +Thu May 11 06:02:09 UTC 2023 - Matej Cepl <[email protected]> + +- Skip over failing testMathOps (gh#python/mypy#15221). + +------------------------------------------------------------------- +Wed May 10 20:36:45 UTC 2023 - Matej Cepl <[email protected]> + +- Update to 1.3.0: + - Improve performance of union subtyping + - Add negative subtype caches + - Stubtest: Check that the stub is abstract if the runtime is, + even when the stub is an overloaded method + - Stubtest: Verify stub methods or properties are decorated + with @final if they are decorated with @final at runtime + - Stubtest: Fix stubtest false positives with TypedDicts at + runtime + - Stubgen: Support @functools.cached_property + - Improvements to stubgenc + - Add support for converters with TypeVars on generic attrs + classes + - Fix attrs.evolve on bound TypeVar + - Improve async documentation + - Improvements to cheat sheet + - Add documentation for bytes formatting error code + - Convert insecure links to use HTTPS + - Also mention overloads in async iterator documentation + - stubtest: Improve allowlist documentation + - Clarify "Using types... but not at runtime" + - Fix alignment of cheat sheet example + - Fix error for callback protocol matching against callable + type object + - Improve bytes formatting error + - Fix unions of bools and ints + - Fix narrowing union types that include Self with isinstance + - Allow objects matching SupportsKeysAndGetItem to be unpacked + - Check type guard validity for staticmethods + - Fix sys.platform when cross-compiling with emscripten + +------------------------------------------------------------------- +Mon May 8 13:56:42 UTC 2023 - Johannes Kastl <[email protected]> + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Sun May 7 09:54:51 UTC 2023 - Sebastian Wagner <[email protected]> + +- update typed_ast to version 1.5.8.6 +- update types_psutil to version 5.9.5.12 +- update types_setuptools to version 67.7.0.1 +- fix "E: wrong-script-end-of-line-encoding" and "E: spurious-executable-perm" for docs/make.bat +- fix "W: python-doc-in-package" for %{$python_sitelib}/mypyc/doc in Python 3.9, 3.10 and 3.11 +- update mypy to version 1.2.0: + - Improvements to Dataclass Transforms + - Support implicit default for "init" parameter in field specifiers (Wesley Collin Wright and Jukka Lehtosalo, PR 15010) + - Support descriptors in dataclass transform (Jukka Lehtosalo, PR 15006) + - Fix frozen_default in incremental mode (Wesley Collin Wright) + - Fix frozen behavior for base classes with direct metaclasses (Wesley Collin Wright, PR 14878) + - Mypyc: Native Floats + - Mypyc now uses a native, unboxed representation for values of type float. Previously these were heap-allocated Python objects. Native floats are faster and use less memory. Code that uses floating-point operations heavily can be several times faster when using native floats. + - Various float operations and math functions also now have optimized implementations. Refer to the documentation for a full list. + - This can change the behavior of existing code that uses subclasses of float. When assigning an instance of a subclass of float to a variable with the float type, it gets implicitly converted to a float instance when compiled + - Previously, implicit conversions were applied to int subclasses but not float subclasses. + - Also, int values can no longer be assigned to a variable with type float in compiled code, since these types now have incompatible representations. An explicit conversion is required. + - This restriction only applies to assignments, since they could otherwise narrow down the type of a variable from float to int. int values can still be implicitly converted to float when passed as arguments to functions that expect float values. + - Note that mypyc still doesnât support arrays of unboxed float values. Using list[float] involves heap-allocated float objects, since list can only store boxed values. Support for efficient floating point arrays is one of the next major planned mypyc features. + - Related changes: + - Use a native unboxed representation for floats (Jukka Lehtosalo, PR 14880) + - Document native floats and integers (Jukka Lehtosalo, PR 14927) + - Fixes to float to int conversion (Jukka Lehtosalo, PR 14936) + - Mypyc: Native Integers + - Mypyc now supports signed 32-bit and 64-bit integer types in addition to the arbitrary-precision int type. You can use the types mypy_extensions.i32 and mypy_extensions.i64 to speed up code that uses integer operations heavily. + - Refer to the documentation for more information. This feature was contributed by Jukka Lehtosalo. + - Other Mypyc Fixes and Improvements + - Support iterating over a TypedDict (Richard Si, PR 14747) + - Faster coercions between different tuple types (Jukka Lehtosalo, PR 14899) + - Faster calls via type aliases (Jukka Lehtosalo, PR 14784) + - Faster classmethod calls via cls (Jukka Lehtosalo, PR 14789) + - Fixes to Crashes + - Fix crash on class-level import in protocol definition (Ivan Levkivskyi, PR 14926) + - Fix crash on single item union of alias (Ivan Levkivskyi, PR 14876) + - Fix crash on ParamSpec in incremental mode (Ivan Levkivskyi, PR 14885) + - Documentation Updates + - Update adopting --strict documentation for 1.0 (Shantanu, PR 14865) + - Some minor documentation tweaks (Jukka Lehtosalo, PR 14847) + - Improve documentation of top level mypy: disable-error-code comment (Nikita Sobolev, PR 14810) + - Error Reporting Improvements + - Add error code to typing_extensions suggestion (Shantanu, PR 14881) + - Add a separate error code for top-level await (Nikita Sobolev, PR 14801) + - Donât suggest two obsolete stub packages (Jelle Zijlstra, PR 14842) + - Add suggestions for pandas-stubs and lxml-stubs (Shantanu, PR 14737) + - Other Fixes and Improvements + - Multiple inheritance considers callable objects as subtypes of functions (Christoph Tyralla, PR 14855) + - stubtest: Respect @final runtime decorator and enforce it in stubs (Nikita Sobolev, PR 14922) + - Fix false positives related to type[<type-var>] (sterliakov, PR 14756) + - Fix duplication of ParamSpec prefixes and properly substitute ParamSpecs (EXPLOSION, PR 14677) + - Fix line number if __iter__ is incorrectly reported as missing (Jukka Lehtosalo, PR 14893) + - Fix incompatible overrides of overloaded generics with self types (Shantanu, PR 14882) + - Allow SupportsIndex in slice expressions (Shantanu, PR 14738) + - Support if statements in bodies of dataclasses and classes that use dataclass_transform (Jacek ChaÅupka, PR 14854) + - Allow iterable class objects to be unpacked (including enums) (Alex Waygood, PR 14827) + - Fix narrowing for walrus expressions used in match statements (Shantanu, PR 14844) + - Add signature for attr.evolve (Ilya Konstantinov, PR 14526) + - Fix Any inference when unpacking iterators that don't directly inherit from typing.Iterator (Alex Waygood, PR 14821) + - Fix unpack with overloaded __iter__ method (Nikita Sobolev, PR 14817) + - Reduce size of JSON data in mypy cache (dosisod, PR 14808) + - Improve âused before definitionâ checks when a local definition has the same name as a global definition (Stas Ilinskiy, PR 14517) + - Honor NoReturn as __setitem__ return type to mark unreachable code (sterliakov, PR 12572) + +------------------------------------------------------------------- Old: ---- mypy-1.1.1.tar.gz types-psutil-5.9.5.6.tar.gz types-setuptools-65.6.0.3.tar.gz types-typed-ast-1.5.8.3.tar.gz New: ---- mypy-1.3.0.tar.gz types-psutil-5.9.5.12.tar.gz types-setuptools-67.7.0.1.tar.gz types-typed-ast-1.5.8.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mypy.spec ++++++ --- /var/tmp/diff_new_pack.YmwOSL/_old 2023-05-14 16:34:01.003862998 +0200 +++ /var/tmp/diff_new_pack.YmwOSL/_new 2023-05-14 16:34:01.011863037 +0200 @@ -16,17 +16,18 @@ # +%{?sle15_python_module_pythons} %bcond_without test %define skip_python2 1 -%define typed_ast_version 1.5.8.3 -%define types_psutil_version 5.9.5.6 -%define types_setuptools_version 65.6.0.3 +%define typed_ast_version 1.5.8.6 +%define types_psutil_version 5.9.5.12 +%define types_setuptools_version 67.7.0.1 Name: mypy -Version: 1.1.1 +Version: 1.3.0 Release: 0 Summary: Optional static typing for Python License: MIT -URL: http://www.mypy-lang.org/ +URL: https://www.mypy-lang.org/ Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%{version}.tar.gz # License Source1: Apache-2.0. Only for the test suite, not packaged here. Source1: https://files.pythonhosted.org/packages/source/t/types-typed-ast/types-typed-ast-%{typed_ast_version}.tar.gz @@ -102,6 +103,9 @@ mv types-setuptools-%{types_setuptools_version}/setuptools-stubs* mystubs/ mv types-psutil-%{types_psutil_version}/psutil-stubs* mystubs/ +# "E: wrong-script-end-of-line-encoding" and "E: spurious-executable-perm", file is not needed anyways +rm docs/make.bat + %build %python_build # building docs fails due to missing theme 'furo' @@ -117,6 +121,8 @@ %python_clone -a %{buildroot}%{_bindir}/mypyc %python_clone -a %{buildroot}%{_bindir}/stubgen %python_clone -a %{buildroot}%{_bindir}/stubtest +# solve "W: python-doc-in-package" in 3.9, 3.10 and 3.11, but not in 3.8 (thus -f to ignore the error) +%python_expand rm -rf %{buildroot}%{$python_sitelib}/mypyc/doc %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} @@ -138,6 +144,8 @@ # the fake test_module is not in the modulepath without pytest-xdist # or with pytest-xdist >= 2.3 -- https://github.com/python/mypy/issues/11019 donttest+=" or teststubtest" +# gh#python/mypy#15221 +donttest+=" or testMathOps or testFloatOps" %pytest -n auto -k "not (testallexcept ${donttest} ${$python_donttest})" %endif ++++++ mypy-1.1.1.tar.gz -> mypy-1.3.0.tar.gz ++++++ ++++ 27163 lines of diff (skipped) ++++++ types-psutil-5.9.5.6.tar.gz -> types-psutil-5.9.5.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/CHANGELOG.md new/types-psutil-5.9.5.12/CHANGELOG.md --- old/types-psutil-5.9.5.6/CHANGELOG.md 2023-01-18 10:18:28.000000000 +0100 +++ new/types-psutil-5.9.5.12/CHANGELOG.md 2023-04-20 05:15:56.000000000 +0200 @@ -1,3 +1,39 @@ +## 5.9.5.12 (2023-04-20) + +psutil: fix stubtest (#10065) + +Fixes #10059 + +## 5.9.5.11 (2023-03-27) + +Add default values for third-party stubs beginning with 'P' (#9957) + +## 5.9.5.10 (2023-03-08) + +psutil: sconn.pid can be None (#9853) + +Found out about this the hard way. + +The code path that allows None is here: https://github.com/giampaolo/psutil/blob/2da99502238852f18f74db05304e67a01ee77005/psutil/_pslinux.py#L923 + +## 5.9.5.9 (2023-02-26) + +Improve many `__(a)exit__` annotations (#9696) + +## 5.9.5.8 (2023-02-21) + +Stubtest settings: change `ignore_missing_stub` default to `false` (#9779) + +If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work. + +## 5.9.5.7 (2023-02-15) + +Use `typing_extensions.Self` instead of `_typeshed.Self` (#9702) + +Bump pyright to 1.1.294; improve `psutil` stubs (#9739) + +Partially type psfullmem + ## 5.9.5.6 (2023-01-18) Replace `Any` with `Incomplete` in many places (#9558) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/PKG-INFO new/types-psutil-5.9.5.12/PKG-INFO --- old/types-psutil-5.9.5.6/PKG-INFO 2023-01-18 10:18:28.867146700 +0100 +++ new/types-psutil-5.9.5.12/PKG-INFO 2023-04-20 05:15:57.977673300 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: types-psutil -Version: 5.9.5.6 +Version: 5.9.5.12 Summary: Typing stubs for psutil Home-page: https://github.com/python/typeshed License: Apache-2.0 license @@ -26,4 +26,4 @@ types and metadata should be contributed there. See https://github.com/python/typeshed/blob/main/README.md for more details. -This package was generated from typeshed commit `4fea314594fc21fe03af54c08d071c3621f3720e`. +This package was generated from typeshed commit `143b9612f1217e72c60df732b8b66a64d8ecc304`. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/METADATA.toml new/types-psutil-5.9.5.12/psutil-stubs/METADATA.toml --- old/types-psutil-5.9.5.6/psutil-stubs/METADATA.toml 2023-01-18 10:18:28.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/METADATA.toml 2023-04-20 05:15:56.000000000 +0200 @@ -1,5 +1,4 @@ version = "5.9.*" [tool.stubtest] -ignore_missing_stub = false -platforms = ["win32", "linux", "darwin"] +platforms = ["darwin", "linux", "win32"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/__init__.pyi new/types-psutil-5.9.5.12/psutil-stubs/__init__.pyi --- old/types-psutil-5.9.5.6/psutil-stubs/__init__.pyi 2023-01-18 10:15:50.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/__init__.pyi 2023-04-20 05:15:40.000000000 +0200 @@ -1,9 +1,9 @@ import sys -from _typeshed import Incomplete, Self +from _typeshed import Incomplete from collections.abc import Callable, Iterable, Iterator from contextlib import AbstractContextManager from typing import Any, overload -from typing_extensions import Literal, TypeAlias +from typing_extensions import Literal, Self, TypeAlias from psutil._common import ( AIX as AIX, @@ -156,7 +156,7 @@ ] class Process: - def __init__(self, pid: int | None = ...) -> None: ... + def __init__(self, pid: int | None = None) -> None: ... def __eq__(self, other: object) -> bool: ... def __ne__(self, other: object) -> bool: ... def __hash__(self) -> int: ... @@ -164,7 +164,7 @@ def pid(self) -> int: ... def oneshot(self) -> AbstractContextManager[None]: ... def as_dict( - self, attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = ..., ad_value: Incomplete | None = ... + self, attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = None, ad_value: Incomplete | None = None ) -> dict[str, Any]: ... def parent(self) -> Process: ... def parents(self) -> list[Process]: ... @@ -177,7 +177,7 @@ def username(self) -> str: ... def create_time(self) -> float: ... def cwd(self) -> str: ... - def nice(self, value: int | None = ...) -> int: ... + def nice(self, value: int | None = None) -> int: ... if sys.platform != "win32": def uids(self) -> puids: ... def gids(self) -> pgids: ... @@ -185,9 +185,9 @@ def num_fds(self) -> int: ... if sys.platform != "darwin": def io_counters(self): ... - def ionice(self, ioclass: int | None = ..., value: int | None = ...) -> pionice: ... - def cpu_affinity(self, cpus: list[int] | None = ...) -> list[int] | None: ... - def memory_maps(self, grouped: bool = ...): ... + def ionice(self, ioclass: int | None = None, value: int | None = None) -> pionice: ... + def cpu_affinity(self, cpus: list[int] | None = None) -> list[int] | None: ... + def memory_maps(self, grouped: bool = True): ... if sys.platform == "linux": def rlimit(self, resource: int, limits: tuple[int, int] | None = ...) -> tuple[int, int]: ... def cpu_num(self) -> int: ... @@ -199,56 +199,56 @@ def num_ctx_switches(self) -> pctxsw: ... def num_threads(self) -> int: ... def threads(self) -> list[pthread]: ... - def children(self, recursive: bool = ...) -> list[Process]: ... - def cpu_percent(self, interval: float | None = ...) -> float: ... + def children(self, recursive: bool = False) -> list[Process]: ... + def cpu_percent(self, interval: float | None = None) -> float: ... def cpu_times(self) -> pcputimes: ... def memory_info(self) -> pmem: ... def memory_info_ex(self) -> pmem: ... def memory_full_info(self) -> pfullmem: ... - def memory_percent(self, memtype: str = ...) -> float: ... + def memory_percent(self, memtype: str = "rss") -> float: ... def open_files(self) -> list[popenfile]: ... - def connections(self, kind: str = ...) -> list[pconn]: ... + def connections(self, kind: str = "inet") -> list[pconn]: ... def send_signal(self, sig: int) -> None: ... def suspend(self) -> None: ... def resume(self) -> None: ... def terminate(self) -> None: ... def kill(self) -> None: ... - def wait(self, timeout: int | None = ...) -> int: ... + def wait(self, timeout: int | None = None) -> int: ... class Popen(Process): def __init__(self, *args, **kwargs) -> None: ... - def __enter__(self: Self) -> Self: ... - def __exit__(self, *args, **kwargs) -> None: ... + def __enter__(self) -> Self: ... + def __exit__(self, *args: object, **kwargs: object) -> None: ... def __getattribute__(self, name: str) -> Any: ... def pids() -> list[int]: ... def pid_exists(pid: int) -> bool: ... def process_iter( - attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = ..., ad_value: Incomplete | None = ... + attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = None, ad_value: Incomplete | None = None ) -> Iterator[Process]: ... def wait_procs( - procs: Iterable[Process], timeout: float | None = ..., callback: Callable[[Process], object] | None = ... + procs: Iterable[Process], timeout: float | None = None, callback: Callable[[Process], object] | None = None ) -> tuple[list[Process], list[Process]]: ... -def cpu_count(logical: bool = ...) -> int: ... -def cpu_times(percpu: bool = ...): ... -def cpu_percent(interval: float | None = ..., percpu: bool = ...) -> float: ... -def cpu_times_percent(interval: float | None = ..., percpu: bool = ...): ... +def cpu_count(logical: bool = True) -> int: ... +def cpu_times(percpu: bool = False): ... +def cpu_percent(interval: float | None = None, percpu: bool = False) -> float: ... +def cpu_times_percent(interval: float | None = None, percpu: bool = False): ... def cpu_stats() -> scpustats: ... -def cpu_freq(percpu: bool = ...) -> scpufreq: ... +def cpu_freq(percpu: bool = False) -> scpufreq: ... def getloadavg() -> tuple[float, float, float]: ... def virtual_memory() -> svmem: ... def swap_memory() -> sswap: ... def disk_usage(path: str) -> sdiskusage: ... -def disk_partitions(all: bool = ...) -> list[sdiskpart]: ... +def disk_partitions(all: bool = False) -> list[sdiskpart]: ... @overload -def disk_io_counters(perdisk: Literal[False] = ..., nowrap: bool = ...) -> sdiskio | None: ... +def disk_io_counters(perdisk: Literal[False] = False, nowrap: bool = True) -> sdiskio | None: ... @overload -def disk_io_counters(perdisk: Literal[True], nowrap: bool = ...) -> dict[str, sdiskio]: ... +def disk_io_counters(perdisk: Literal[True], nowrap: bool = True) -> dict[str, sdiskio]: ... @overload -def net_io_counters(pernic: Literal[False] = ..., nowrap: bool = ...) -> snetio: ... +def net_io_counters(pernic: Literal[False] = False, nowrap: bool = True) -> snetio: ... @overload -def net_io_counters(pernic: Literal[True], nowrap: bool = ...) -> dict[str, snetio]: ... -def net_connections(kind: str = ...) -> list[sconn]: ... +def net_io_counters(pernic: Literal[True], nowrap: bool = True) -> dict[str, snetio]: ... +def net_connections(kind: str = "inet") -> list[sconn]: ... def net_if_addrs() -> dict[str, list[snicaddr]]: ... def net_if_stats() -> dict[str, snicstats]: ... def boot_time() -> float: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/_common.pyi new/types-psutil-5.9.5.12/psutil-stubs/_common.pyi --- old/types-psutil-5.9.5.6/psutil-stubs/_common.pyi 2023-01-18 10:15:50.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/_common.pyi 2023-04-20 05:15:40.000000000 +0200 @@ -117,7 +117,7 @@ laddr: addr | tuple[()] raddr: addr | tuple[()] status: str - pid: int + pid: int | None class snicaddr(NamedTuple): family: AddressFamily @@ -222,7 +222,7 @@ pid: Any name: Any msg: Any - def __init__(self, pid, name: Incomplete | None = ..., msg: Incomplete | None = ...) -> None: ... + def __init__(self, pid, name: Incomplete | None = None, msg: Incomplete | None = None) -> None: ... class ZombieProcess(NoSuchProcess): __module__: str @@ -231,7 +231,7 @@ name: Any msg: Any def __init__( - self, pid, name: Incomplete | None = ..., ppid: Incomplete | None = ..., msg: Incomplete | None = ... + self, pid, name: Incomplete | None = None, ppid: Incomplete | None = None, msg: Incomplete | None = None ) -> None: ... class AccessDenied(Error): @@ -239,18 +239,18 @@ pid: Any name: Any msg: Any - def __init__(self, pid: Incomplete | None = ..., name: Incomplete | None = ..., msg: Incomplete | None = ...) -> None: ... + def __init__(self, pid: Incomplete | None = None, name: Incomplete | None = None, msg: Incomplete | None = None) -> None: ... class TimeoutExpired(Error): __module__: str seconds: Any pid: Any name: Any - def __init__(self, seconds, pid: Incomplete | None = ..., name: Incomplete | None = ...) -> None: ... + def __init__(self, seconds, pid: Incomplete | None = None, name: Incomplete | None = None) -> None: ... _Func = TypeVar("_Func", bound=Callable[..., Any]) -def usage_percent(used, total, round_: int | None = ...) -> float: ... +def usage_percent(used, total, round_: int | None = None) -> float: ... def memoize(fun: _Func) -> _Func: ... def memoize_when_activated(fun: _Func) -> _Func: ... def isfile_strict(path: StrOrBytesPath) -> bool: ... @@ -262,7 +262,7 @@ @overload def conn_to_ntuple(fd: int, fam: int, type_: int, laddr, raddr, status: str, status_map, pid: int) -> sconn: ... @overload -def conn_to_ntuple(fd: int, fam: int, type_: int, laddr, raddr, status: str, status_map, pid: None = ...) -> pconn: ... +def conn_to_ntuple(fd: int, fam: int, type_: int, laddr, raddr, status: str, status_map, pid: None = None) -> pconn: ... def deprecated_method(replacement: str) -> Callable[[_Func], _Func]: ... class _WrapNumbers: @@ -272,7 +272,7 @@ reminder_keys: Any def __init__(self) -> None: ... def run(self, input_dict, name): ... - def cache_clear(self, name: Incomplete | None = ...) -> None: ... + def cache_clear(self, name: Incomplete | None = None) -> None: ... def cache_info(self): ... def wrap_numbers(input_dict, name: str): ... @@ -280,9 +280,9 @@ def open_text(fname): ... def cat(fname, fallback=..., _open=...): ... def bcat(fname, fallback=...): ... -def bytes2human(n: int, format: str = ...) -> str: ... +def bytes2human(n: int, format: str = "%(value).1f%(symbol)s") -> str: ... def get_procfs_path() -> str: ... def term_supports_colors(file: SupportsWrite[str] = ...) -> bool: ... -def hilite(s: str, color: str | None = ..., bold: bool = ...) -> str: ... -def print_color(s: str, color: str | None = ..., bold: bool = ..., file: SupportsWrite[str] = ...) -> None: ... +def hilite(s: str, color: str | None = None, bold: bool = False) -> str: ... +def print_color(s: str, color: str | None = None, bold: bool = False, file: SupportsWrite[str] = ...) -> None: ... def debug(msg) -> None: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/_pslinux.pyi new/types-psutil-5.9.5.12/psutil-stubs/_pslinux.pyi --- old/types-psutil-5.9.5.6/psutil-stubs/_pslinux.pyi 2023-01-18 10:15:50.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/_pslinux.pyi 2023-04-20 05:15:40.000000000 +0200 @@ -84,7 +84,17 @@ data: Any dirty: Any -pfullmem: Any +class pfullmem(NamedTuple): + rss: Incomplete + vms: Incomplete + shared: Incomplete + text: Incomplete + lib: Incomplete + data: Incomplete + dirty: Incomplete + uss: Incomplete + pss: Incomplete + swap: Incomplete class pmmap_grouped(NamedTuple): path: Any diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/_psosx.pyi new/types-psutil-5.9.5.12/psutil-stubs/_psosx.pyi --- old/types-psutil-5.9.5.6/psutil-stubs/_psosx.pyi 2023-01-18 10:15:50.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/_psosx.pyi 2023-04-20 05:15:40.000000000 +0200 @@ -42,7 +42,12 @@ pfaults: Any pageins: Any -pfullmem: Any +class pfullmem(NamedTuple): + rss: Incomplete + vms: Incomplete + pfaults: Incomplete + pageins: Incomplete + uss: Incomplete def virtual_memory() -> svmem: ... def swap_memory(): ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/_psposix.pyi new/types-psutil-5.9.5.12/psutil-stubs/_psposix.pyi --- old/types-psutil-5.9.5.6/psutil-stubs/_psposix.pyi 2023-01-18 10:15:50.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/_psposix.pyi 2023-04-20 05:15:40.000000000 +0200 @@ -3,8 +3,8 @@ def pid_exists(pid): ... def wait_pid( pid, - timeout: Incomplete | None = ..., - proc_name: Incomplete | None = ..., + timeout: Incomplete | None = None, + proc_name: Incomplete | None = None, _waitpid=..., _timer=..., _min=..., diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/_psutil_windows.pyi new/types-psutil-5.9.5.12/psutil-stubs/_psutil_windows.pyi --- old/types-psutil-5.9.5.6/psutil-stubs/_psutil_windows.pyi 2023-01-18 10:15:50.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/_psutil_windows.pyi 2023-04-20 05:15:40.000000000 +0200 @@ -80,6 +80,7 @@ def proc_wait(*args, **kwargs): ... # incomplete def sensors_battery(*args, **kwargs): ... # incomplete def set_debug(*args, **kwargs): ... # incomplete +def swap_percent(*args, **kwargs): ... # incomplete def users(*args, **kwargs): ... # incomplete def virtual_mem(*args, **kwargs): ... # incomplete def winservice_enumerate(*args, **kwargs): ... # incomplete diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/psutil-stubs/_pswindows.pyi new/types-psutil-5.9.5.12/psutil-stubs/_pswindows.pyi --- old/types-psutil-5.9.5.6/psutil-stubs/_pswindows.pyi 2023-01-18 10:15:50.000000000 +0100 +++ new/types-psutil-5.9.5.12/psutil-stubs/_pswindows.pyi 2023-04-20 05:15:40.000000000 +0200 @@ -84,7 +84,20 @@ peak_pagefile: Any private: Any -pfullmem: Any +class pfullmem(NamedTuple): + rss: Incomplete + vms: Incomplete + num_page_faults: Incomplete + peak_wset: Incomplete + wset: Incomplete + peak_paged_pool: Incomplete + paged_pool: Incomplete + peak_nonpaged_pool: Incomplete + nonpaged_pool: Incomplete + pagefile: Incomplete + peak_pagefile: Incomplete + private: Incomplete + uss: Incomplete class pmmap_grouped(NamedTuple): path: Any @@ -117,7 +130,7 @@ def cpu_stats(): ... def cpu_freq(): ... def getloadavg(): ... -def net_connections(kind, _pid: int = ...): ... +def net_connections(kind, _pid: int = -1): ... def net_if_stats(): ... def net_io_counters(): ... def net_if_addrs(): ... @@ -146,7 +159,7 @@ ppid_map: Any def is_permission_err(exc): ... -def convert_oserror(exc, pid: Incomplete | None = ..., name: Incomplete | None = ...): ... +def convert_oserror(exc, pid: Incomplete | None = None, name: Incomplete | None = None): ... def wrap_exceptions(fun): ... def retry_error_partial_copy(fun): ... @@ -165,7 +178,7 @@ def memory_maps(self) -> None: ... def kill(self): ... def send_signal(self, sig) -> None: ... - def wait(self, timeout: Incomplete | None = ...): ... + def wait(self, timeout: Incomplete | None = None): ... def username(self): ... def create_time(self): ... def num_threads(self): ... @@ -175,7 +188,7 @@ def resume(self) -> None: ... def cwd(self): ... def open_files(self): ... - def connections(self, kind: str = ...): ... + def connections(self, kind: str = "inet"): ... def nice_get(self): ... def nice_set(self, value): ... def ionice_get(self): ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/setup.py new/types-psutil-5.9.5.12/setup.py --- old/types-psutil-5.9.5.6/setup.py 2023-01-18 10:18:28.000000000 +0100 +++ new/types-psutil-5.9.5.12/setup.py 2023-04-20 05:15:56.000000000 +0200 @@ -16,11 +16,11 @@ types and metadata should be contributed there. See https://github.com/python/typeshed/blob/main/README.md for more details. -This package was generated from typeshed commit `4fea314594fc21fe03af54c08d071c3621f3720e`. +This package was generated from typeshed commit `143b9612f1217e72c60df732b8b66a64d8ecc304`. '''.lstrip() setup(name=name, - version="5.9.5.6", + version="5.9.5.12", description=description, long_description=long_description, long_description_content_type="text/markdown", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-psutil-5.9.5.6/types_psutil.egg-info/PKG-INFO new/types-psutil-5.9.5.12/types_psutil.egg-info/PKG-INFO --- old/types-psutil-5.9.5.6/types_psutil.egg-info/PKG-INFO 2023-01-18 10:18:28.000000000 +0100 +++ new/types-psutil-5.9.5.12/types_psutil.egg-info/PKG-INFO 2023-04-20 05:15:57.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: types-psutil -Version: 5.9.5.6 +Version: 5.9.5.12 Summary: Typing stubs for psutil Home-page: https://github.com/python/typeshed License: Apache-2.0 license @@ -26,4 +26,4 @@ types and metadata should be contributed there. See https://github.com/python/typeshed/blob/main/README.md for more details. -This package was generated from typeshed commit `4fea314594fc21fe03af54c08d071c3621f3720e`. +This package was generated from typeshed commit `143b9612f1217e72c60df732b8b66a64d8ecc304`. ++++++ types-setuptools-65.6.0.3.tar.gz -> types-setuptools-67.7.0.1.tar.gz ++++++ ++++ 3232 lines of diff (skipped) ++++++ types-typed-ast-1.5.8.3.tar.gz -> types-typed-ast-1.5.8.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.8.3/CHANGELOG.md new/types-typed-ast-1.5.8.6/CHANGELOG.md --- old/types-typed-ast-1.5.8.3/CHANGELOG.md 2022-11-14 13:47:25.000000000 +0100 +++ new/types-typed-ast-1.5.8.6/CHANGELOG.md 2023-03-28 14:33:13.000000000 +0200 @@ -1,3 +1,24 @@ +## 1.5.8.6 (2023-03-28) + +Add defaults for third-party stubs Q-T (#9959) + +## 1.5.8.5 (2023-03-11) + +typed_ast: Add missing field to `typed_ast.ast3.TypeIgnore` (#9868) + +```pycon +>>> import typed_ast.ast3 as ast3 +>>> x = ast3.parse('def foo(): ... # type: ignore[attr-defined]') +>>> ast3.dump(x) +"Module(body=[FunctionDef(name='foo', args=arguments(args=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Ellipsis())], decorator_list=[], returns=None, type_comment=None)], type_ignores=[TypeIgnore(lineno=1, tag='[attr-defined]')])" +``` + +## 1.5.8.4 (2023-02-21) + +Stubtest settings: change `ignore_missing_stub` default to `false` (#9779) + +If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work. + ## 1.5.8.3 (2022-11-14) Improve `ast` types; revert several "redundant numeric union" changes from #7906 (#9130) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.8.3/PKG-INFO new/types-typed-ast-1.5.8.6/PKG-INFO --- old/types-typed-ast-1.5.8.3/PKG-INFO 2022-11-14 13:47:26.676382300 +0100 +++ new/types-typed-ast-1.5.8.6/PKG-INFO 2023-03-28 14:33:13.861138300 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: types-typed-ast -Version: 1.5.8.3 +Version: 1.5.8.6 Summary: Typing stubs for typed-ast Home-page: https://github.com/python/typeshed License: Apache-2.0 license @@ -15,11 +15,15 @@ ## Typing stubs for typed-ast -This is a PEP 561 type stub package for the `typed-ast` package. -It can be used by type-checking tools like mypy, PyCharm, pytype etc. to check code -that uses `typed-ast`. The source for this package can be found at +This is a PEP 561 type stub package for the `typed-ast` package. It +can be used by type-checking tools like +[mypy](https://github.com/python/mypy/), +[pyright](https://github.com/microsoft/pyright), +[pytype](https://github.com/google/pytype/), +PyCharm, etc. to check code that uses +`typed-ast`. The source for this package can be found at https://github.com/python/typeshed/tree/main/stubs/typed-ast. All fixes for types and metadata should be contributed there. See https://github.com/python/typeshed/blob/main/README.md for more details. -This package was generated from typeshed commit `1733c460582e6bf83a3592e5b24f9fd0e3fdeddc`. +This package was generated from typeshed commit `6b485a882325829dcbb6dd1d59c5e54b0bcfece1`. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.8.3/setup.py new/types-typed-ast-1.5.8.6/setup.py --- old/types-typed-ast-1.5.8.3/setup.py 2022-11-14 13:47:25.000000000 +0100 +++ new/types-typed-ast-1.5.8.6/setup.py 2023-03-28 14:33:13.000000000 +0200 @@ -5,18 +5,22 @@ long_description = ''' ## Typing stubs for typed-ast -This is a PEP 561 type stub package for the `typed-ast` package. -It can be used by type-checking tools like mypy, PyCharm, pytype etc. to check code -that uses `typed-ast`. The source for this package can be found at +This is a PEP 561 type stub package for the `typed-ast` package. It +can be used by type-checking tools like +[mypy](https://github.com/python/mypy/), +[pyright](https://github.com/microsoft/pyright), +[pytype](https://github.com/google/pytype/), +PyCharm, etc. to check code that uses +`typed-ast`. The source for this package can be found at https://github.com/python/typeshed/tree/main/stubs/typed-ast. All fixes for types and metadata should be contributed there. See https://github.com/python/typeshed/blob/main/README.md for more details. -This package was generated from typeshed commit `1733c460582e6bf83a3592e5b24f9fd0e3fdeddc`. +This package was generated from typeshed commit `6b485a882325829dcbb6dd1d59c5e54b0bcfece1`. '''.lstrip() setup(name=name, - version="1.5.8.3", + version="1.5.8.6", description=description, long_description=long_description, long_description_content_type="text/markdown", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.8.3/typed_ast-stubs/METADATA.toml new/types-typed-ast-1.5.8.6/typed_ast-stubs/METADATA.toml --- old/types-typed-ast-1.5.8.3/typed_ast-stubs/METADATA.toml 2022-11-14 13:47:25.000000000 +0100 +++ new/types-typed-ast-1.5.8.6/typed_ast-stubs/METADATA.toml 2023-03-28 14:33:13.000000000 +0200 @@ -1,4 +1 @@ version = "1.5.*" - -[tool.stubtest] -ignore_missing_stub = false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.8.3/typed_ast-stubs/ast27.pyi new/types-typed-ast-1.5.8.6/typed_ast-stubs/ast27.pyi --- old/types-typed-ast-1.5.8.3/typed_ast-stubs/ast27.pyi 2022-11-14 13:47:14.000000000 +0100 +++ new/types-typed-ast-1.5.8.6/typed_ast-stubs/ast27.pyi 2023-03-28 14:32:25.000000000 +0200 @@ -10,12 +10,12 @@ class NodeTransformer(NodeVisitor): def generic_visit(self, node: AST) -> None: ... -def parse(source: str | ReadableBuffer, filename: str | ReadableBuffer = ..., mode: str = ...) -> AST: ... +def parse(source: str | ReadableBuffer, filename: str | ReadableBuffer = "<unknown>", mode: str = "exec") -> AST: ... def copy_location(new_node: AST, old_node: AST) -> AST: ... -def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ... +def dump(node: AST, annotate_fields: bool = True, include_attributes: bool = False) -> str: ... def fix_missing_locations(node: AST) -> AST: ... -def get_docstring(node: AST, clean: bool = ...) -> str | bytes | None: ... -def increment_lineno(node: AST, n: int = ...) -> AST: ... +def get_docstring(node: AST, clean: bool = True) -> str | bytes | None: ... +def increment_lineno(node: AST, n: int = 1) -> AST: ... def iter_child_nodes(node: AST) -> Iterator[AST]: ... def iter_fields(node: AST) -> Iterator[tuple[str, Any]]: ... def literal_eval(node_or_string: str | AST) -> Any: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.8.3/typed_ast-stubs/ast3.pyi new/types-typed-ast-1.5.8.6/typed_ast-stubs/ast3.pyi --- old/types-typed-ast-1.5.8.3/typed_ast-stubs/ast3.pyi 2022-11-14 13:47:14.000000000 +0100 +++ new/types-typed-ast-1.5.8.6/typed_ast-stubs/ast3.pyi 2023-03-28 14:32:25.000000000 +0200 @@ -13,13 +13,13 @@ def generic_visit(self, node: AST) -> None: ... def parse( - source: str | ReadableBuffer, filename: str | ReadableBuffer = ..., mode: str = ..., feature_version: int = ... + source: str | ReadableBuffer, filename: str | ReadableBuffer = "<unknown>", mode: str = "exec", feature_version: int = 7 ) -> AST: ... def copy_location(new_node: AST, old_node: AST) -> AST: ... -def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ... +def dump(node: AST, annotate_fields: bool = True, include_attributes: bool = False) -> str: ... def fix_missing_locations(node: AST) -> AST: ... -def get_docstring(node: AST, clean: bool = ...) -> str | None: ... -def increment_lineno(node: AST, n: int = ...) -> AST: ... +def get_docstring(node: AST, clean: bool = True) -> str | None: ... +def increment_lineno(node: AST, n: int = 1) -> AST: ... def iter_child_nodes(node: AST) -> Iterator[AST]: ... def iter_fields(node: AST) -> Iterator[tuple[str, Any]]: ... def literal_eval(node_or_string: str | AST) -> Any: ... @@ -388,3 +388,4 @@ class TypeIgnore(AST): lineno: int + tag: str diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.8.3/types_typed_ast.egg-info/PKG-INFO new/types-typed-ast-1.5.8.6/types_typed_ast.egg-info/PKG-INFO --- old/types-typed-ast-1.5.8.3/types_typed_ast.egg-info/PKG-INFO 2022-11-14 13:47:26.000000000 +0100 +++ new/types-typed-ast-1.5.8.6/types_typed_ast.egg-info/PKG-INFO 2023-03-28 14:33:13.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: types-typed-ast -Version: 1.5.8.3 +Version: 1.5.8.6 Summary: Typing stubs for typed-ast Home-page: https://github.com/python/typeshed License: Apache-2.0 license @@ -15,11 +15,15 @@ ## Typing stubs for typed-ast -This is a PEP 561 type stub package for the `typed-ast` package. -It can be used by type-checking tools like mypy, PyCharm, pytype etc. to check code -that uses `typed-ast`. The source for this package can be found at +This is a PEP 561 type stub package for the `typed-ast` package. It +can be used by type-checking tools like +[mypy](https://github.com/python/mypy/), +[pyright](https://github.com/microsoft/pyright), +[pytype](https://github.com/google/pytype/), +PyCharm, etc. to check code that uses +`typed-ast`. The source for this package can be found at https://github.com/python/typeshed/tree/main/stubs/typed-ast. All fixes for types and metadata should be contributed there. See https://github.com/python/typeshed/blob/main/README.md for more details. -This package was generated from typeshed commit `1733c460582e6bf83a3592e5b24f9fd0e3fdeddc`. +This package was generated from typeshed commit `6b485a882325829dcbb6dd1d59c5e54b0bcfece1`.
