Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Matthias Bussonnier
- Sat, 17 Apr 2021 05:55:10
Show More
.github/workflows/mypy.yml
0
+3
-14
@@
-26,20
+26,9
b' jobs:'
26
26
pip install mypy pyflakes flake8
27
27
- name : Lint with mypy
28
28
run : |
29
mypy IPython/terminal/ptutils.py
30
mypy IPython/core/magics/*.py
31
mypy IPython/terminal/__init__.py
32
mypy IPython/terminal/console.py
33
#mypy IPython/terminal/debugger.py
34
#mypy IPython/terminal/embed.py
35
mypy IPython/terminal/interactiveshell.py
36
mypy IPython/terminal/ipapp.py
37
mypy IPython/terminal/magics.py
38
mypy IPython/terminal/prompts.py
39
mypy IPython/terminal/ptshell.py
40
mypy IPython/terminal/ptutils.py
41
mypy IPython/terminal/shortcuts.py
42
mypy IPython/core/c*.py
29
mypy -p IPython. terminal
30
mypy -p IPython.core. magics
43
31
- name : Lint with pyflakes
44
32
run : |
45
33
flake8 IPython/core/magics/script.py
34
flake8 IPython/core/magics/packaging.py
IPython/terminal/debugger.py
0
+2
-2
@@
-161,6
+161,6
b" if __name__ == '__main__':"
161
161
# happened after hitting "c", this is needed in order to
162
162
# be able to quit the debugging session (see #9950).
163
163
old_trace_dispatch = pdb . Pdb . trace_dispatch
164
pdb . Pdb = TerminalPdb
165
pdb . Pdb . trace_dispatch = old_trace_dispatch
164
pdb . Pdb = TerminalPdb # type: ignore
165
pdb . Pdb . trace_dispatch = old_trace_dispatch # type: ignore
166
166
pdb . main ()
IPython/terminal/embed.py
0
+7
-5
@@
-19,6
+19,8
b' from IPython.terminal.ipapp import load_default_config'
19
19
from traitlets import Bool , CBool , Unicode
20
20
from IPython.utils.io import ask_yes_no
21
21
22
from typing import Set
23
22
24
class KillEmbedded ( Exception ): pass
23
25
24
26
# kept for backward compatibility as IPython 6 was released with
@@
-123,17
+125,17
b' class InteractiveShellEmbed(TerminalInteractiveShell):'
123
125
help = "Automatically set the terminal title"
124
126
) . tag ( config = True )
125
127
126
_inactive_locations = set ()
128
_inactive_locations : Set [ str ] = set ()
129
130
def _disable_init_location ( self ):
131
"""Disable the current Instance creation location"""
132
InteractiveShellEmbed . _inactive_locations . add ( self . _init_location_id )
127
133
128
134
@property
129
135
def embedded_active ( self ):
130
136
return ( self . _call_location_id not in InteractiveShellEmbed . _inactive_locations ) \
131
137
and ( self . _init_location_id not in InteractiveShellEmbed . _inactive_locations )
132
138
133
def _disable_init_location ( self ):
134
"""Disable the current Instance creation location"""
135
InteractiveShellEmbed . _inactive_locations . add ( self . _init_location_id )
136
137
139
@embedded_active . setter
138
140
def embedded_active ( self , value ):
139
141
if value :
IPython/terminal/pt_inputhooks/osx.py
0
+2
-2
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages