Skip to content

Ttl nodes#766

Closed
scanhex12 wants to merge 5 commits intopython-zk:masterfrom
ClickHouse:ttl_nodes
Closed

Ttl nodes#766
scanhex12 wants to merge 5 commits intopython-zk:masterfrom
ClickHouse:ttl_nodes

Conversation

@scanhex12
Copy link

Ttl nodes

def create_completion(result):
try:
if include_data:
if opcode.type == Create2.type or opcode.type == CreateContainer.type or opcode.type == CreateTTL.type:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (119 > 79 characters)


@classmethod
def deserialize(cls, bytes, offset):
return None

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation is not a multiple of four
over-indented

while not header.done:
if header.type == Create.type:
response, offset = read_string(bytes, offset)
elif header.type in (Create2.type, CreateContainer.type, CreateTTL.type):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (85 > 79 characters)

def children_count(self):
return self.numChildren

class AddWatchMode(object):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines, found 1

from kazoo.security import OPEN_ACL_UNSAFE

op = _create_opcode(
"/test", b"data", OPEN_ACL_UNSAFE, "", False, False, False, False, 1000

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (83 > 79 characters)

from kazoo.security import OPEN_ACL_UNSAFE

op = _create_opcode(
"/test", b"data", OPEN_ACL_UNSAFE, "", False, False, False, False, 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (80 > 79 characters)

from kazoo.protocol.connection import _CONNECTION_DROP
from kazoo.protocol.states import KeeperState, KazooState
from kazoo.tests.util import CI_ZK_VERSION
from kazoo.protocol.states import (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redefinition of unused 'KazooState' from line 28
redefinition of unused 'KeeperState' from line 28

@scanhex12 scanhex12 closed this Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants