Hi all, I'm having some difficulties getting the C...
# contribute-code
a
Hi all, I'm having some difficulties getting the CI pipeline running for https://github.com/datahub-project/datahub/runs/6195001444?check_suite_focus=true#step:6:1801. Locally the sanity checks pass, some assistants is very welcome.
d
The mypy tests fails for you:
Copy code
+ mypy src/ tests/ examples/
src/datahub/ingestion/source/pulsar.py:161: error: Argument "auth" to "post" has incompatible type "Tuple[Optional[str], Optional[str]]"; expected "Optional[Union[Tuple[str, str], AuthBase, Callable[[PreparedRequest], PreparedRequest]]]"
Found 1 error in 1 file (checked 441 source files)
a
I guess its something in my local dev environment, as i get
Copy code
(venv) vanmeete@N068D71D0:~/git/datahub/metadata-ingestion$ mypy src/ tests/ examples/
Success: no issues found in 434 source files
Any ideas on how to reproduce this locally?
d
do you have the same mypy version installed?
The build seems to be using:
Copy code
Downloading mypy-0.942-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (17.1 MB)
and:
Copy code
Collecting mypy-extensions>=0.4.3
  Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Can you make sure you are using the same mypy version and check it again?
a
I think they are the same, can it be the requests module, i have 2.27.1 installed
Copy code
(venv) vanmeete@N068D71D0:~/git/datahub/metadata-ingestion$ mypy --version
mypy 0.942
(venv) vanmeete@N068D71D0:~/git/datahub/metadata-ingestion$ pip show mypy-extensions
Name: mypy-extensions
Version: 0.4.3
....
(venv) vanmeete@N068D71D0:~/git/datahub/metadata-ingestion$ pip show requests
Name: requests
Version: 2.27.1
....
d
maybe