Skip to content

Commit

Permalink
Fix type hint for field.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Jul 29, 2023
1 parent b1d2a9f commit 10fd101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matgl/models/_m3gnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from __future__ import annotations

import logging
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Literal

import dgl
import torch
Expand Down Expand Up @@ -74,7 +74,7 @@ def __init__(
use_phi: bool = False,
niters_set2set: int = 3,
nlayers_set2set: int = 3,
field: str = "node_feat",
field: Literal["node_feat", "edge_feat"] = "node_feat",
include_state: bool = False,
activation_type: str = "swish",
**kwargs,
Expand Down

0 comments on commit 10fd101

Please sign in to comment.