We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f94b4e3 commit 079e8dfCopy full SHA for 079e8df
src/pymgrid/utils/dry_run.py
@@ -1,13 +1,10 @@
1
import yaml
2
3
from contextlib import contextmanager
4
-from typing import Union
5
-
6
-import pymgrid
7
8
9
@contextmanager
10
-def dry_run(pymgrid_object: Union['pymgrid.Microgrid', 'pymgrid.modules.base.BaseMicrogridModule']):
+def dry_run(pymgrid_object):
11
"""
12
A context manager to test modifications of a pymgrid object without modifying said object.
13
0 commit comments