Skip to content

Commit da570a8

Browse files
committed
undo rename
1 parent a518431 commit da570a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/iris/fileformats/netcdf/saver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class VariableEmulator(typing.Protocol):
295295
shape: tuple[int, ...]
296296

297297

298-
_CFVariable = typing.Union[_thread_safe_nc.VariableWrapper, VariableEmulator]
298+
CFVariable = typing.Union[_thread_safe_nc.VariableWrapper, VariableEmulator]
299299

300300

301301
class Saver:
@@ -2296,7 +2296,7 @@ def _increment_name(self, varname):
22962296
def _lazy_stream_data(
22972297
self,
22982298
data: np.typing.ArrayLike,
2299-
cf_var: _CFVariable,
2299+
cf_var: CFVariable,
23002300
) -> None:
23012301
if hasattr(data, "shape") and data.shape == (1,) + cf_var.shape:
23022302
# (Don't do this check for string data).
@@ -2323,7 +2323,7 @@ def _lazy_stream_data(
23232323
# later by a call to delayed_completion().
23242324
def store(
23252325
data: np.typing.ArrayLike,
2326-
cf_var: _CFVariable,
2326+
cf_var: CFVariable,
23272327
) -> None:
23282328
# Create a data-writeable object that we can stream into, which
23292329
# encapsulates the file to be opened + variable to be written.
@@ -2337,7 +2337,7 @@ def store(
23372337
# Real data is always written directly, i.e. not via lazy save.
23382338
def store(
23392339
data: np.typing.ArrayLike,
2340-
cf_var: _CFVariable,
2340+
cf_var: CFVariable,
23412341
) -> None:
23422342
cf_var[:] = data # type: ignore[index]
23432343

0 commit comments

Comments
 (0)