mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-23 16:55:05 +00:00
use native types List->list, Dict->dict, Set->set, Tuple->tuple
This commit is contained in:
parent
5d02064b5a
commit
3e7ff3b084
95 changed files with 754 additions and 760 deletions
|
|
@ -2,7 +2,7 @@ import cmath
|
|||
import math
|
||||
import random
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional, Tuple
|
||||
from typing import Optional
|
||||
|
||||
from ..factory import ProceduralDataset, register_dataset
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ class ComplexArithmeticConfig:
|
|||
max_real: int = 10
|
||||
min_imag: int = -10
|
||||
max_imag: int = 10
|
||||
operations: Tuple[str, ...] = ("+", "-", "*", "/")
|
||||
operations: tuple[str, ...] = ("+", "-", "*", "/")
|
||||
seed: Optional[int] = None
|
||||
size: int = 500
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue