@@ -1348,11 +1348,6 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
1348
1348
# default
1349
1349
options = {'members' : None }
1350
1350
actual = do_autodoc (app , 'module' , 'target.autodoc_type_aliases' , options )
1351
- attr2_typeinfo : tuple [str , ...]
1352
- if sys .version_info >= (3 , 14 , 0 , 'alpha' , 7 ):
1353
- attr2_typeinfo = ()
1354
- else :
1355
- attr2_typeinfo = (' :type: int' ,)
1356
1351
assert list (actual ) == [
1357
1352
'' ,
1358
1353
'.. py:module:: target.autodoc_type_aliases' ,
@@ -1373,7 +1368,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
1373
1368
'' ,
1374
1369
' .. py:attribute:: Foo.attr2' ,
1375
1370
' :module: target.autodoc_type_aliases' ,
1376
- * attr2_typeinfo ,
1371
+ ' :type: int' ,
1377
1372
'' ,
1378
1373
' docstring' ,
1379
1374
'' ,
@@ -1426,10 +1421,6 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
1426
1421
'io.StringIO' : 'my.module.StringIO' ,
1427
1422
}
1428
1423
actual = do_autodoc (app , 'module' , 'target.autodoc_type_aliases' , options )
1429
- if sys .version_info >= (3 , 14 , 0 , 'alpha' , 7 ):
1430
- attr2_typeinfo = ()
1431
- else :
1432
- attr2_typeinfo = (' :type: myint' ,)
1433
1424
assert list (actual ) == [
1434
1425
'' ,
1435
1426
'.. py:module:: target.autodoc_type_aliases' ,
@@ -1450,7 +1441,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
1450
1441
'' ,
1451
1442
' .. py:attribute:: Foo.attr2' ,
1452
1443
' :module: target.autodoc_type_aliases' ,
1453
- * attr2_typeinfo ,
1444
+ ' :type: myint' ,
1454
1445
'' ,
1455
1446
' docstring' ,
1456
1447
'' ,
0 commit comments