Skip to content

Commit

Permalink
Add missing return type for Schema.serialize (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvniekerk authored Oct 22, 2024
1 parent 428d96b commit fcfe788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyarrow-stubs/__lib_pxi/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ from pyarrow.lib import (
)
from typing_extensions import TypeVar

from .io import Buffer
from .scalar import ExtensionScalar

_AsPyType = TypeVar("_AsPyType")
Expand Down Expand Up @@ -304,7 +305,7 @@ class Schema(_Weakrefable):
def set(self, i: int, field: Field) -> Schema: ...
def add_metadata(self, metadata: dict) -> Schema: ...
def with_metadata(self, metadata: dict) -> Schema: ...
def serialize(self, memory_pool: MemoryPool | None = None): ...
def serialize(self, memory_pool: MemoryPool | None = None) -> Buffer: ...
def remove_metadata(self) -> Schema: ...
def to_string(
self,
Expand Down

0 comments on commit fcfe788

Please sign in to comment.