Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pyi typing info #2

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading