FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-progressbar/progressbar/base.py at develop · SourceryAI/python-progressbar · GitHub
SourceryAI
/
python-progressbar
Public
forked from
wolph/python-progressbar
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-progressbar
/
progressbar
/
base.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (19 loc) · 606 Bytes
Breadcrumbs
python-progressbar
/
progressbar
/
base.py
Copy path
File metadata and controls
30 lines (19 loc) · 606 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- mode: python; coding: utf-8 -*-
from
python_utils
import
types
class
FalseMeta
(
type
):
def
__bool__
(
self
):
# pragma: no cover
return
False
def
__cmp__
(
self
,
other
):
# pragma: no cover
return
-
1
__nonzero__
=
__bool__
class
UnknownLength
(
metaclass
=
FalseMeta
):
pass
class
Undefined
(
metaclass
=
FalseMeta
):
pass
try
:
# pragma: no cover
IO
=
types
.
IO
# type: ignore
TextIO
=
types
.
TextIO
# type: ignore
except
AttributeError
:
# pragma: no cover
from
typing
.
io
import
IO
,
TextIO
# type: ignore
assert
IO
is
not
None
assert
TextIO
is
not
None
Back
|
FazBrowse Home
|
New Git URL