GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(types): py3.10 pyright 의 Self ↔ HwpDocument 호환 처리 · DanMeon/rhwp-python@4394453

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • python/rhwp/ir
    • nodes.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎python/rhwp/ir/nodes.py‎

Copy file name to clipboardExpand all lines: python/rhwp/ir/nodes.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,8 @@ def to_markdown(self) -> str:
751751
"""
752752
from rhwp.ir._view import render_markdown
753753

754-
return render_markdown(self)
754+
# ^ py3.10 pyright 가 Self 와 nominal HwpDocument 를 다르게 처리 — 동일 클래스라 호출 정합
755+
return render_markdown(self) # type: ignore[arg-type]
755756

756757
def to_html(self, *, include_css: bool = False) -> str:
757758
"""IR → 완전 HTML5 문서 (``<!DOCTYPE html>`` + ``<html>`` + ``<head>`` + ``<body>``).
@@ -770,7 +771,8 @@ def to_html(self, *, include_css: bool = False) -> str:
770771
"""
771772
from rhwp.ir._view import render_html
772773

773-
return render_html(self, include_css=include_css)
774+
# ^ py3.10 pyright 가 Self 와 nominal HwpDocument 를 다르게 처리 — 동일 클래스라 호출 정합
775+
return render_html(self, include_css=include_css) # type: ignore[arg-type]
774776

775777

776778
def _walk_blocks(blocks: Sequence["Block"], recurse: bool) -> Iterator["Block"]:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.