Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f9618a62
提交
f9618a62
authored
3月 01, 2022
作者:
Brandon T. Willard
提交者:
Brandon T. Willard
3月 02, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typing issues in aesara.graph.basic
上级
90c4ce82
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
15 行删除
+9
-15
basic.py
aesara/graph/basic.py
+0
-0
utils.py
aesara/graph/utils.py
+5
-7
setup.cfg
setup.cfg
+4
-8
没有找到文件。
aesara/graph/basic.py
浏览文件 @
f9618a62
差异被折叠。
点击展开。
aesara/graph/utils.py
浏览文件 @
f9618a62
...
@@ -8,7 +8,7 @@ from typing import List, Optional, Sequence, Tuple
...
@@ -8,7 +8,7 @@ from typing import List, Optional, Sequence, Tuple
def
simple_extract_stack
(
def
simple_extract_stack
(
f
=
None
,
limit
:
Optional
[
int
]
=
None
,
skips
:
Optional
[
Sequence
[
str
]]
=
None
f
=
None
,
limit
:
Optional
[
int
]
=
None
,
skips
:
Optional
[
Sequence
[
str
]]
=
None
)
->
List
[
Tuple
[
Optional
[
str
],
int
,
str
,
str
]]:
)
->
List
[
Tuple
[
Optional
[
str
],
int
,
str
,
Optional
[
str
]
]]:
"""This is traceback.extract_stack from python 2.7 with this change:
"""This is traceback.extract_stack from python 2.7 with this change:
- Comment the update of the cache.
- Comment the update of the cache.
...
@@ -28,14 +28,12 @@ def simple_extract_stack(
...
@@ -28,14 +28,12 @@ def simple_extract_stack(
skips
=
[]
skips
=
[]
if
f
is
None
:
if
f
is
None
:
try
:
f
=
sys
.
_getframe
()
.
f_back
raise
ZeroDivisionError
except
ZeroDivisionError
:
f
=
sys
.
exc_info
()[
2
]
.
tb_frame
.
f_back
if
limit
is
None
:
if
limit
is
None
:
if
hasattr
(
sys
,
"tracebacklimit"
):
if
hasattr
(
sys
,
"tracebacklimit"
):
limit
=
sys
.
tracebacklimit
limit
=
sys
.
tracebacklimit
trace
:
List
[
Tuple
[
Optional
[
str
],
int
,
str
,
str
]]
=
[]
trace
:
List
[
Tuple
[
Optional
[
str
],
int
,
str
,
Optional
[
str
]
]]
=
[]
n
=
0
n
=
0
while
f
is
not
None
and
(
limit
is
None
or
n
<
limit
):
while
f
is
not
None
and
(
limit
is
None
or
n
<
limit
):
lineno
=
f
.
f_lineno
lineno
=
f
.
f_lineno
...
@@ -43,7 +41,7 @@ def simple_extract_stack(
...
@@ -43,7 +41,7 @@ def simple_extract_stack(
filename
=
co
.
co_filename
filename
=
co
.
co_filename
name
=
co
.
co_name
name
=
co
.
co_name
# linecache.checkcache(filename)
# linecache.checkcache(filename)
line
=
linecache
.
getline
(
filename
,
lineno
,
f
.
f_globals
)
line
:
Optional
[
str
]
=
linecache
.
getline
(
filename
,
lineno
,
f
.
f_globals
)
if
line
:
if
line
:
line
=
line
.
strip
()
line
=
line
.
strip
()
else
:
else
:
...
...
setup.cfg
浏览文件 @
f9618a62
...
@@ -115,14 +115,6 @@ check_untyped_defs = False
...
@@ -115,14 +115,6 @@ check_untyped_defs = False
ignore_errors = True
ignore_errors = True
check_untyped_defs = False
check_untyped_defs = False
[mypy-aesara.graph.utils]
ignore_errors = True
check_untyped_defs = False
[mypy-aesara.graph.basic]
ignore_errors = True
check_untyped_defs = False
[mypy-aesara.graph.op]
[mypy-aesara.graph.op]
ignore_errors = True
ignore_errors = True
check_untyped_defs = False
check_untyped_defs = False
...
@@ -179,6 +171,10 @@ check_untyped_defs = False
...
@@ -179,6 +171,10 @@ check_untyped_defs = False
ignore_errors = True
ignore_errors = True
check_untyped_defs = False
check_untyped_defs = False
[mypy-aesara.compile.builders]
ignore_errors = True
check_untyped_defs = False
[mypy-aesara.compile.sharedvalue]
[mypy-aesara.compile.sharedvalue]
ignore_errors = True
ignore_errors = True
check_untyped_defs = False
check_untyped_defs = False
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论