Skip to content

Commit

Permalink
Doctest fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon authored and Ramon committed Jul 27, 2020
1 parent 89b34a6 commit de35c36
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ discover_attributes(source: Union[pathlib.Path, str, module, Iterable[module]],

##### Usage Example
```python
>>> discover_modules('./test_resources/examples_for_readme')
[<module 'examples_for_readme.module_a' from 'C:\\projects\\personal\\barentsz\\test_resources\\examples_for_readme\\module_a.py'>, <module 'examples_for_readme.module_b' from 'C:\\projects\\personal\\barentsz\\test_resources\\examples_for_readme\\module_b.py'>]
>>> modules = discover_modules('./test_resources/examples_for_readme')
>>> [m.__name__ for m in modules]
['examples_for_readme.module_a', 'examples_for_readme.module_b']

```

Expand Down Expand Up @@ -216,8 +217,8 @@ discover_packages(directory: Union[pathlib.Path, str]) -> List[str]
##### Usage Example
```python
>>> paths = discover_paths('./test_resources/examples_for_readme', '**/*.py')
>>> [str(p) for p in paths]
['test_resources\\examples_for_readme\\module_a.py', 'test_resources\\examples_for_readme\\module_b.py', 'test_resources\\examples_for_readme\\__init__.py']
>>> [str(p.as_posix()) for p in paths]
['test_resources/examples_for_readme/module_a.py', 'test_resources/examples_for_readme/module_b.py', 'test_resources/examples_for_readme/__init__.py']

```

Expand Down

0 comments on commit de35c36

Please sign in to comment.