Skip to content

best practices for setting #[pyclass(module = ...)] #1365

Answered by messense
oconnor663 asked this question in Q&A
Discussion options

You must be logged in to vote

I have no idea how griffe works internally, but from the griffe dump blake3 output I guess that griffe only parses from files without actually importing them.

$ griffe dump blake3 -LDEBUG
INFO       Loading package blake3
DEBUG      Found blake3: loading
DEBUG      Loading path /Users/messense/.pyenv/versions/3.11.0/envs/test-3.11/lib/python3.11/site-packages/blake3/__init__.py
DEBUG      Cannot parse __all__ assignment: blake3.__all__ (<class 'ast.Attribute'>)
DEBUG      Loading path /Users/messense/.pyenv/versions/3.11.0/envs/test-3.11/lib/python3.11/site-packages/blake3/blake3.cpython-311-darwin.so
INFO       Finished loading packages
{
  "blake3": {
    "kind": "module",
    "name": "b…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@HacKanCuBa
Comment options

@HacKanCuBa
Comment options

@pawamoy
Comment options

Comment options

You must be logged in to vote
4 replies
@oconnor663
Comment options

@pawamoy
Comment options

@messense
Comment options

@pawamoy
Comment options

Answer selected by oconnor663
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants