[Python-checkins] Remove accidentally checked in files. (GH-6835) (GH-6844)

Ned Deily webhook-mailer at python.org
Tue May 15 04:48:17 EDT 2018


https://github.com/python/cpython/commit/28ff86eff0f6b02e87138fb08b6028f4b19d4f04
commit: 28ff86eff0f6b02e87138fb08b6028f4b19d4f04
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Ned Deily <nad at python.org>
date: 2018-05-15T04:48:07-04:00
summary:

Remove accidentally checked in files. (GH-6835) (GH-6844)

(cherry picked from commit 046d311654eb15ccc8f471290334f7ac6aad5f15)

Co-authored-by: Eric V. Smith <ericvsmith at users.noreply.github.com>

files:
D f.py
D j.py
D t.py
D x.py

diff --git a/f.py b/f.py
deleted file mode 100644
index 02a3668c10ca..000000000000
--- a/f.py
+++ /dev/null
@@ -1,12 +0,0 @@
-from __future__ import annotations
-from dataclasses import dataclass
-from typing import List
-from typing import ClassVar as CV
-
- at dataclass
-class A:
-    a: List[str]
-
- at dataclass
-class B(A):
-    b: CV[int]
diff --git a/j.py b/j.py
deleted file mode 100644
index 9551702cfe9c..000000000000
--- a/j.py
+++ /dev/null
@@ -1,15 +0,0 @@
-
-class X:
-    def __init__(self, value):
-        self.value = value
-    def __str__(self):
-        return str(self.value)
-    def __format__(self, fmt):
-        assert fmt[0] == '='
-        self.value = eval(fmt[1:])
-        return ''
-
-x = X(3)
-print(x)
-f'{x:=4}'   # Behold!
-print(x)
diff --git a/t.py b/t.py
deleted file mode 100644
index 7484cf9758b3..000000000000
--- a/t.py
+++ /dev/null
@@ -1,20 +0,0 @@
-from dataclasses import *
-
-class D:
-    """A descriptor class that knows its name."""
-    def __set_name__(self, owner, name):
-        self.name = name
-    def __get__(self, instance, owner):
-        if instance is not None:
-            return 1
-        return self
-
-from dataclasses import *
-
- at dataclass
-class C:
-    d: int = field(default=D(), init=False)
-
- at dataclass
-class E(C):
-    e: int = field(default=D(), init=False)
diff --git a/x.py b/x.py
deleted file mode 100644
index 2b78f3e96fc7..000000000000
--- a/x.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#from __future__ import annotations
-from typing import ClassVar, Dict, get_type_hints
-from dataclasses import *
-
-class Starship:
-    stats: ClassVar[Dict[str, int]] = {}
-
-#print(get_type_hints(Starship))
-
-#class A:
-#    a: Dict[int, C]
-
-#print(get_type_hints(A))
-
-cv = [ClassVar[int]]
-
- at dataclass
-class C:
-    CVS = [ClassVar[str]]
-    a: cv[0]
-    b: 'C'
-    c: 'CVS[0]'
-    x: 'ClassVar["int"]'
-    y: 'ClassVar[C]'
-
-print()
-print(C.__annotations__)
-print(C.__dataclass_fields__)
-
-
-#print(get_type_hints(C))



More information about the Python-checkins mailing list