Code Monkey home page Code Monkey logo

docutils-stubs's People

Contributors

cocoatomo avatar danieleades avatar flying-sheep avatar huy-ngo avatar mcsinyx avatar tk0miya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docutils-stubs's Issues

List[subclass] is incompatible with List[superclass]

def run(self) -> List[nodes.Node]: ...

subclasses of Directive will return, i believe, lists of subclasses of Node, rather than lists of Node.

List[Derived] is not compatible with List[Base] (see http://mypy.readthedocs.io/en/latest/generics.html#variance-of-generic-types)

this throws an error with the sphinx extension 'todo' example

is it possible to use Sequence here instead of List?

Update to docutils 0.16

Hi,

Would it be possible to have an updated release that supports docutils 0.16?

From what I can tell the changes from 0.14 to 0.16 are:

  • adding languages/ko.py and parsers/rst/languages/ko.py
  • adding a width option to the Table directive
  • Inliner.phrase_ref now has a default value for text of None
  • TitlePromoter.promote_title now returns bool not Optional[int]. Same for promote_subtitle
  • StripClassesAndElements.check_classes now returns bool, not int
  • utils.unescape moved to nodes
  • utils.unique_combinations was deprecated, although the return type might be the same.

I dare say the current stubs will work with 0.16, but pip refuses to install them as the docutils requirement is pinned to 0.14 but one of my dependencies requires >=0.16 .

I'd be happy to submit a PR with these changes.

Miissing License

[tkloczko@barrel docutils-stubs-0.0.21]$ grep Lice PKG-INFO
License: UNKNOWN

Licence claryfication

I cannot find in the code any traces of data under what kind of license is provided docutils-stubs.

[tkloczko@barrel docutils-stubs-0.0.21]$ grep Lice PKG-INFO
License: UNKNOWN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.