8000 Replace old anndata to new from CPython 3.13.5 · RustPython/RustPython@481e03a · GitHub
[go: up one dir, main page]

Skip to content

Commit 481e03a

Browse files
committed
Replace old anndata to new from CPython 3.13.5
1 parent 999976a commit 481e03a

11 files changed

+14
-236
lines changed

Lib/test/_typed_dict_helper.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

Lib/test/ann_module.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

Lib/test/ann_module2.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

Lib/test/ann_module3.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

Lib/test/ann_module4.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

Lib/test/ann_module5.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

Lib/test/ann_module6.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

Lib/test/ann_module7.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

Lib/test/mod_generics_cache.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

Lib/test/test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def test_var_annot_module_semantics(self):
400400
def test_var_annot_in_module(self):
401401
# check that functions fail the same way when executed
402402
# outside of module where they were defined
403-
from test.ann_module3 import f_bad_ann, g_bad_ann, D_bad_ann
403+
from test.typinganndata.ann_module3 import f_bad_ann, g_bad_ann, D_bad_ann
404404
with self.assertRaises(NameError):
405405
f_bad_ann()
406406
with self.assertRaises(NameError):

Lib/test/typinganndata/mod_generics_cache.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,23 @@
22

33
from typing import TypeVar, Generic, Optional, TypeAliasType
44

5-
# TODO: RUSTPYTHON
5+
default_a: Optional['A'] = None
6+
default_b: Optional['B'] = None
67

7-
# default_a: Optional['A'] = None
8-
# default_b: Optional['B'] = None
8+
T = TypeVar('T')
99

10-
# T = TypeVar('T')
1110

11+
class A(Generic[T]):
12+
some_b: 'B'
1213

13-
# class A(Generic[T]):
14-
# some_b: 'B'
1514

15+
class B(Generic[T]):
16+
class A(Generic[T]):
17+
pass
1618

17-
# class B(Generic[T]):
18-
# class A(Generic[T]):
19-
# pass
19+
my_inner_a1: 'B.A'
20+
my_inner_a2: A
21+
my_outer_a: 'A' # unless somebody calls get_type_hints with localns=B.__dict__
2022

21-
# my_inner_a1: 'B.A'
22-
# my_inner_a2: A
23-
# my_outer_a: 'A' # unless somebody calls get_type_hints with localns=B.__dict__
24-
25-
# type Alias = int
26-
# OldStyle = TypeAliasType("OldStyle", int)
23+
type Alias = int
24+
OldStyle = TypeAliasType("OldStyle", int)

0 commit comments

Comments
 (0)
0