Skip to content

Commit

Permalink
ATResponse.response is Optional[str]
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Sep 7, 2022
1 parent 35e582e commit a5f8533
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p align="center">~ Communicate easily with modems and RF modules using AT commands ~</p>

<p align="center">Developed by <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
<p align="center">Current version: 1.2.1 (29/07/2022)</p>
<p align="center">Current version: 1.2.2 (07/09/2022)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down Expand Up @@ -61,11 +61,10 @@
- [Get Started 🛠](#get-started-)
- [Virtual Device ⌨](#virtual-device-)
- [ATScripts 💻](#atscripts-)
- [Support the developer ☕](#support-the-developer-)
- [Contributions 🤝🏻](#contributions-)
- [Known Issues 🧻](#known-issues-)
- [Changelog 🕑](#changelog-)
- [Branches 🌳](#branches-)
- [Support the developer ☕](#support-the-developer-)
- [License 📜](#license-)

---
Expand Down
2 changes: 1 addition & 1 deletion README.pypi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> Communicate easily with modems and RF modules using AT commands
Developed by [@veeso](https://veeso.github.io)
Current version: 1.2.1 (29/07/2022)
Current version: 1.2.2 (07/09/2022)

```sh
pip3 install attila
Expand Down
2 changes: 1 addition & 1 deletion attila/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Version of the ATtila package
__version__ = "1.2.1"
__version__ = "1.2.2"
6 changes: 3 additions & 3 deletions attila/atresponse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Union, Any
from typing import List, Union, Any, Optional


class ATResponse(object):
Expand All @@ -9,7 +9,7 @@ class ATResponse(object):

def __init__(
self,
resp: str,
resp: Optional[str],
fullresponse: List[str],
command: Any,
executiontime: int = 0,
Expand All @@ -21,7 +21,7 @@ def __init__(
:param fullresponse: entire response received from command execution
:param command: command associated to response
:param executiontime: execution time of the command in milliseconds
:type resp: string
:type resp: Optional[str]
:type fullresponse: list of string
:type command: ATCommand
:type executiontime: int
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="attila",
version="1.2.1",
version="1.2.2",
description="Python module to communicate easily with modems and RF modules using AT commands",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit a5f8533

Please sign in to comment.