Add PYI034 for flake8-pyi plugin (#4764)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user