You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			18 lines
		
	
	
		
			485 B
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			18 lines
		
	
	
		
			485 B
		
	
	
	
		
			Python
		
	
"""Base classes."""
 | 
						|
from __future__ import annotations
 | 
						|
 | 
						|
from typing import TYPE_CHECKING
 | 
						|
 | 
						|
from jupyter_server.extension.handler import ExtensionHandlerMixin
 | 
						|
 | 
						|
if TYPE_CHECKING:
 | 
						|
    from jupyter_server_terminals.terminalmanager import TerminalManager
 | 
						|
 | 
						|
 | 
						|
class TerminalsMixin(ExtensionHandlerMixin):
 | 
						|
    """An extension mixin for terminals."""
 | 
						|
 | 
						|
    @property
 | 
						|
    def terminal_manager(self) -> TerminalManager:
 | 
						|
        return self.settings["terminal_manager"]  # type:ignore[no-any-return]
 |