Skip to content

Commit f0b2075

Browse files
riebecjCasey Riebe
andauthored
Fixing code_tag_props in rx.code_block (#5779)
Co-authored-by: Casey Riebe <[email protected]>
1 parent 7a2cbc2 commit f0b2075

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"reflex/components/core/upload.pyi": "c11465a3a88e3a374251dd1a16582938",
2323
"reflex/components/core/window_events.pyi": "76bf03a273a1fbbb3b333e10d5d08c30",
2424
"reflex/components/datadisplay/__init__.pyi": "52755871369acbfd3a96b46b9a11d32e",
25-
"reflex/components/datadisplay/code.pyi": "ec35c215a219c616ff38c30047d9b601",
25+
"reflex/components/datadisplay/code.pyi": "b86769987ef4d1cbdddb461be88539fd",
2626
"reflex/components/datadisplay/dataeditor.pyi": "82c652f0679148d8431a0cf645686a50",
2727
"reflex/components/datadisplay/shiki_code_block.pyi": "1d53e75b6be0d3385a342e7b3011babd",
2828
"reflex/components/el/__init__.pyi": "0adfd001a926a2a40aee94f6fa725ecc",

reflex/components/datadisplay/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class Theme:
382382
class CodeBlock(Component, MarkdownComponentMap):
383383
"""A code block."""
384384

385-
library = "[email protected].1"
385+
library = "[email protected].6"
386386

387387
tag = "PrismAsyncLight"
388388

@@ -412,7 +412,7 @@ class CodeBlock(Component, MarkdownComponentMap):
412412
)
413413

414414
# Props passed down to the code tag.
415-
code_tag_props: Var[dict[str, str]]
415+
code_tag_props: Var[dict[str, str | dict[str, str]]]
416416

417417
# Whether a copy button should appear.
418418
can_copy: bool | None = field(

0 commit comments

Comments
 (0)