Update README

This commit is contained in:
SantaSpeen 2022-02-23 00:41:32 +03:00
parent e63bd01cbf
commit 575879459d
2 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ cli.write("cli.write")
# ]: cli.write # ]: cli.write
``` ```
* With logging output usage * With `logging` output usage
```python ```python
from console import Console from console import Console
@ -75,7 +75,7 @@ logging.info("Info log")
# ]: 2022-02-20 23:22:49,731 - root - INFO - Info log # ]: 2022-02-20 23:22:49,731 - root - INFO - Info log
``` ```
* with `print()` and `console.log` output usage * With `print()` and `console.log` output usage
```python ```python
from console import Console from console import Console

View File

@ -50,7 +50,7 @@ cli.write("cli.write")
# ]: cli.write # ]: cli.write
``` ```
* Использование вывода с logging * Использование вывода с `logging`
```python ```python
from console import Console from console import Console
@ -73,7 +73,7 @@ logging.info("Info log")
# ]: 2022-02-20 23:22:49,731 - root - INFO - Info log # ]: 2022-02-20 23:22:49,731 - root - INFO - Info log
``` ```
* Использование вывода с`print()` и `console.log` * Использование вывода с `print()` и `console.log`
```python ```python
from console import Console from console import Console
@ -101,8 +101,8 @@ console << "<< log"
# ]: << log # ]: << log
``` ```
Если вы используете IDE, можно обновить `builtins.pyi` используя `scr/builtins_fix.pyi`. <br/> Если вы используете IDE, можно обновить `builtins.pyi`, что бы она не ругалась на отсутствие `console.*` используя `scr/builtins_fix.pyi`. <br/>
Скопируйте всё из `builtins_fix.pyi` и вставте в `builtins.pyi` на `131` линию, до `class type(object)`. Скопируйте всё из `builtins_fix.pyi` и вставте в `builtins.pyi` на `131` линию, перед `class type(object)`.
## Ссылки ## Ссылки