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 — doc[checker]: PEP-484 get_text -> Any · pmhahn/pyenchant@ecb27d2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • enchant/checker
    • __init__.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎enchant/checker/__init__.py‎

Copy file name to clipboardExpand all lines: enchant/checker/__init__.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
import array
4949
import warnings
5050
from typing import Dict as PythonDict
51-
from typing import List, MutableSequence, Optional, Type, Union
51+
from typing import Any, List, MutableSequence, Optional, Type, Union
5252

5353
import enchant
5454
from enchant import Dict
@@ -201,7 +201,7 @@ def set_text(self, text: str) -> None:
201201
self._use_tostring = False
202202
self._tokens = self._tokenize(self._text)
203203

204-
def get_text(self) -> str:
204+
def get_text(self) -> Any:
205205
"""Return the spell-checked text."""
206206
if self._use_tostring:
207207
return self._array_to_string(self._text)

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.