8000 MAINT: fix unhashable instance and potential exception identified by LGTM. by sistaseetaram · Pull Request #19818 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: fix unhashable instance and potential exception identified by LGTM. #19818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion numpy/array_api/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

Device = Any
Dtype = Type[
Union[[int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64]]
Union[int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64]
]
SupportsDLPack = Any
SupportsBufferProtocol = Any
Expand Down
5 changes: 2 additions & 3 deletions numpy/linalg/lapack_lite/clapack_scrub.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,5 @@ def scrubSource(source, nsteps=None, verbose=False):

source = scrub_source(source, nsteps, verbose=True)

writefo = open(outfilename, 'w')
writefo.write(source)
writefo.close()
with open(outfilename, 'w') as writefo:
writefo.write(source)
0