Commit Graph

32 Commits

Author SHA1 Message Date
Jakub Stasiak 2b14948aa7 Make (Class)AssistedBuilder and ProviderOf generic classes
This doesn't provide much benefit to Injector itself but now
(Class)AssistedBuilder[T] and ProviderOf can be used in type hints[1]
like this:

    class Class:
        def __init__(self, builder: AssistedBuilder[OtherClass]):
            # ...

By being able to do that projects using Injector will gain more static
type safety when tool like mypy is used to lint the code.

Python 2.6 support is dropped because the typing module requires Python
2.7 or newer.

[1] https://docs.python.org/3/library/typing.html
2016-10-18 13:55:48 +02:00
Jakub Stasiak cadb19d4b7 Remove outdated readme section 2016-10-17 16:47:00 +02:00
Vuong Hoang 4679197ca2 Enable Python syntax highlight in README.md 2016-09-08 08:59:52 +07:00
Alec Thomas b52b051621 Merge pull request #36 from vrutsky/patch-3
Fix python block code format specifier
2014-01-09 08:27:41 -08:00
Alec Thomas a715071bd8 Merge pull request #35 from vrutsky/patch-2
Fix typo "Key is used to uniquely identifies"
2014-01-09 08:26:15 -08:00
Vladimir Rutsky 6b2b603e75 Fix python block code format specifier
Use `pycon` instead `python`.  Otherwise "Hello, John!" string highlighted with error.
2014-01-09 18:21:58 +03:00
Vladimir Rutsky 2e8b0e67a2 Fix typo "Key is used to uniquely identifies" 2014-01-09 16:27:07 +03:00
Vladimir Rutsky 44ae8930ff Fix typo "veryify" 2014-01-09 13:02:13 +03:00
Jakub Stasiak ada99ac296 Update README.md 2013-09-25 23:40:23 +01:00
Jakub Stasiak 7acb475414 Move testing information to Sphinx docs 2013-09-21 00:06:49 +01:00
Jakub Stasiak f9c64d42a1 Improve Sphinx documentation 2013-09-19 23:53:24 +01:00
Jakub Stasiak 629a826504 Remove annotations from the API, closes #29 2013-09-18 00:36:24 +01:00
Jakub Stasiak 1e7dc49688 Allow injecting plain functions and generate injecting wrappers 2013-09-17 00:41:51 +01:00
Jakub Stasiak 3a17b07d2e Change this sample to use regular Python block 2013-09-02 01:34:37 +01:00
Jakub Stasiak ee73541329 Fix doctests in readme 2013-09-02 01:19:48 +01:00
Jakub Stasiak ef1f9cba23 Update README.md 2013-09-02 01:06:29 +01:00
Jakub Stasiak 8162456ca2 Tune readme 2013-08-31 00:14:18 +01:00
Jakub Stasiak 2d85abf784 Add PyPI and GitHub links to the readme 2013-08-29 22:38:50 +01:00
Jakub Stasiak 6cfa0abf9d Specify the meaning of AssistedBuilder(SomeInterface) 2013-08-19 22:58:14 +02:00
Jakub Stasiak 73ef125c0b Make AssistedBuilder behaviour more explicit 2013-08-10 18:02:55 +01:00
Alec Thomas 66142afe8c Convert README.md to RST for PyPi. Bump to 0.7.6.
Fixes #26.
2013-08-10 10:52:07 -04:00
Alec Thomas 7c1aa98aea Add support for using Py3 annotations in lieu of @inject. 2013-08-08 23:11:06 -04:00
Jakub Stasiak b406ecc515 Remove unwanted logging configuration 2013-07-16 00:40:06 +01:00
Jakub Stasiak 2a15810c84 Trigger Travis build 2013-06-29 13:47:18 +01:00
Alec Thomas 0ab6104428 Fix tests! 2013-06-27 10:40:21 -04:00
Alec Thomas bf1515783c Don't indent numbered list. 2013-06-27 10:37:42 -04:00
Alec Thomas deef0b8bea Syntax highlight markdown code blocks. 2013-06-27 10:36:08 -04:00
Alec Thomas 76cb00592e Add simple example. 2013-06-27 10:19:25 -04:00
Alec Thomas 201ec769fd Roll back README.md->rst rename. 2012-11-18 23:19:52 -05:00
Alec Thomas 2cd5bb1c6a Fix travis link. 2012-11-16 11:40:54 -05:00
Alec Thomas 14c95b2ee4 Fix some artifacts of README rename. 2012-11-16 10:20:13 -05:00
Alec Thomas ee44d60a68 README.rst -> README.md 2012-11-16 09:38:57 -05:00