Skip to content

Conversation

@lagru
Copy link
Member

@lagru lagru commented Jun 3, 2024

The idea here is to be able to use names that are within scope of the current module or, alternatively, from the same package scope with ~.SomeName.

@lagru lagru added the enhancement New feature or functionality label Jun 3, 2024
@lagru lagru changed the title Add prototype of static "intime" analysis Collect docnames of analyzed source in advance Jun 12, 2024
lagru and others added 6 commits June 12, 2024 14:37
This syntax is used by Pandas [1]. I'm not entirely sold yet, but let's
add it for now. To avoid confusion, literals should probably be made to
only be accepted on the top-level. Otherwise something like
`dict of {{"a", "b"}: int}` becomes possible.

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>
which avoids potentially confusing constructs like
`dict of {{"a", "b"}: int}`

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>
lagru and others added 6 commits June 23, 2024 16:51
since this is what NumPyDoc recommends as well [1].

[1] https://numpydoc.readthedocs.io/en/latest/format.html#parameters

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>
Doing this on the NAME level meant that stuff like "np.int16" would be
turned into "np.np.int16" because both "np" and "int16" where matched.
Reduce responsibility of the former DocName class. Replacing docstring
specific type description should be handled separately.
While not perfect or anywhere near to finished the refactored code
uses clearer separation of responsiblities and is one step closer to an
architecture that feels right. :)
@lagru lagru marked this pull request as ready for review September 4, 2024 13:09
@lagru lagru merged commit 78a8888 into main Sep 4, 2024
@lagru lagru deleted the static-analysis branch September 4, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants