How to suppress "module import itself" in python
未關閉
Python
question
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
Greetings,
I have a module created by cython, all I want is to display the type annotations for cython functions, so I wrap the cython functions inside of python functions in `__init__.py`, it looks like this:
```
#__init__.py of myCyModule
from . import _myCyModule
def func(a:int, b:int, c:int)->int:
return _myCyModule(a, b, c)
```
Folder structure of the Module would be like:
```
myCyModule
|__ __init__.py
|__ _myCyModule.pyd
```
How can I suppress "module import itself" alert in such a case? Thanks!
貢獻指南
評估
這個 Issue 還沒有評估資料。