Skip to content

Commit c748fdf

Browse files
authored
Merge pull request #21694 from github/tausbn/python-add-support-for-pep-810
Python: Add support for PEP 810
2 parents b749ad6 + 2eeb31b commit c748fdf

File tree

26 files changed

+46342
-39844
lines changed

26 files changed

+46342
-39844
lines changed

python/downgrades/eb5fc917c79bb23ce2de4a022f3e566d57a91be9/old.dbscheme

Lines changed: 1291 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class BoolParent extends @py_bool_parent {
2+
string toString() { result = "BoolParent" }
3+
}
4+
5+
// Drop py_bools rows for Import and ImportStar parents,
6+
// since the old schema does not include them in @py_bool_parent.
7+
from BoolParent parent, int idx
8+
where
9+
py_bools(parent, idx) and
10+
not parent instanceof @py_Import and
11+
not parent instanceof @py_ImportStar
12+
select parent, idx

0 commit comments

Comments
 (0)