HomePhabricator

pytype: stop excluding ssutil.py

Authored by mharbison72.

Description

pytype: stop excluding ssutil.py

Pytype simply can't distinguish the type for this one entry's value from the
other values:

File "/mnt/c/Users/Matt/hg/mercurial/sslutil.py", line 142, in _hostsettings:
    No attribute 'append' on None [attribute-error]
  In Optional[Union[Any, List[nothing], bool, bytes]]
File "/mnt/c/Users/Matt/hg/mercurial/sslutil.py", line 142, in _hostsettings:
    No attribute 'append' on bool [attribute-error]
  In Optional[Union[Any, List[nothing], bool, bytes]]
File "/mnt/c/Users/Matt/hg/mercurial/sslutil.py", line 142, in _hostsettings:
    No attribute 'append' on bytes [attribute-error]
  In Optional[Union[Any, List[nothing], bool, bytes]]
File "/mnt/c/Users/Matt/hg/mercurial/sslutil.py", line 147, in _hostsettings:
    No attribute 'append' on None [attribute-error]
  In Optional[Union[Any, List[Tuple[Any, Any]], bool, bytes]]
File "/mnt/c/Users/Matt/hg/mercurial/sslutil.py", line 147, in _hostsettings:
    No attribute 'append' on bool [attribute-error]
  In Optional[Union[Any, List[Tuple[Any, Any]], bool, bytes]]
File "/mnt/c/Users/Matt/hg/mercurial/sslutil.py", line 147, in _hostsettings:
    No attribute 'append' on bytes [attribute-error]
  In Optional[Union[Any, List[Tuple[Any, Any]], bool, bytes]]

Differential Revision: https://phab.mercurial-scm.org/D11931

Details

Committed
mharbison72Dec 14 2021, 8:13 PM
Differential Revision
D11931: pytype: stop excluding ssutil.py
Parents
rHG81805bba11f9: pytype: stop excluding wireprotoserver.py
Branches
Unknown
Tags
Unknown