Skip to content

Commit

Permalink
Reverting back a typing change to fix the nightly which runs on an ol…
Browse files Browse the repository at this point in the history
…der version of python.

PiperOrigin-RevId: 639810147
Change-Id: If7c36785b97e96a9068873caf8327c986b1a7a7b
  • Loading branch information
esonghori authored and copybara-github committed Jun 3, 2024
1 parent 26b4a84 commit b9b916d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circuit_training/environment/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import math
import os
import time
from typing import Any, Callable, Protocol
from typing import Any, Callable, Optional, Protocol

from absl import logging
from circuit_training.dreamplace import dreamplace_core
Expand Down Expand Up @@ -151,7 +151,7 @@ def __init__(
output_plc_file: str = '',
cd_finetune: bool = False,
cd_plc_file: str = 'ppo_cd_placement.plc',
train_step: tf.Variable | None = None,
train_step: Optional[tf.Variable] = None,
output_all_features: bool = False,
node_order: str = 'descending_size_macro_first',
save_snapshot: bool = True,
Expand Down

0 comments on commit b9b916d

Please sign in to comment.