Skip to content

Commit

Permalink
Restore bool type on truthy inputs, related fix on Variable.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
RandallPittmanOrSt committed Jul 24, 2024
1 parent 620faf7 commit 31513ee
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/netCDF4/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ class Dataset:
datatype: np.dtype[NumericVarT] | type[NumericVarT],
dimensions: DimensionsSpecifier = (),
compression: CompressionType | str | None = None,
zlib: Any = False,
zlib: bool = False,
complevel: CompressionLevel | int | None = 4,
shuffle: Any = True,
shuffle: bool = True,
szip_coding: Literal["nn", "ec"] | str = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] | int = 8,
blosc_shuffle: Literal[0, 1, 2] | int = 1,
fletcher32: Any = False,
contiguous: Any = False,
fletcher32: bool = False,
contiguous: bool = False,
chunksizes: int | None = None,
endian: EndianType | str = "native",
least_significant_digit: int | None = None,
Expand All @@ -335,14 +335,14 @@ class Dataset:
datatype: np.dtype[np.str_] | type[str | np.str_],
dimensions: DimensionsSpecifier = (),
compression: CompressionType | str | None = None,
zlib: Any = False,
zlib: bool = False,
complevel: CompressionLevel | int | None = 4,
shuffle: Any = True,
shuffle: bool = True,
szip_coding: Literal["nn", "ec"] | str = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] | int = 8,
blosc_shuffle: Literal[0, 1, 2] | int = 1,
fletcher32: Any = False,
contiguous: Any = False,
fletcher32: bool = False,
contiguous: bool = False,
chunksizes: int | None = None,
endian: EndianType | str = "native",
least_significant_digit: int | None = None,
Expand All @@ -358,14 +358,14 @@ class Dataset:
datatype: DatatypeSpecifier,
dimensions: DimensionsSpecifier = (),
compression: CompressionType | str | None = None,
zlib: Any = False,
zlib: bool = False,
complevel: CompressionLevel | int | None = 4,
shuffle: Any = True,
shuffle: bool = True,
szip_coding: Literal["nn", "ec"] | str = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] | int = 8,
blosc_shuffle: Literal[0, 1, 2] | int = 1,
fletcher32: Any = False,
contiguous: Any = False,
fletcher32: bool = False,
contiguous: bool = False,
chunksizes: int | None = None,
endian: EndianType | str = "native",
least_significant_digit: int | None = None,
Expand Down Expand Up @@ -467,14 +467,14 @@ class Variable(Generic[VarT]):
datatype: np.dtype[NumericVarT] | type[NumericVarT],
dimensions: DimensionsSpecifier = (),
compression: CompressionType | str | None = None,
zlib: Any = False,
zlib: bool = False,
complevel: CompressionLevel | int | None = 4,
shuffle: Any = True,
shuffle: bool = True,
szip_coding: Literal["nn", "ec"] | str = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] | int = 8,
blosc_shuffle: Literal[0, 1, 2] | int = 1,
fletcher32: Any = False,
contiguous: Any = False,
fletcher32: bool = False,
contiguous: bool = False,
chunksizes: Sequence[int] | None = None,
endian: EndianType | str = "native",
least_significant_digit: int | None = None,
Expand All @@ -492,14 +492,14 @@ class Variable(Generic[VarT]):
datatype: np.dtype[np.str_] | type[str | np.str_],
dimensions: DimensionsSpecifier = (),
compression: CompressionType | str | None = None,
zlib: Any = False,
zlib: bool = False,
complevel: CompressionLevel | int | None = 4,
shuffle: Any = True,
shuffle: bool = True,
szip_coding: Literal["nn", "ec"] | str = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] | int = 8,
blosc_shuffle: Literal[0, 1, 2] | int = 1,
fletcher32: Any = False,
contiguous: Any = False,
fletcher32: bool = False,
contiguous: bool = False,
chunksizes: Sequence[int] | None = None,
endian: EndianType | str = "native",
least_significant_digit: int | None = None,
Expand All @@ -517,14 +517,14 @@ class Variable(Generic[VarT]):
datatype: DatatypeSpecifier,
dimensions: DimensionsSpecifier = (),
compression: CompressionType | str | None = None,
zlib: Any = False,
zlib: bool = False,
complevel: CompressionLevel | int | None = 4,
shuffle: Any = True,
shuffle: bool = True,
szip_coding: Literal["nn", "ec"] | str = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] | int = 8,
blosc_shuffle: Literal[0, 1, 2] | int = 1,
fletcher32: Any = False,
contiguous: Any = False,
fletcher32: bool = False,
contiguous: bool = False,
chunksizes: Sequence[int] | None = None,
endian: EndianType | str = "native",
least_significant_digit: int | None = None,
Expand All @@ -541,14 +541,14 @@ class Variable(Generic[VarT]):
datatype: DatatypeSpecifier,
dimensions: DimensionsSpecifier = (),
compression: CompressionType | str | None = None,
zlib: Any = False,
zlib: bool = False,
complevel: CompressionLevel | int | None = 4,
shuffle: Any = True,
szip_coding: Literal["nn", "ec"] = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] = 8,
blosc_shuffle: Literal[0, 1, 2] = 1,
fletcher32: Any = False,
contiguous: Any = False,
shuffle: bool = True,
szip_coding: Literal["nn", "ec"] | str = "nn",
szip_pixels_per_block: Literal[4, 8, 16, 32] | int = 8,
blosc_shuffle: Literal[0, 1, 2] | int = 1,
fletcher32: bool = False,
contiguous: bool = False,
chunksizes: Sequence[int] | None = None,
endian: EndianType | str = "native",
least_significant_digit: int | None = None,
Expand Down

0 comments on commit 31513ee

Please sign in to comment.