Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torchani
Commits
19882c6e
Unverified
Commit
19882c6e
authored
Aug 15, 2020
by
Gao, Xiang
Committed by
GitHub
Aug 15, 2020
Browse files
Disable Final for 3.6 (#509)
* Disable Final for 3.6 * dont run mypy for 3.6
parent
2fcc6486
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
.github/workflows/mypy.yml
.github/workflows/mypy.yml
+1
-1
torchani/aev.py
torchani/aev.py
+9
-1
No files found.
.github/workflows/mypy.yml
View file @
19882c6e
...
@@ -15,7 +15,7 @@ jobs:
...
@@ -15,7 +15,7 @@ jobs:
strategy
:
strategy
:
max-parallel
:
4
max-parallel
:
4
matrix
:
matrix
:
python-version
:
[
3.6
,
3.7
,
3.8
]
python-version
:
[
3.7
,
3.8
]
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
...
...
torchani/aev.py
View file @
19882c6e
...
@@ -2,7 +2,15 @@ import torch
...
@@ -2,7 +2,15 @@ import torch
from
torch
import
Tensor
from
torch
import
Tensor
import
math
import
math
from
typing
import
Tuple
,
Optional
,
NamedTuple
from
typing
import
Tuple
,
Optional
,
NamedTuple
from
torch.jit
import
Final
import
sys
if
sys
.
version_info
[:
2
]
<
(
3
,
7
):
class
FakeFinal
:
def
__getitem__
(
self
,
x
):
return
x
Final
=
FakeFinal
()
else
:
from
torch.jit
import
Final
class
SpeciesAEV
(
NamedTuple
):
class
SpeciesAEV
(
NamedTuple
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment