14
0
forked from pool/python-mypy
Go to file
Matej Cepl ac6233e7d9 Accepting request 1240190 from home:ecsos:python
- Update to 1.14.1
  * Mypyc Improvements
    - Document optimized bytes operations and additional str operations (Jukka Lehtosalo, PR 18242)
    - Add primitives and specialization for ord() (Jukka Lehtosalo, PR 18240)
    - Optimize str.encode with specializations for common used encodings (Valentin Stanciu, PR 18232)
    - Fix fall back to generic operation for staticmethod and classmethod (Advait Dixit, PR 18228)
    - Support unicode surrogates in string literals (Jukka Lehtosalo, PR 18209)
    - Fix index variable in for loop with builtins.enumerate (Advait Dixit, PR 18202)
    - Fix check for enum classes (Advait Dixit, PR 18178)
    - Fix loading type from imported modules (Advait Dixit, PR 18158)
    - Fix initializers of final attributes in class body (Jared Hance, PR 18031)
    - Fix name generation for modules with similar full names (aatle, PR 18001)
    - Fix relative imports in __init__.py (Shantanu, PR 17979)
    - Optimize dunder methods (jairov4, PR 17934)
    - Replace deprecated _PyDict_GetItemStringWithError (Marc Mueller, PR 17930)
    - Fix wheel build for cp313-win (Marc Mueller, PR 17941)
    - Use public PyGen_GetCode instead of vendored implementation (Marc Mueller, PR 17931)
    - Optimize calls to final classes (jairov4, PR 17886)
    - Support ellipsis (...) expressions in class bodies (Newbyte, PR 17923)
    - Sync pythoncapi_compat.h (Marc Mueller, PR 17929)
    - Add runtests.py mypyc-fast for running fast mypyc tests (Jukka Lehtosalo, PR 17906)
  * Stubgen Improvements
    - Do not include mypy generated symbols (Ali Hamdan, PR 18137)
    - Fix FunctionContext.fullname for nested classes (Chad Dombrova, PR 17963)
    - Add flagfile support (Ruslan Sayfutdinov, PR 18061)
    - Add support for PEP 695 and PEP 696 syntax (Ali Hamdan, PR 18054)
  * Stubtest Improvements
    - Allow the use of --show-traceback and --pdb with stubtest (Stephen Morton, PR 18037)
    - Verify __all__ exists in stub (Sebastian Rittau, PR 18005)
    - Stop telling people to use double underscores (Jelle Zijlstra, PR 17897)
  * Documentation Updates
    - Update config file documentation (sobolevn, PR 18103)
    - Improve contributor documentation for Windows (ag-tafe, PR 18097)
    - Correct note about --disallow-any-generics flag in documentation (Abel Sen, PR 18055)
    - Further caution against --follow-imports=skip (Shantanu, PR 18048)
    - Fix the edit page buttton link in documentation (Kanishk Pachauri, PR 17933)
  * Other Notables Fixes and Improvements
    - Show Protocol __call__ for arguments with incompatible types (MechanicalConstruct, PR 18214)
    - Make join and meet symmetric with strict_optional (MechanicalConstruct, PR 18227)
    - Preserve block unreachablility when checking function definitions with constrained TypeVars (Brian Schubert, PR 18217)
    - Do not include non-init fields in the synthesized __replace__ method for dataclasses (Victorien, PR 18221)
    - Disallow TypeVar constraints parameterized by type variables (Brian Schubert, PR 18186)
    - Always complain about invalid varargs and varkwargs (Shantanu, PR 18207)
    - Set default strict_optional state to True (Shantanu, PR 18198)
    - Preserve type variable default None in type alias (Sukhorosov Aleksey, PR 18197)
    - Add checks for invalid usage of continue/break/return in except* block (coldwolverine, PR 18132)
    - Do not consider bare TypeVar not overlapping with None for reachability analysis (Stanislav Terliakov, PR 18138)
    - Special case types.DynamicClassAttribute as property-like (Stephen Morton, PR 18150)
    - Disallow bare ParamSpec in type aliases (Brian Schubert, PR 18174)
    - Move long_description metadata to pyproject.toml (Marc Mueller, PR 18172)
    - Support ==-based narrowing of Optional (Christoph Tyralla, PR 18163)
    - Allow TypedDict assignment of Required item to NotRequired ReadOnly item (Brian Schubert, PR 18164)
    - Allow nesting of Annotated with TypedDict special forms inside TypedDicts (Brian Schubert, PR 18165)
    - Infer generic type arguments for slice expressions (Brian Schubert, PR 18160)
    - Fix checking of match sequence pattern against bounded type variables (Brian Schubert, PR 18091)
    - Fix incorrect truthyness for Enum types and literals (David Salvisberg, PR 17337)
    - Move static project metadata to pyproject.toml (Marc Mueller, PR 18146)
    - Fallback to stdlib json if integer exceeds 64-bit range (q0w, PR 18148)
    - Fix 'or' pattern structural matching exhaustiveness (yihong, PR 18119)
    - Fix type inference of positional parameter in class pattern involving builtin subtype (Brian Schubert, PR 18141)
    - Fix [override] error with no line number when argument node has no line number (Brian Schubert, PR 18122)
    - Fix some dmypy crashes (Ivan Levkivskyi, PR 18098)
    - Fix subtyping between instance type and overloaded (Shantanu, PR 18102)
    - Clean up new_semantic_analyzer config (Shantanu, PR 18071)
    - Issue warning for enum with no members in stub (Shantanu, PR 18068)
    - Fix enum attributes are not members (Terence Honles, PR 17207)
    - Fix crash when checking slice expression with step 0 in tuple index (Brian Schubert, PR 18063)
    - Allow union-with-callable attributes to be overridden by methods (Brian Schubert, PR 18018)
    - Emit [mutable-override] for covariant override of attribute with method (Brian Schubert, PR 18058)
    - Support ParamSpec mapping with functools.partial (Stanislav Terliakov, PR 17355)
    - Fix approved stub ignore, remove normpath (Shantanu, PR 18045)
    - Make disallow-any-unimported flag invertible (Séamus Ó Ceanainn, PR 18030)
    - Filter to possible package paths before trying to resolve a module (falsedrow, PR 18038)
    - Fix overlap check for ParamSpec types (Jukka Lehtosalo, PR 18040)
    - Do not prioritize ParamSpec signatures during overload resolution (Stanislav Terliakov, PR 18033)
    - Fix ternary union for literals (Ivan Levkivskyi, PR 18023)
    - Fix compatibility checks for conditional function definitions using decorators (Brian Schubert, PR 18020)
    - TypeGuard should be bool not Any when matching TypeVar (Evgeniy Slobodkin, PR 17145)
    - Fix convert-cache tool (Shantanu, PR 17974)
    - Fix generator comprehension with mypyc (Shantanu, PR 17969)
    - Fix crash issue when using shadowfile with pretty (Max Chang, PR 17894)
    - Fix multiple nested classes with new generics syntax (Max Chang, PR 17820)
    - Better error for mypy -p package without py.typed (Joe Gordon, PR 17908)
    - Emit error for raise NotImplemented (Brian Schubert, PR 17890)
    - Add is_lvalue attribute to AttributeContext (Brian Schubert, PR 17881)
  - Changes from 1.13
    - Significantly speed up file handling error paths (Shantanu, PR 17920)
    - Use fast path in modulefinder more often (Shantanu, PR 17950)
    - Let mypyc optimise os.path.join (Shantanu, PR 17949)
    - Make is_sub_path faster (Shantanu, PR 17962)
    - Speed up stubs suggestions (Shantanu, PR 17965)
    - Use sha1 for hashing (Shantanu, PR 17953)
    - Use orjson instead of json, when available (Shantanu, PR 17955)
    - Add faster-cache extra, test in CI (Shantanu, PR 17978)

OBS-URL: https://build.opensuse.org/request/show/1240190
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=28
2025-01-25 20:45:00 +00:00
2023-09-01 22:14:38 +00:00
Description
No description provided
9.5 MiB
Languages
RPM Spec 100%