Skip to content

Commit fc3f543

Browse files
Prepare release 0.11.0 (#698)
1 parent 1c5c257 commit fc3f543

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

docs/annotated_types.md

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def caller(i: int) -> None:
3838
takes_gt_5(i) # accepted
3939
```
4040

41+
Similarly, pyanalyze infers the `MinLen` and `MaxLen` attributes after checks
42+
on `len()`.
43+
4144
For the `MultipleOf` check, pyanalyze follows Python semantics: values
4245
are accepted if `value % multiple_of == 0`.
4346

docs/changelog.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changelog
22

3-
## Unreleased
3+
## Version 0.11.0 (October 3, 2023)
44

5-
- Partial support for PEP 695-style type aliases (#690, #692)
5+
- Partial support for PEP 695-style type aliases. Scoping changes
6+
are not yet fully implemented. (#690, #692)
67
- Fix tests to account for new `typeshed_client` release
78
(#694)
89
- Add option to disable all error codes (#659)

docs/typesystem.md

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ Although pyanalyze aims to support the full Python type system, support for some
295295
- Variance of TypeVars
296296
- `NewType` over non-trivial types
297297
- `ParamSpec` (PEP 612)
298+
- `TypeVarTuple` (PEP 646)
298299

299300
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.
300301

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33

44

5-
version = "0.10.1"
5+
version = "0.11.0"
66
package_data = ["test.toml", "stubs/*/*.pyi"]
77

88

0 commit comments

Comments
 (0)