Skip to content

Commit

Permalink
Fix pyi typing info (#2)
Browse files Browse the repository at this point in the history
* Fix pyi typing info

## Motivation / Description
Forgot to add the changes in this file to prev commit

* version bump
  • Loading branch information
bisho authored Nov 22, 2023
1 parent 8d304a2 commit 651aa6d
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "meta-memcache-socket"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
51 changes: 51 additions & 0 deletions meta_memcache_socket.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,57 @@ def build_cmd(
Build a memcache meta-protocol command
:param cmd: The command to send
:param key: The key to use
:param flags: The flags to use
:param legacy_size_format: Wether to legacy size syntax from 1.6.6
"""
...

def build_meta_get(
key: bytes,
flags: Optional[RequestFlags] = None,
) -> bytes:
"""
Build a memcache meta-get command
:param key: The key to use
:param flags: The flags to use
"""
...

def build_meta_delete(
key: bytes,
flags: Optional[RequestFlags] = None,
) -> bytes:
"""
Build a memcache meta-get command
:param key: The key to use
:param flags: The flags to use
"""
...

def build_meta_set(
key: bytes,
size: Optional[int] = None,
flags: Optional[RequestFlags] = None,
legacy_size_format: bool = False,
) -> bytes:
"""
Build a memcache meta-set command
:param key: The key to use
:param flags: The flags to use
"""
...

def build_meta_arithmetic(
key: bytes,
flags: Optional[RequestFlags] = None,
) -> bytes:
"""
Build a memcache meta-arithmetic command
:param key: The key to use
:param flags: The flags to use
"""
Expand Down

0 comments on commit 651aa6d

Please sign in to comment.