Skip to content

Commit

Permalink
Update tifffile/_imagecodecs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Jan 29, 2024
1 parent e4017ed commit dc8a933
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions tifffile/_imagecodecs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tifffile/_imagecodecs.py

# Copyright (c) 2008-2023, Christoph Gohlke
# Copyright (c) 2008-2024, Christoph Gohlke
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -33,7 +33,7 @@
This module provides alternative, pure Python and NumPy implementations of
some functions of the `imagecodecs`_ package. The functions may raise
NotImplementedError.
`NotImplementedError`.
.. _imagecodecs: https://github.com/cgohlke/imagecodecs
Expand Down Expand Up @@ -160,15 +160,13 @@ def packbits_decode(encoded: bytes, /, *, out=None) -> bytes:
@overload
def delta_encode(
data: bytes | bytearray, /, axis: int = -1, dist: int = 1, *, out=None
) -> bytes:
...
) -> bytes: ...


@overload
def delta_encode(
data: numpy.ndarray, /, axis: int = -1, dist: int = 1, *, out=None
) -> numpy.ndarray:
...
) -> numpy.ndarray: ...


def delta_encode(
Expand Down Expand Up @@ -206,15 +204,13 @@ def delta_encode(
@overload
def delta_decode(
data: bytes | bytearray, /, axis: int, dist: int, *, out: Any
) -> bytes:
...
) -> bytes: ...


@overload
def delta_decode(
data: numpy.ndarray, /, axis: int, dist: int, *, out: Any
) -> numpy.ndarray:
...
) -> numpy.ndarray: ...


def delta_decode(
Expand Down Expand Up @@ -250,15 +246,13 @@ def delta_decode(
@overload
def bitorder_decode(
data: bytes | bytearray, /, *, out=None, _bitorder: list[Any] = []
) -> bytes:
...
) -> bytes: ...


@overload
def bitorder_decode(
data: numpy.ndarray, /, *, out=None, _bitorder: list[Any] = []
) -> numpy.ndarray:
...
) -> numpy.ndarray: ...


def bitorder_decode(
Expand Down

0 comments on commit dc8a933

Please sign in to comment.