Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@jsii/python-runtime/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
black~=25.1
mypy==1.15.0
mypy==1.17.1
pip~=25.1
pytest~=8.4
pytest-mypy~=1.0
Expand Down
4 changes: 2 additions & 2 deletions packages/@jsii/python-runtime/tests/test_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,11 @@ def private_property(self):
def test_doNotOverridePrivates_property_getter():
class TDoNotOverridePrivates(DoNotOverridePrivates):
@property
def private_property(self):
def private_property(self) -> str:
return "privateProperty-Override"

@private_property.setter
def private_property(self):
def private_property(self, _: str):
raise RuntimeError("Boom")

obj = TDoNotOverridePrivates()
Expand Down
4 changes: 1 addition & 3 deletions packages/@jsii/python-runtime/tests/test_invoke_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ def test_invoke_script_with_line_flush(
buffered to the end
"""
script_path = f".env/bin/calc"
proc = subprocess.Popen(
[script_path, "arg1", "delay"], stdout=subprocess.PIPE, bufsize=1
)
proc = subprocess.Popen([script_path, "arg1", "delay"], stdout=subprocess.PIPE)

timed_lines = []
last_dt = None
Expand Down
Loading