PY-63273 Remove source from NAMEDTUPLE_SPECIAL_ATTRIBUTES

GitOrigin-RevId: f4744a3818835e14e4ce41034bec13f931a2aab6
This commit is contained in:
Andrey.Matveev
2023-09-26 20:09:15 +03:00
committed by intellij-monorepo-bot
parent af4f8b8015
commit fe1d064d41
3 changed files with 1 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ public class PyNamedTupleType extends PyTupleType implements PyCallableType {
@NotNull
public static final Set<String> NAMEDTUPLE_SPECIAL_ATTRIBUTES =
ImmutableSet.of("_make", "_asdict", "_replace", "_source", "_fields", "_field_types", "_field_defaults");
ImmutableSet.of("_make", "_asdict", "_replace", "_fields", "_field_types", "_field_defaults");
@NotNull
private final String myName;

View File

@@ -7,7 +7,6 @@ c1 = Cat1("name", 5)
print(c1._make)
print(c1._asdict)
print(c1._replace)
print(c1._source)
print(c1._fields)
print(c1._field_types)
print(c1._field_defaults)
@@ -18,7 +17,6 @@ c2 = Cat2("name", 5)
print(c2._make)
print(c2._asdict)
print(c2._replace)
print(c2._source)
print(c2._fields)
print(c2._field_types)
print(c2._field_defaults)

View File

@@ -8,7 +8,6 @@ c1 = Cat1("name", 5)
print(c1._make)
print(c1._asdict)
print(c1._replace)
print(c1._source)
print(c1._fields)
print(c1._field_types)
print(c1._field_defaults)
@@ -19,7 +18,6 @@ c2 = Cat2("name", 5)
print(c2._make)
print(c2._asdict)
print(c2._replace)
print(c2._source)
print(c2._fields)
print(c2._field_types)
print(c2._field_defaults)