Add PYI034 for flake8-pyi plugin (#4764)

This commit is contained in:
qdegraaf 2023-06-02 04:15:57 +02:00 committed by GitHub
parent c68686b1de
commit fcbf5c3fae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 918 additions and 2 deletions

View file

@ -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;