On Dec 27, 2017, at 18:59, Ivan Levkivskyi wrote:
>
> FWIW the same problem was discussed a year ago when documenting typing. At
> that time the discussion was not conclusive,
> so that some types use class:: directive while other use data:: directive. At
> that time
FWIW the same problem was discussed a year ago when documenting typing. At
that time the discussion was not conclusive,
so that some types use class:: directive while other use data:: directive.
At that time Guido was in favour of data:: and now in view of
PEP 560 many types in typing will stop
In his review of PR#4911, Antoine points to the documentation of two type
definitions in importlib.resources, Package and Resource.
https://github.com/python/cpython/pull/4911/files#diff-2a479c407f7177f3d7cb876f244e47bcR804
One question is what markup to use for type definitions. I’m using