Skip to content

Commit d9c4928

Browse files
Change naming of document accessors in design
1 parent 7b7c71b commit d9c4928

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

designs/documents.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@ class Document:
6060
def is_none(self) -> bool:
6161
...
6262

63-
def as_blob(self) -> bytes:
63+
def as_bytes(self) -> bytes:
6464
...
6565

66-
def as_boolean(self) -> bool:
66+
def as_bool(self) -> bool:
6767
...
6868

6969
def as_string(self) -> str:
7070
...
7171

72-
def as_timestamp(self) -> datetime.datetime:
72+
def as_datetime(self) -> datetime.datetime:
7373
...
7474

75-
def as_integer(self) -> int:
75+
def as_int(self) -> int:
7676
...
7777

7878
def as_float(self) -> float:

0 commit comments

Comments
 (0)