Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
sotetsuk committed Sep 18, 2024
1 parent a15a33e commit 26db941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgx/_src/games/chess.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import NamedTuple, Optional
from typing import NamedTuple

import jax
import jax.numpy as jnp
Expand Down Expand Up @@ -178,7 +178,7 @@ def step(self, state: GameState, action: Array) -> GameState:
state = state._replace(step_count=state.step_count + 1)
return state

def observe(self, state: GameState, color: Optional[Array] = None) -> Array:
def observe(self, state: GameState, color: Array | None = None) -> Array:
if color is None:
color = state.color
ones = jnp.ones((1, 8, 8), dtype=jnp.float32)
Expand Down

0 comments on commit 26db941

Please sign in to comment.