Skip to content

Commit

Permalink
[Format] Apply update black format (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
sotetsuk authored Jan 27, 2024
1 parent f26e9e3 commit 408310d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ format:
check:
black pgx --check --diff
blackdoc pgx --check
flake8 --config pyproject.toml --ignore E203,E501,W503,E741 pgx
flake8 --config pyproject.toml --ignore E203,E501,W503,E704,E741 pgx
mypy --config pyproject.toml pgx --ignore-missing-imports
isort pgx --check --diff

Expand Down
18 changes: 6 additions & 12 deletions pgx/_src/games/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@

@runtime_checkable
class GameProtocol(Protocol[T]):
def init(self) -> T:
...
def init(self) -> T: ...

def step(self, state: T, action: Array) -> T:
...
def step(self, state: T, action: Array) -> T: ...

def observe(self, state: T, color: Optional[Array] = None) -> Array:
...
def observe(self, state: T, color: Optional[Array] = None) -> Array: ...

def legal_action_mask(self, state: T) -> Array:
...
def legal_action_mask(self, state: T) -> Array: ...

def is_terminal(self, state: T) -> Array:
...
def is_terminal(self, state: T) -> Array: ...

def rewards(self, state: T) -> Array:
...
def rewards(self, state: T) -> Array: ...
3 changes: 1 addition & 2 deletions pgx/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ class Env(abc.ABC):
"""

def __init__(self):
...
def __init__(self): ...

def init(self, key: PRNGKey) -> State:
"""Return the initial state. Note that no internal state of
Expand Down

0 comments on commit 408310d

Please sign in to comment.