lance-format/lance

Python: fix broken fragment APIs

Open

#1 006 ouverte le 22 juin 2023

Voir sur GitHub
 (0 commentaires) (0 réactions) (1 assigné)Rust (695 forks)github user discovery
A-pythongood first issue

Métriques du dépôt

Stars
 (6 582 stars)
Métriques de merge PR
 (Merge moyen 6j 1h) (219 PRs mergées en 30 j)

Description

The APIs around getting and manipulating fragments are inconsistent with their return types.

In many cases, the type hint is wrong. For example, LanceFragment.create() claims to return LanceFragment (which would make sense), but instead returns _FragmentMetadata. Also odd that _FragmentMetadata has an underscore even though it is part of a public API.

We should refactor this to be consistent. Would also be nice to start enforcing the type hints with mypy.

Guide contributeur