Skip to content

Commit

Permalink
v2.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
paulober committed Mar 4, 2023
1 parent aba0a40 commit 50c4824
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
25 changes: 23 additions & 2 deletions stubs/stubs/urequests/urequests.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion stubs/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "1.19.1-915"}
{"version": "1.19.1-915-1"}

0 comments on commit 50c4824

Please sign in to comment.