Dieter Maurer via Python-list <python-list@python.org> ezt írta (időpont: 2023. nov. 6., H, 19:13):
> c.bu...@posteo.jp wrote at 2023-11-6 12:47 +0000: > >I would like to know how to detect (e.g. via a linter) typos in function > >names imported from another module. > > One option is a test suite (--> Python's "unittest" package) > with a sufficiently high coverage (near 100 %). > -- > https://mail.python.org/mailman/listinfo/python-list > Hi PyCharm IDE warns you, also vulture https://pypi.org/project/vulture/ finds dead code (not called / not used because of typo), and if you compile the code: https://docs.python.org/3/library/py_compile.html it will generate syntax error if non-existent function is called. linters can perhaps warn you (never had typos, because I use PyCharm) need to check the linters' doc BR, George -- https://mail.python.org/mailman/listinfo/python-list