opengemini-client-python icon indicating copy to clipboard operation
opengemini-client-python copied to clipboard

`points` field in the BatchPoints class should not only support `List`

Open zhiheng123 opened this issue 8 months ago • 0 comments

The type of the 'points' field in the BatchPoints class is currently defined as a list, which is somewhat restrictive. In reality, it only needs to be an iterable that can be used for iteration in loops.

Especially in list comprehensions, delaying content generation and only generating content during actual iteration is an effective performance optimization technique. The current implementation is hindering such optimizations.

zhiheng123 avatar Apr 15 '25 07:04 zhiheng123