File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/iris/fileformats/netcdf Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ class VariableEmulator(typing.Protocol):
295
295
shape : tuple [int , ...]
296
296
297
297
298
- _CFVariable = typing .Union [_thread_safe_nc .VariableWrapper , VariableEmulator ]
298
+ CFVariable = typing .Union [_thread_safe_nc .VariableWrapper , VariableEmulator ]
299
299
300
300
301
301
class Saver :
@@ -2296,7 +2296,7 @@ def _increment_name(self, varname):
2296
2296
def _lazy_stream_data (
2297
2297
self ,
2298
2298
data : np .typing .ArrayLike ,
2299
- cf_var : _CFVariable ,
2299
+ cf_var : CFVariable ,
2300
2300
) -> None :
2301
2301
if hasattr (data , "shape" ) and data .shape == (1 ,) + cf_var .shape :
2302
2302
# (Don't do this check for string data).
@@ -2323,7 +2323,7 @@ def _lazy_stream_data(
2323
2323
# later by a call to delayed_completion().
2324
2324
def store (
2325
2325
data : np .typing .ArrayLike ,
2326
- cf_var : _CFVariable ,
2326
+ cf_var : CFVariable ,
2327
2327
) -> None :
2328
2328
# Create a data-writeable object that we can stream into, which
2329
2329
# encapsulates the file to be opened + variable to be written.
@@ -2337,7 +2337,7 @@ def store(
2337
2337
# Real data is always written directly, i.e. not via lazy save.
2338
2338
def store (
2339
2339
data : np .typing .ArrayLike ,
2340
- cf_var : _CFVariable ,
2340
+ cf_var : CFVariable ,
2341
2341
) -> None :
2342
2342
cf_var [:] = data # type: ignore[index]
2343
2343
You can’t perform that action at this time.
0 commit comments