4848from .mdf_common import MDF_Common , MdfCommonKwargs
4949from .options import GLOBAL_OPTIONS
5050from .source_utils import Source
51- from .types import ChannelsType , CompressionType , RasterType , StrPath
51+ from .types import ChannelsType , CompressionType , StrPath
5252from .utils import (
5353 as_non_byte_sized_signed_int ,
5454 CHANNEL_COUNT ,
@@ -766,6 +766,7 @@ def _read(
766766 if filter_channels :
767767 display_names = {}
768768 if mapped :
769+ stream = typing .cast (mmap .mmap , stream )
769770 (
770771 id_ ,
771772 block_len ,
@@ -2701,7 +2702,7 @@ def get(
27012702 name : str | None = ...,
27022703 group : int | None = ...,
27032704 index : int | None = ...,
2704- raster : RasterType | None = ...,
2705+ raster : float | None = ...,
27052706 samples_only : Literal [False ] = ...,
27062707 data : tuple [bytes , int , int | None ] | None = ...,
27072708 raw : bool = ...,
@@ -2717,7 +2718,7 @@ def get(
27172718 name : str | None = ...,
27182719 group : int | None = ...,
27192720 index : int | None = ...,
2720- raster : RasterType | None = ...,
2721+ raster : float | None = ...,
27212722 * ,
27222723 samples_only : Literal [True ],
27232724 data : tuple [bytes , int , int | None ] | None = ...,
@@ -2734,7 +2735,7 @@ def get(
27342735 name : str | None = ...,
27352736 group : int | None = ...,
27362737 index : int | None = ...,
2737- raster : RasterType | None = ...,
2738+ raster : float | None = ...,
27382739 samples_only : bool = ...,
27392740 data : tuple [bytes , int , int | None ] | None = ...,
27402741 raw : bool = ...,
@@ -2749,7 +2750,7 @@ def get(
27492750 name : str | None = None ,
27502751 group : int | None = None ,
27512752 index : int | None = None ,
2752- raster : RasterType | None = None ,
2753+ raster : float | None = None ,
27532754 samples_only : bool = False ,
27542755 data : tuple [bytes , int , int | None ] | None = None ,
27552756 raw : bool = False ,
0 commit comments