Skip to content

Commit afde3fe

Browse files
authored
fix issue #537 (#538)
1 parent e0aaed2 commit afde3fe

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

snap7/client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,6 @@ def list_blocks_of_type(self, block_type: Block, size: int) -> Union[int, Array[
469469
470470
Returns:
471471
If size is 0, it returns a 0, otherwise an `Array` of specified block type.
472-
473-
Raises:
474-
:obj:`ValueError`: if the `block_type` is not valid.
475472
"""
476473

477474
logger.debug(f"listing blocks of type: {block_type} size: {size}")
@@ -498,11 +495,8 @@ def get_block_info(self, block_type: Block, db_number: int) -> TS7BlockInfo:
498495
Returns:
499496
Structure of information from block.
500497
501-
Raises:
502-
:obj:`ValueError`: if the `blocktype` is not valid.
503-
504498
Examples:
505-
>>> block_info = Client().get_block_info("DB", 1)
499+
>>> block_info = Client().get_block_info(block_type.DB, 1)
506500
>>> print(block_info)
507501
Block type: 10
508502
Block number: 1

0 commit comments

Comments
 (0)