Skip to content

Commit 547c05d

Browse files
committed
docs: Update docstring style
1 parent 66c6069 commit 547c05d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pymysqlreplication/event.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,12 @@ class RandEvent(BinLogEvent):
440440
"""
441441
RandEvent is generated every time a statement uses the RAND() function.
442442
Indicates the seed values to use for generating a random number with RAND() in the next statement.
443-
Warning
444-
- RAND_EVENT only works in statement-based logging. (need to set binlog_format as 'STATEMENT')
445-
- RAND_EVENT only works when the seed number is not specified.
446443
447-
Attributes:
448-
seed1: value for the first seed
449-
seed2: value for the second seed
444+
RandEvent only works in statement-based logging (need to set binlog_format as 'STATEMENT')
445+
and only works when the seed number is not specified.
446+
447+
:ivar seed1: int - value for the first seed
448+
:ivar seed2: int - value for the second seed
450449
"""
451450

452451
def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs):

0 commit comments

Comments
 (0)