Skip to content

Commit

Permalink
Add details.rst for c-extension-no-member (#9933)
Browse files Browse the repository at this point in the history
Add skeleton explanation for `typevar-name-incorrect-variance`
Closes #5953
  • Loading branch information
jacobtylerwalls authored Sep 18, 2024
1 parent 7d60c27 commit 3b4a7f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/data/messages/c/c-extension-no-member/details.rst
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
You can help us make the doc better `by contributing <https://github.com/pylint-dev/pylint/issues/5953>`_ !
``c-extension-no-member`` is an informational variant of ``no-member`` to encourage
allowing introspection of C extensions as described in the
`page <https://pylint.readthedocs.io/en/latest/user_guide/messages/error/no-member.html>`_
for ``no-member``.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When naming type vars, only use a ``_co`` suffix when indicating covariance or ``_contra`` when indicating contravariance.

0 comments on commit 3b4a7f9

Please sign in to comment.