PY-34493 Enable back copying annotations from third-party .py files on Override/Implement

Since disabling turned out to be controversial. Even in the ticket some users were
against this decision claiming that it heavily annotated code bases it might be necessary
to retain all annotations from inherited method signatures. We need to think of a better
solution for controlling this behavior on case-to-case basis.

GitOrigin-RevId: c68763f0cad23de8975085e9bc8a6fd99013de3b
This commit is contained in:
Mikhail Golubev
2023-07-19 15:25:51 +03:00
committed by intellij-monorepo-bot
parent a2af264b63
commit 63d24cbb9d
10 changed files with 10 additions and 15 deletions

View File

@@ -235,7 +235,7 @@ public class PyOverrideTest extends PyTestCase {
}
// PY-34493
public void testAnnotationsNotCopiedFromThirdPartyLibraries() {
public void testAnnotationsAreCopiedFromThirdPartyLibraries() {
runWithAdditionalClassEntryInSdkRoots(getTestName(false) + "/lib", () -> {
myFixture.copyDirectoryToProject(getTestName(false) + "/src", "");
myFixture.configureByFile("main.py");