ruff/crates/red_knot_python_semantic/resources/mdtest/function
InSync 902d86e79e
[red-knot] Do not emit invalid-return-type for abstract functions (#16900)
## Summary

Resolves #16895.

`abstractmethod` is now a `KnownFunction`. When a function is decorated
by `abstractmethod` or when the parent class inherits directly from
`Protocol`, `invalid-return-type` won't be emitted for that function.

## Test Plan

Markdown tests.

---------

Co-authored-by: Carl Meyer <carl@oddbird.net>
2025-03-23 17:51:10 +00:00
..
parameters.md [red-knot] function parameter types (#14802) 2024-12-06 12:55:56 -08:00
return_type.md [red-knot] Do not emit invalid-return-type for abstract functions (#16900) 2025-03-23 17:51:10 +00:00