Skip to content

Commit

Permalink
fix issue #537
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr committed Oct 7, 2024
1 parent e0aaed2 commit e9d2218
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions snap7/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,6 @@ def list_blocks_of_type(self, block_type: Block, size: int) -> Union[int, Array[
Returns:
If size is 0, it returns a 0, otherwise an `Array` of specified block type.
Raises:
:obj:`ValueError`: if the `block_type` is not valid.
"""

logger.debug(f"listing blocks of type: {block_type} size: {size}")
Expand All @@ -498,11 +495,8 @@ def get_block_info(self, block_type: Block, db_number: int) -> TS7BlockInfo:
Returns:
Structure of information from block.
Raises:
:obj:`ValueError`: if the `blocktype` is not valid.
Examples:
>>> block_info = Client().get_block_info("DB", 1)
>>> block_info = Client().get_block_info(block_type.DB, 1)
>>> print(block_info)
Block type: 10
Block number: 1
Expand Down

0 comments on commit e9d2218

Please sign in to comment.