Skip to content

Commit 50c4824

Browse files
committed
v2.1.8
1 parent aba0a40 commit 50c4824

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ All notable changes to the "pico-w-go" extension will be documented in this file
1616
- Remove telnet and unix socket interfaces as they are never used and unable to connect to any plain MicroPython Raspberry Pi Pico (W) board
1717
- Mounting the MicroPython filesystem into VS Code as a remote workspace.
1818

19+
## [2.1.8] - 2023-03-04
20+
21+
# Changed
22+
- Improved `urequests.Response` class stubs to reflect runtime added fields (v1.19.1-915-1)
23+
1924
## [2.1.7] - 2023-03-03
2025

2126
# Changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pico-w-go",
33
"displayName": "Pico-W-Go",
44
"description": "Autocompletion and a REPL console for the Raspberry Pi Pico (W).",
5-
"version": "2.1.7",
5+
"version": "2.1.8",
66
"publisher": "paulober",
77
"license": "SEE LICENSE IN LICENSE.md",
88
"homepage": "https://github.com/paulober/Pico-W-Go/blob/main/README.md",

stubs/stubs/urequests/urequests.pyi

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,38 @@ class Response():
1717

1818
def close(self) -> None:
1919
...
20+
21+
@property
22+
def status_code(self) -> int | None:
23+
"""The status code of the response. Defaults to `None`"""
24+
...
25+
26+
@property
27+
def encoding(self) -> str | None:
28+
"""The encoding of the response content. Defaults to `utf-8`"""
29+
...
30+
31+
@property
32+
def reason(self) -> bytes | None:
33+
"""Like string representation of the status_code in bytes form. Defaults to `None`"""
34+
...
35+
36+
@property
37+
def headers(self) -> dict[str, str] | None:
38+
"""The response headers. Defaults to `None`"""
39+
...
2040

2141
@property
2242
def text(self) -> str|None:
2343
...
2444

2545
def json(self) -> str|None:
26-
"""requires ujson module"""
46+
"""requires `ujson` module"""
2747
...
2848

2949
@property
30-
def content(self) -> Any:
50+
def content(self) -> bytes | None:
51+
"""The response content in bytes. Defaults to `None`"""
3152
...
3253

3354
def request(

stubs/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version": "1.19.1-915"}
1+
{"version": "1.19.1-915-1"}

0 commit comments

Comments
 (0)