Skip to content

Typing issues for jaraco/skeleton based projects #12595

Closed
@Avasam

Description

@Avasam

I'm currently going through all mypy failures in jaraco/skeleton#143
Some of those are caused by typeshed stubs that could be improved, I'll be using this issue as an aggregated checklist of everything I find. CC @jaraco if you find anything else feel free to let me know or comment here.

pywin32: https://github.com/jaraco/jaraco.windows/pull/28/files#r1857488881 & #13119

from win32wnet import NETRESOURCE, WNetAddConnection2
res = WNetAddConnection2(...)  # WNetAddConnection2" does not return a value (it only ever returns None)  [func-returns-value]
import isapi.install  # Skipping analyzing "isapi.install": module is installed, but missing library stubs or py.typed marker  [import-untyped]

docutils: #13118

def return_parts(source: str) -> str:
    return docutils.core.publish_parts(source)  # Returning Any from function declared to return "str"  [no-any-return]

setuptools: pypa/distutils#320

from setuptools import setup
setup(script_args=('py2exe',))  # Argument "script_args" to "setup" has incompatible type "tuple[str]"; expected "list[str]"

pypa/setuptools#4604 (comment) (validate whether using None as a default_section is valid usage) split off to #12700

from configparser import ConfigParser
parser = ConfigParser(default_section=None, delimiters=("=",)) # No overload variant of "ConfigParser" matches argument types "None", "tuple[str]" [call-overload]

stdlib: #12595 (comment)

import ctypes
ctypes.wintypes.DWORD() # "wintypes" is not a known attribute of module "ctypes" (reportAttributeAccessIssue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: false positiveType checkers report false errorsstubs: incompleteAnnotations or sub-modules missing from an existing package or module

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions