mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-18 09:54:10 +00:00
Fix type annotation in make_vec_env (#162)
* Fix type annotation in make_vec_env The variable `vec_env_cls` is a type and not an instance of either DummyVecEnv or SubprocVecEnv * Update changelog.rst
This commit is contained in:
parent
f5104a5efc
commit
e908583e2a
2 changed files with 3 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ Deprecations:
|
||||||
Others:
|
Others:
|
||||||
^^^^^^^
|
^^^^^^^
|
||||||
- Improve typing coverage of the ``VecEnv``
|
- Improve typing coverage of the ``VecEnv``
|
||||||
|
- Fix type annotation of ``make_vec_env`` (@ManifoldFR)
|
||||||
- Removed ``AlreadySteppingError`` and ``NotSteppingError`` that were not used
|
- Removed ``AlreadySteppingError`` and ``NotSteppingError`` that were not used
|
||||||
- Fixed typos in SAC and TD3
|
- Fixed typos in SAC and TD3
|
||||||
|
|
||||||
|
|
@ -401,4 +402,4 @@ And all the contributors:
|
||||||
@MarvineGothic @jdossgollin @SyllogismRXS @rusu24edward @jbulow @Antymon @seheevic @justinkterry @edbeeching
|
@MarvineGothic @jdossgollin @SyllogismRXS @rusu24edward @jbulow @Antymon @seheevic @justinkterry @edbeeching
|
||||||
@flodorner @KuKuXia @NeoExtended @PartiallyTyped @mmcenta @richardwu @kinalmehta @rolandgvc @tkelestemur @mloo3
|
@flodorner @KuKuXia @NeoExtended @PartiallyTyped @mmcenta @richardwu @kinalmehta @rolandgvc @tkelestemur @mloo3
|
||||||
@tirafesi @blurLake @koulakis @joeljosephjin @shwang @rk37 @andyshih12 @RaphaelWag @xicocaio
|
@tirafesi @blurLake @koulakis @joeljosephjin @shwang @rk37 @andyshih12 @RaphaelWag @xicocaio
|
||||||
@diditforlulz273 @liorcohen5
|
@diditforlulz273 @liorcohen5 @ManifoldFR
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ def make_vec_env(
|
||||||
monitor_dir: Optional[str] = None,
|
monitor_dir: Optional[str] = None,
|
||||||
wrapper_class: Optional[Callable] = None,
|
wrapper_class: Optional[Callable] = None,
|
||||||
env_kwargs: Optional[Dict[str, Any]] = None,
|
env_kwargs: Optional[Dict[str, Any]] = None,
|
||||||
vec_env_cls: Optional[Union[DummyVecEnv, SubprocVecEnv]] = None,
|
vec_env_cls: Optional[Type[Union[DummyVecEnv, SubprocVecEnv]]] = None,
|
||||||
vec_env_kwargs: Optional[Dict[str, Any]] = None,
|
vec_env_kwargs: Optional[Dict[str, Any]] = None,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue