From a5f8533af892a568aad5b5bc7c2d382ce12f4afb Mon Sep 17 00:00:00 2001 From: veeso Date: Wed, 7 Sep 2022 15:26:14 +0200 Subject: [PATCH] ATResponse.response is Optional[str] --- README.md | 5 ++--- README.pypi.md | 2 +- attila/__init__.py | 2 +- attila/atresponse.py | 6 +++--- setup.py | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2929245..6823d3d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

~ Communicate easily with modems and RF modules using AT commands ~

Developed by @veeso

-

Current version: 1.2.1 (29/07/2022)

+

Current version: 1.2.2 (07/09/2022)

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 diff --git a/attila/__init__.py b/attila/__init__.py index a2629a7..fc45c80 100644 --- a/attila/__init__.py +++ b/attila/__init__.py @@ -1,2 +1,2 @@ # Version of the ATtila package -__version__ = "1.2.1" +__version__ = "1.2.2" diff --git a/attila/atresponse.py b/attila/atresponse.py index e47609e..9c40c36 100644 --- a/attila/atresponse.py +++ b/attila/atresponse.py @@ -1,4 +1,4 @@ -from typing import List, Union, Any +from typing import List, Union, Any, Optional class ATResponse(object): @@ -9,7 +9,7 @@ class ATResponse(object): def __init__( self, - resp: str, + resp: Optional[str], fullresponse: List[str], command: Any, executiontime: int = 0, @@ -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 diff --git a/setup.py b/setup.py index b87a8d7..67d399f 100644 --- a/setup.py +++ b/setup.py @@ -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",