Skip to content

Commit d0d423f

Browse files
committed
update requirements, types
1 parent 002ae18 commit d0d423f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

extensions/positron-python/python_files/posit/pinned-test-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ numpy==2.0.2; python_version == '3.9'
2727
numpy==2.2.4; python_version >= '3.10'
2828
pandas==2.2.3
2929
plotly==6.0.1
30-
plotnine
30+
plotnine==0.13.6; python_version == '3.9'
31+
plotnine==0.14.5; python_version >= '3.10'
3132
polars==1.26.0
3233
polars[timezone]==1.26.0; sys_platform == 'win32'
3334
pyarrow==19.0.1

extensions/positron-python/python_files/posit/positron/positron_ipkernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class PositronShell(ZMQInteractiveShell):
262262
object_info_string_level: int
263263
magics_manager: MagicsManager
264264
display_pub: ZMQDisplayPublisher
265-
display_formatter = traitlets.Instance(PositronDisplayFormatter, allow_none=True)
265+
display_formatter = traitlets.Instance(PositronDisplayFormatter)
266266

267267
inspector_class: type[PositronIPythonInspector] = traitlets.Type(
268268
PositronIPythonInspector, # type: ignore
@@ -336,7 +336,7 @@ def init_user_ns(self):
336336

337337
def init_display_formatter(self):
338338
self.display_formatter = PositronDisplayFormatter(parent=self)
339-
self.configurables.append(self.display_formatter)
339+
self.configurables.append(self.display_formatter) # type: ignore IPython type annotation is wrong
340340

341341
def _handle_pre_run_cell(self, info: ExecutionInfo) -> None:
342342
"""Prior to execution, reset the user environment watch state."""

0 commit comments

Comments
 (0)