Imports are sorted differently from file to file.
Sometimes we have native package imported after rl berry :
import multiprocessing
from rlberry.network.interface import ResourceItem
from rlberry.network.server import BerryServer
from rlberry.agents import ValueIterationAgent
from rlberry.agents.torch import REINFORCEAgent
from rlberry.envs import GridWorld, gym_make
from rlberry.utils.writers import DefaultWriter
import sys
sometimes mixed,
import numpy as np
from rlberry.agents import AgentWithSimplePolicy
import pickle
from typing import Any, Union
from typing_extensions import Self
from rlberry.envs.bandits.bandit_base import Bandit
from pathlib import Path
import rlberry
I suggest to use a tool like isort to automatically sort the imports for clearer and harmonized files (as well as satisfying the linters requirements).
Imports are sorted differently from file to file.
Sometimes we have native package imported after rl berry :
sometimes mixed,
I suggest to use a tool like isort to automatically sort the imports for clearer and harmonized files (as well as satisfying the linters requirements).