Skip to content

Commit 6156a2d

Browse files
committed
docs(CHANGES): Note python 3.11 support
1 parent bf2c933 commit 6156a2d

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

CHANGES

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,28 @@ $ pip install --user --upgrade --pre libvcs
1515

1616
<!-- Maintainers, insert changes / features for the next release here -->
1717

18+
### What's new
19+
20+
#### Python 3.11 support (#433)
21+
22+
Official support for python 3.11
23+
24+
#### URLs: Mapping now class attributes (#433)
25+
26+
`URL.rule_map` is now a class attribute rather than a dataclass attribute.
27+
28+
```console
29+
File "/home/user/.python/3.11.0/lib/python3.11/dataclasses.py", line 1211, in wrap
30+
return _process_class(cls, init, repr, eq, order, unsafe_hash,
31+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32+
File "/home/user/.python/3.11.0/lib/python3.11/dataclasses.py", line 959, in _process_class
33+
cls_fields.append(_get_field(cls, name, type, kw_only))
34+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35+
File "/home/user/.python/3.11.0/lib/python3.11/dataclasses.py", line 816, in _get_field
36+
raise ValueError(f'mutable default {type(f.default)} for field '
37+
ValueError: mutable default <class 'libvcs.url.base.RuleMap'> for field rule_map is not allowed: use default_factory
38+
```
39+
1840
## libvcs 0.19.1 (2022-10-23)
1941

2042
#### Tests
@@ -23,8 +45,7 @@ $ pip install --user --upgrade --pre libvcs
2345

2446
#### Documentation
2547

26-
- CLI, git: Split subcommands into separate pages (remote, stash, submodule),
27-
via #432
48+
- CLI, git: Split subcommands into separate pages (remote, stash, submodule), via #432
2849

2950
## libvcs 0.19.0 (2022-10-23)
3051

0 commit comments

Comments
 (0)