mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-12 14:48:39 +00:00
Add PYI034 for flake8-pyi
plugin (#4764)
This commit is contained in:
parent
c68686b1de
commit
fcbf5c3fae
14 changed files with 918 additions and 2 deletions
|
@ -93,6 +93,10 @@ impl<'a> SemanticModel<'a> {
|
|||
return true;
|
||||
}
|
||||
|
||||
if call_path.as_slice() == ["_typeshed", target] {
|
||||
return true;
|
||||
}
|
||||
|
||||
if TYPING_EXTENSIONS.contains(target) {
|
||||
if call_path.as_slice() == ["typing_extensions", target] {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue