src/pybel/cli.py
def drop(manager: Manager, network_id: Optional[int], yes):
    """Drop a network by its identifier or drop all networks."""
    if network_id:
        manager.drop_network_by_id(network_id)

    elif yes or click.confirm('Drop all networks?'):
        manager.drop_networks()
Drop a network by its identifier or drop all networks.
Drop a network by its identifier or drop all networks.
Drop a network by its identifier or drop all networks .
def drop(manager: Manager, network_id: Optional[int], yes):
    if network_id:
        manager.drop_network_by_id(network_id)
    elif yes or click.confirm('Drop all networks?'):
        manager.drop_networks()
def drop ( manager : Manager , network_id : Optional [ int ] , yes ) : if network_id : manager . drop_network_by_id ( network_id ) elif yes or click . confirm ( 'Drop all networks?' ) : manager . drop_networks ( )
Drop a network by its identifier or drop all networks.
Drop a network by its identifier or drop all networks .
"""Drop a network by its identifier or drop all networks."""
manager
Manager
network_id
Optional[int]
yes