Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 204b8ef

Browse files
authored
Update time_precision param values in docstring
Clearly state nanosecond and hour precision support for functions `send_packet` and `write_points` in docstring. Nanosecond precision support was added in commits 02ddf0e and c92bb4e, but the change was not reflected to the docstring.
1 parent fc0235e commit 204b8ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

influxdb/client.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ def write_points(self,
561561
:type points: (if protocol is 'json') list of dicts, where each dict
562562
represents a point.
563563
(if protocol is 'line') sequence of line protocol strings.
564-
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
564+
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h',
565+
defaults to None
565566
:type time_precision: str
566567
:param database: the database to write the points to. Defaults to
567568
the client's current database
@@ -1177,7 +1178,7 @@ def send_packet(self, packet, protocol='json', time_precision=None):
11771178
(if protocol is 'line') list of line protocol strings
11781179
:param protocol: protocol of input data, either 'json' or 'line'
11791180
:type protocol: str
1180-
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
1181+
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h', defaults to None
11811182
:type time_precision: str
11821183
"""
11831184
if protocol == 'json':

0 commit comments

Comments
 (0)