diff --git a/CHANGELOG.md b/CHANGELOG.md index bffbc7a..de80330 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,11 @@ All notable changes to the "pico-w-go" extension will be documented in this file - Remove telnet and unix socket interfaces as they are never used and unable to connect to any plain MicroPython Raspberry Pi Pico (W) board - Mounting the MicroPython filesystem into VS Code as a remote workspace. +## [2.1.8] - 2023-03-04 + +# Changed +- Improved `urequests.Response` class stubs to reflect runtime added fields (v1.19.1-915-1) + ## [2.1.7] - 2023-03-03 # Changed diff --git a/package.json b/package.json index 5ec3c15..1af17ee 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "pico-w-go", "displayName": "Pico-W-Go", "description": "Autocompletion and a REPL console for the Raspberry Pi Pico (W).", - "version": "2.1.7", + "version": "2.1.8", "publisher": "paulober", "license": "SEE LICENSE IN LICENSE.md", "homepage": "https://github.com/paulober/Pico-W-Go/blob/main/README.md", diff --git a/stubs/stubs/urequests/urequests.pyi b/stubs/stubs/urequests/urequests.pyi index 4e43cde..34ae8f1 100644 --- a/stubs/stubs/urequests/urequests.pyi +++ b/stubs/stubs/urequests/urequests.pyi @@ -17,17 +17,38 @@ class Response(): def close(self) -> None: ... + + @property + def status_code(self) -> int | None: + """The status code of the response. Defaults to `None`""" + ... + + @property + def encoding(self) -> str | None: + """The encoding of the response content. Defaults to `utf-8`""" + ... + + @property + def reason(self) -> bytes | None: + """Like string representation of the status_code in bytes form. Defaults to `None`""" + ... + + @property + def headers(self) -> dict[str, str] | None: + """The response headers. Defaults to `None`""" + ... @property def text(self) -> str|None: ... def json(self) -> str|None: - """requires ujson module""" + """requires `ujson` module""" ... @property - def content(self) -> Any: + def content(self) -> bytes | None: + """The response content in bytes. Defaults to `None`""" ... def request( diff --git a/stubs/version.json b/stubs/version.json index 7ab1a5e..a377a62 100644 --- a/stubs/version.json +++ b/stubs/version.json @@ -1 +1 @@ -{"version": "1.19.1-915"} \ No newline at end of file +{"version": "1.19.1-915-1"} \ No newline at end of file