Skip to content

Commit c9e5342

Browse files
committed
Add type annotation for __getitem__
1 parent adfaf25 commit c9e5342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_pyproject/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __init__(
175175
globalns.update(pep621_config)
176176
globalns.update(self._freeform)
177177

178-
def __getitem__(self, item) -> Any:
178+
def __getitem__(self, item: str) -> Any:
179179
"""
180180
Returns the value of the given key in the ``tool.sphinx-pyproject`` table.
181181

0 commit comments

Comments
 (0)