mirror of https://github.com/astral-sh/ruff
[`flake8-async`] Fix references in documentation not displaying (#12467)
## Summary Fix references in documentation of several `ASYNC` rules not displaying ## Test Plan Validated documentation now displays correctly
This commit is contained in:
parent
ef1ca0dd38
commit
b2d3a05ee4
|
|
@ -34,9 +34,10 @@ use crate::settings::types::PreviewMode;
|
||||||
/// await DONE.wait()
|
/// await DONE.wait()
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`asyncio` events]: https://docs.python.org/3/library/asyncio-sync.html#asyncio.Event
|
/// ## References
|
||||||
/// [`anyio` events]: https://trio.readthedocs.io/en/latest/reference-core.html#trio.Event
|
/// - [`asyncio` events](https://docs.python.org/3/library/asyncio-sync.html#asyncio.Event)
|
||||||
/// [`trio` events]: https://anyio.readthedocs.io/en/latest/api.html#anyio.Event
|
/// - [`anyio` events](https://trio.readthedocs.io/en/latest/reference-core.html#trio.Event)
|
||||||
|
/// - [`trio` events](https://anyio.readthedocs.io/en/latest/api.html#anyio.Event)
|
||||||
#[violation]
|
#[violation]
|
||||||
pub struct AsyncBusyWait {
|
pub struct AsyncBusyWait {
|
||||||
module: AsyncModule,
|
module: AsyncModule,
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,10 @@ use crate::settings::types::PreviewMode;
|
||||||
/// await long_running_task()
|
/// await long_running_task()
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`asyncio` timeouts]: https://docs.python.org/3/library/asyncio-task.html#timeouts
|
/// ## References
|
||||||
/// [`anyio` timeouts]: https://anyio.readthedocs.io/en/stable/cancellation.html
|
/// - [`asyncio` timeouts](https://docs.python.org/3/library/asyncio-task.html#timeouts)
|
||||||
/// [`trio` timeouts]: https://trio.readthedocs.io/en/stable/reference-core.html#cancellation-and-timeouts
|
/// - [`anyio` timeouts](https://anyio.readthedocs.io/en/stable/cancellation.html)
|
||||||
|
/// - [`trio` timeouts](https://trio.readthedocs.io/en/stable/reference-core.html#cancellation-and-timeouts)
|
||||||
#[violation]
|
#[violation]
|
||||||
pub struct AsyncFunctionWithTimeout {
|
pub struct AsyncFunctionWithTimeout {
|
||||||
module: AsyncModule,
|
module: AsyncModule,
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,10 @@ use crate::settings::types::PreviewMode;
|
||||||
/// await awaitable()
|
/// await awaitable()
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`asyncio` timeouts]: https://docs.python.org/3/library/asyncio-task.html#timeouts
|
/// ## References
|
||||||
/// [`anyio` timeouts]: https://anyio.readthedocs.io/en/stable/cancellation.html
|
/// - [`asyncio` timeouts](https://docs.python.org/3/library/asyncio-task.html#timeouts)
|
||||||
/// [`trio` timeouts]: https://trio.readthedocs.io/en/stable/reference-core.html#cancellation-and-timeouts
|
/// - [`anyio` timeouts](https://anyio.readthedocs.io/en/stable/cancellation.html)
|
||||||
|
/// - [`trio` timeouts](https://trio.readthedocs.io/en/stable/reference-core.html#cancellation-and-timeouts)
|
||||||
#[violation]
|
#[violation]
|
||||||
pub struct CancelScopeNoCheckpoint {
|
pub struct CancelScopeNoCheckpoint {
|
||||||
method_name: MethodName,
|
method_name: MethodName,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue