Skip to content

Commit 07a5bc2

Browse files
authored
Merge pull request #29 from omgitsaheadcrab/unreachable-code-settings
chore: add missing config setting and allow mypy 0.920
2 parents a5f340e + df2f52b commit 07a5bc2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
python-lsp-server
2-
mypy < 0.920
2+
mypy
33
black
44
pre-commit
55
rstcheck

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ python_requires = >= 3.6
2121
packages = find:
2222
install_requires =
2323
python-lsp-server
24-
mypy < 0.920
24+
mypy
2525

2626

2727
[options.entry_points]

test/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def foo():
103103

104104
# Create configuration file for workspace folder 1.
105105
mypy_config = folder1.join("mypy.ini")
106-
mypy_config.write("[mypy]\nwarn_unreachable = True")
106+
mypy_config.write("[mypy]\nwarn_unreachable = True\ncheck_untyped_defs = True")
107107

108108
# Initialize settings for both folders.
109109
plugin.pylsp_settings(ws1._config)

0 commit comments

Comments
 (0)