Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release 0.11.0 #698

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/annotated_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def caller(i: int) -> None:
takes_gt_5(i) # accepted
```

Similarly, pyanalyze infers the `MinLen` and `MaxLen` attributes after checks
on `len()`.

For the `MultipleOf` check, pyanalyze follows Python semantics: values
are accepted if `value % multiple_of == 0`.

Expand Down
5 changes: 3 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## Unreleased
## Version 0.11.0 (October 3, 2023)

- Partial support for PEP 695-style type aliases (#690, #692)
- Partial support for PEP 695-style type aliases. Scoping changes
are not yet fully implemented. (#690, #692)
- Fix tests to account for new `typeshed_client` release
(#694)
- Add option to disable all error codes (#659)
Expand Down
1 change: 1 addition & 0 deletions docs/typesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ Although pyanalyze aims to support the full Python type system, support for some
- Variance of TypeVars
- `NewType` over non-trivial types
- `ParamSpec` (PEP 612)
- `TypeVarTuple` (PEP 646)

More generally, Python is sufficiently dynamic that almost any check like the ones run by pyanalyze will inevitably have false positives: cases where the script sees an error, but the code in fact runs fine. Attributes may be added at runtime in hard-to-detect ways, variables may be created by direct manipulation of the `globals()` dictionary, and the `unittest.mock` module can change anything into anything. Although pyanalyze has a number of configuration mechanisms to deal with these false positives, it is usually better to write code in a way that doesn't require use of these knobs: code that's easier for the script to understand is probably also easier for humans to understand.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup


version = "0.10.1"
version = "0.11.0"
package_data = ["test.toml", "stubs/*/*.pyi"]


Expand Down
Loading