Skip to content

Commit

Permalink
Refactor docstrings and cli help
Browse files Browse the repository at this point in the history
  • Loading branch information
bdragon300 committed Oct 26, 2024
1 parent 9186159 commit aa8887c
Show file tree
Hide file tree
Showing 19 changed files with 502 additions and 431 deletions.
2 changes: 1 addition & 1 deletion docs/data_tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ print(my_user.dict)
```

Sometimes you may want to get the raw string data (i.e. how it stores on device) that are sent to a device on saving
an object. Use `raw_data` property for it:
an object. Use `raw_data` property for that:

```python
from pyzkaccess.tables import User
Expand Down
3 changes: 1 addition & 2 deletions docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ NOTE: the default factory IP address of C3 devices is `192.168.1.201`.
- Restart a device
- Download/upload files from PC to/from a device
- Cancel alarm function
- Reset the IP address using the broadcast method for a device available in the same local network. Useful when
device IP is unknown.
- Reset the IP address by MAC address.
6 changes: 2 additions & 4 deletions pyzkaccess/aux_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _specific_event_log(self) -> EventLog:


class AuxInput(AuxInputInterface):
"""Concrete auxiliary input"""
"""An auxiliary input"""

def __init__(self, sdk: ZKSDK, event_log: EventLog, number: int):
self.number = number
Expand Down Expand Up @@ -50,9 +50,7 @@ def __repr__(self) -> str:


class AuxInputList(AuxInputInterface, UserTuple[AuxInput]):
"""Collection of aux input objects which is used to perform group
operations over multiple aux inputs
"""
"""Auxiliary input collection for group operations"""

def __init__(self, sdk: ZKSDK, event_log: EventLog, aux_inputs: Iterable[AuxInput] = ()):
super().__init__(aux_inputs)
Expand Down
Loading

0 comments on commit aa8887c

Please sign in to comment.