Skip to content

Commit 8edb5e1

Browse files
committed
update changelog. Removed #ASYNCIO from a bunch of files which are passing on asyncio, though not necessarily for good reasons
1 parent bc8d8ff commit 8edb5e1

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
## Future
55
- Removed TRIO117, MultiError removed in trio 0.24.0
6+
- Renamed the library from flake8-trio to flake8-async, to indicate the checker supports more than just `trio`.
7+
- Renamed all error codes from TRIOxxx to ASYNCxxx
8+
- Renamed the binary from flake8-trio to flake8-async
9+
- Lots of internal renaming.
10+
- Added asyncio support for ASYNC106
11+
- added `--library`
612

713
## 23.5.1
814
- TRIO91X now supports comprehensions

tests/eval_files/anyio_trio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# type: ignore
22
# ARG --enable=ASYNC220
33
# NOTRIO
4-
# NOASYNCIO
54
# BASE_LIBRARY anyio
5+
# TODO: why does this pass with --asyncio
66

77
# anyio eval will automatically prepend this test with `--anyio`
88
import trio # isort: skip

tests/eval_files/async102_anyio.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# NOASYNCIO
21
# type: ignore
32
import anyio
43
from anyio import get_cancelled_exc_class

tests/eval_files/async104_anyio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# type: ignore
2-
# NOASYNCIO
2+
# BASE_LIBRARY ANYIO
33
import anyio
44

55
try:

tests/eval_files/async105_anyio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NOTRIO
2-
# NOASYNCIO
32
# BASE_LIBRARY anyio
3+
# asyncio obv will not raise any errors on this file
44
import anyio
55

66

tests/eval_files/async114.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# NOASYNCIO
21
import trio
32

3+
# async114 does not care about the imported library, so will raise errors regardless
4+
# of trio/anyio/asyncio
5+
46
# ARG --startable-in-context-manager=foo
57

68

tests/eval_files/async118.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# NOASYNCIO
1+
# This raises the same errors on trio/asyncio, which is a bit silly, but inconsequential
22
from typing import Any
33

44
import anyio

0 commit comments

Comments
 (0)