Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few errors when type-checking with mypy #26

Closed
LaurentAjdnik opened this issue Nov 24, 2021 · 2 comments
Closed

A few errors when type-checking with mypy #26

LaurentAjdnik opened this issue Nov 24, 2021 · 2 comments
Assignees
Labels
bug Something isn't working DC-3 Difficulty class 3/5 → Domain/tech specific knowledge

Comments

@LaurentAjdnik
Copy link

LaurentAjdnik commented Nov 24, 2021

Describe the bug

  • qrand\platforms\qiskit\backend.py:45: error: Returning Any from function declared to return "Dict[Any, Any]"
  • qrand\platforms\qiskit\backend.py:49: error: Returning Any from function declared to return "int"
  • qrand\platforms\qiskit\backend.py:62: error: Returning Any from function declared to return "int"
  • qrand\platforms\qiskit\backend.py:71: error: Returning Any from function declared to return "int"
  • qrand\platforms\qiskit\backend.py:81: error: Returning Any from function declared to return "bool"
  • qrand\platforms\qiskit\circuit.py:37: error: Returning Any from function declared to return "int"
  • qrand\_qiskit_bit_generator.py:397: error: Returning Any from function declared to return "Dict[Any, Any]"
  • qrand\platforms\qsharp\job.py:76: error: unused 'type: ignore' comment
  • qrand\platforms\qsharp\job.py:99: error: Returning Any from function declared to return "List[str]"
  • qrand\platforms\qsharp\job.py:103: error: Returning Any from function declared to return "List[str]"
  • Found 10 errors in 4 files (checked 46 source files)

To Reproduce

Steps to reproduce the behavior:

  1. Run mypy on the module

Expected behavior

No type-check error thrown by mypy.

Screenshots

Not applicable.

Desktop (please complete the following information):

  • mypy version: 0.812
  • QRAND version: 0.4.0

Additional context

Not applicable.

@LaurentAjdnik LaurentAjdnik added the bug Something isn't working label Nov 24, 2021
@pedrorrivero pedrorrivero added the DC-3 Difficulty class 3/5 → Domain/tech specific knowledge label Nov 24, 2021
@pedrorrivero
Copy link
Owner

Hi @LaurentAjdnik I am unable to reproduce this issue, even on a fresh install. Can you elaborate?

@LaurentAjdnik
Copy link
Author

Using these merciless options: 😉

python -m mypy --ignore-missing-imports --warn-return-any --warn-redundant-casts --warn-unused-ignores qrand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DC-3 Difficulty class 3/5 → Domain/tech specific knowledge
Projects
None yet
Development

No branches or pull requests

2 participants