GitXplorerGitXplorer
J

lxml-stubs

public
12 stars
3 forks
2 issues

Commits

List of commits on branch master.
Verified
d037fdfa412afeff197f7bd80baeb9699684cb63

Merge pull request #9 from jack1142/find_and_get_can_be_none

JJelleZijlstra committed 5 years ago
Unverified
98e5524ce1838025dfb0e580c481b18c5d473a4c

`_Element`'s `.find()` returns `None` and `.get()` returns type of passed `default`

JJackenmen committed 5 years ago
Verified
185fabe60c2aeff677046060d6b18ee02f7bdb5e

Merge pull request #8 from jack1142/xpath_and_smart_strings

JJelleZijlstra committed 5 years ago
Unverified
1c267efc25a6c6a9e948f5df407a1111a1f8abe0

Add XPath object type, `XPath.__call__` and smart strings

JJackenmen committed 5 years ago
Verified
b19019ee6044d6b17211938cbb99000411c6d37e

Merge pull request #7 from suutari/fixes

JJelleZijlstra committed 5 years ago
Unverified
8b02bec93f2376784d52e90093384182b9a49fec

etree: Add type parameter to Dict of memo in deepcopy

ssuutari committed 5 years ago

README

The README file for this repository.

lxml-stubs

About

This repository contains external type annotations (see PEP 484) for the lxml package. Such type annotations are normally included in typeshed, but lxml's annotations were frequently problematic and have therefore been deleted from typeshed. In particular, the stubs are incomplete and it has been difficult to provide complete stubs.

This repo provides lxml stubs as they existed in typeshed for those who find them useful. Eventually, it should become a PEP 561-style stubs package.

Usage

To use these stubs, clone this repo and point your type checker to it. For example, to use them in mypy, you can set the $MYPYPATH environment variable or set mypy_path = /path/to/lxml-stubs in your mypy.ini.

Contributing

Contributions should follow the same style guidelines as typeshed.

Git history

The early git history of this repo contains commits from typeshed, filtered to only changes that affect typeshed (using git filter-branch).

Authors

This repository was created by Jelle Zijlstra. Numerous others have contributed to the lxml stubs; see the git history for details.

TODOs

  • Provide testing (both a local test script and a Travis setup)
  • Provide a PEP 561-style setup script.