code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
from collections import OrderedDict from copy import deepcopy from io import StringIO import os import re from functools import partial from tempfile import TemporaryDirectory from typing import List from IPython.core.display import display from robot.api import get_model from robot.errors import DataError from robo...
/robotframework_interpreter-0.7.6-py3-none-any.whl/robotframework_interpreter/interpreter.py
0.719285
0.1532
interpreter.py
pypi
import requests import logging import subprocess import json import os import robot import time from robot.variables import GLOBAL_VARIABLES from robot.api import logger from urlparse import urljoin THIS_DIR = os.path.dirname(os.path.abspath(__file__)) execfile(os.path.join(THIS_DIR, 'version.py')) __version__ = VERS...
/robotframework-ioslibrary-0.2.0.tar.gz/robotframework-ioslibrary-0.2.0/src/IOSLibrary/__init__.py
0.459804
0.207596
__init__.py
pypi
import time import array from robot import utils from robot.utils import asserts from robot.utils.connectioncache import ConnectionCache from robot.output import LOGGER from robot.output.loggerhelper import Message from .utils import int_any_base from .mapping import * class Sdr: def set_sdr_source(self, sour...
/robotframework-ipmilibrary-0.3.5.tar.gz/robotframework-ipmilibrary-0.3.5/src/IpmiLibrary/sdr.py
0.710126
0.238063
sdr.py
pypi
import struct import time from robot import utils from robot.utils import asserts from .utils import int_any_base from .mapping import * class NotSupportedError(Exception): pass class Sel: @property def _sel_records(self): if 'prefetched_sel_records' in self._cp: return self._cp['p...
/robotframework-ipmilibrary-0.3.5.tar.gz/robotframework-ipmilibrary-0.3.5/src/IpmiLibrary/sel.py
0.758868
0.362743
sel.py
pypi
import array from robot import utils from robot.utils import asserts from .mapping import * from .utils import int_any_base class Bmc: def issue_bmc_cold_reset(self): """Sends a _bmc cold reset_ to the given controler. """ self._ipmi.cold_reset() def get_bmc_device_id(self): ...
/robotframework-ipmilibrary-0.3.5.tar.gz/robotframework-ipmilibrary-0.3.5/src/IpmiLibrary/bmc.py
0.730482
0.291384
bmc.py
pypi
import array from robot.utils import asserts import pyipmi from .utils import int_any_base from .mapping import * class Fru: def _fru_data(self, fru_id): if ('prefetched_fru_data' in self._cp and fru_id in self._cp['prefetched_fru_data']): return self._cp['prefetched_fru_data...
/robotframework-ipmilibrary-0.3.5.tar.gz/robotframework-ipmilibrary-0.3.5/src/IpmiLibrary/fru.py
0.649912
0.416915
fru.py
pypi
from robot.utils import asserts from robot import utils from pyipmi.errors import DataNotFound, CompletionCodeError from .utils import int_any_base from .mapping import * class Hpm: def hpm_start_firmware_upload(self, file_path, filename): """*DEPRECATED*""" cmd = 'hpm upgrade %s/%s all' % (file...
/robotframework-ipmilibrary-0.3.5.tar.gz/robotframework-ipmilibrary-0.3.5/src/IpmiLibrary/hpm.py
0.527803
0.237664
hpm.py
pypi
from robot import utils from robot.utils import asserts from robot.utils.connectioncache import ConnectionCache from robot.output import LOGGER from robot.output.loggerhelper import Message from .utils import int_any_base from .mapping import * class Picmg: def get_picmg_properties(self): return self._ip...
/robotframework-ipmilibrary-0.3.5.tar.gz/robotframework-ipmilibrary-0.3.5/src/IpmiLibrary/picmg.py
0.790813
0.320795
picmg.py
pypi
import io import json import os.path import jsonschema from copy import deepcopy from robot.api import logger from robot.utils.asserts import fail from jsonpath_ng import Index, Fields from jsonpath_ng.ext import parse as parse_ng from jsonpath_ng.exceptions import JsonPathParserError __author__ = "Traitanit Huangsri"...
/robotframework-jsonlibrary-0.5.tar.gz/robotframework-jsonlibrary-0.5/JSONLibrary/jsonlibrary.py
0.600891
0.38659
jsonlibrary.py
pypi
import json from types import ModuleType from importlib import import_module from JsonQuery.queries import JmesPath, JsonPathNg, Querable jsonParserModule = { "jmespath": JmesPath, "jsonpath_ng.ext": JsonPathNg, "jsonpath_ng": JsonPathNg, } class JsonQuery: ROBOT_LIBRARY_SCOPE = "SUITE" def __...
/robotframework_jsonquery-1.0.3.tar.gz/robotframework_jsonquery-1.0.3/JsonQuery/JsonQuery.py
0.659186
0.222299
JsonQuery.py
pypi
import json import pprint from typing import Any, Dict, List, Optional, Union import jsonschema import jsonselect import objectpath from jsonpath_rw_ext import parse from jsonpath_rw.jsonpath import DatumInContext, Fields, Index, JSONPath JsonType = Union[Dict[str, Any], List[Dict[str, Any]]] # noqa: E993 class J...
/robotframework-jsonvalidator-2.0.0.tar.gz/robotframework-jsonvalidator-2.0.0/src/JsonValidator.py
0.778649
0.309105
JsonValidator.py
pypi
from pathlib import Path from robot.libraries.BuiltIn import BuiltIn from SeleniumLibrary import SeleniumLibrary from SeleniumLibrary.utils.librarylistener import LibraryListener from .keywords import server, webelements HERE = Path(__file__).parent CLIENTS = [client for client in sorted(HERE.glob("clients/*")) if ...
/robotframework_jupyterlibrary-0.5.0a0-py3-none-any.whl/JupyterLibrary/core.py
0.785925
0.219683
core.py
pypi
import contextlib import shutil import tempfile from hashlib import sha256 from pathlib import Path import robot from IPython import get_ipython from IPython.core import magic_arguments from IPython.core.magic import ( Magics, cell_magic, magics_class, ) from IPython.display import ( HTML, Markdown...
/robotframework_jupyterlibrary-0.5.0a0-py3-none-any.whl/JupyterLibrary/magic.py
0.584983
0.214691
magic.py
pypi
import os import shutil import socket import subprocess import tempfile import time import typing from pathlib import Path from urllib.request import urlopen from uuid import uuid4 from robot.libraries.BuiltIn import BuiltIn from SeleniumLibrary.base import LibraryComponent, keyword class ServerKeywords(LibraryCompo...
/robotframework_jupyterlibrary-0.5.0a0-py3-none-any.whl/JupyterLibrary/keywords/server.py
0.654343
0.15084
server.py
pypi
from kafka import KafkaProducer class Producer(object): producer = None def connect_producer(self, bootstrap_servers='127.0.0.1:9092', client_id='Robot', **kwargs): """A Kafka client that publishes records to the Kafka cluster. Keyword Arguments: - ``bootstrap_servers``: 'host[:p...
/robotframework-kafkalibrary-py3-0.0.2.1.tar.gz/robotframework-kafkalibrary-py3-0.0.2.1/KafkaLibrary/Producer.py
0.864554
0.278736
Producer.py
pypi
from kafka import KafkaConsumer, TopicPartition class Consumer(object): consumer = None def connect_consumer( self, bootstrap_servers='127.0.0.1:9092', client_id='Robot', group_id=None, auto_offset_reset='latest', enable_auto_commit=True...
/robotframework-kafkalibrary-py3-0.0.2.1.tar.gz/robotframework-kafkalibrary-py3-0.0.2.1/KafkaLibrary/Consumer.py
0.854217
0.294674
Consumer.py
pypi
from kafka import KafkaProducer class Producer(object): producer = None def connect_producer(self, bootstrap_servers='127.0.0.1:9092', client_id='Robot', **kwargs): """A Kafka client that publishes records to the Kafka cluster. Keyword Arguments: - ``bootstrap_servers``: 'host[:p...
/robotframework-kafkalibrary-0.0.3.tar.gz/robotframework-kafkalibrary-0.0.3/KafkaLibrary/Producer.py
0.864554
0.278736
Producer.py
pypi
from kafka import KafkaConsumer, TopicPartition class Consumer(object): consumer = None def connect_consumer( self, bootstrap_servers='127.0.0.1:9092', client_id='Robot', group_id=None, auto_offset_reset='latest', enable_auto_commit=True...
/robotframework-kafkalibrary-0.0.3.tar.gz/robotframework-kafkalibrary-0.0.3/KafkaLibrary/Consumer.py
0.857186
0.357764
Consumer.py
pypi
from robotlibcore import DynamicCore from KeePassLibrary.keywords import ( KeePassDatabase, KeePassEntry, KeePassEntries, KeePassGroup, KeePassGroups ) __version__ = '0.4.0' class KeePassLibrary(DynamicCore): """KeePassLibrary is a library for Robot Framework. KeePassLibrary uses the...
/robotframework-keepasslibrary-0.4.0.tar.gz/robotframework-keepasslibrary-0.4.0/src/KeePassLibrary/__init__.py
0.8488
0.332988
__init__.py
pypi
from KeePassLibrary.base import keyword, LibraryComponent, Entry from KeePassLibrary.errors import EntryInvalid class KeePassEntry(LibraryComponent): #---------- Base Element ---------- #---------- Title ---------- @keyword def get_entry_title(self, entry:Entry): """Return the title value...
/robotframework-keepasslibrary-0.4.0.tar.gz/robotframework-keepasslibrary-0.4.0/src/KeePassLibrary/keywords/keepassentry.py
0.877772
0.279747
keepassentry.py
pypi
from KeePassLibrary.base import keyword, LibraryComponent, UUID from KeePassLibrary.errors import DatabaseNotOpened from robot.utils import is_truthy class KeePassGroups(LibraryComponent): # FIXME: Catch uuid string and convert to class @keyword def get_groups(self, recursive=True, path=None, group=No...
/robotframework-keepasslibrary-0.4.0.tar.gz/robotframework-keepasslibrary-0.4.0/src/KeePassLibrary/keywords/keepassgroups.py
0.662141
0.387893
keepassgroups.py
pypi
from KeePassLibrary.base import keyword, LibraryComponent, UUID from KeePassLibrary.errors import DatabaseNotOpened from robot.utils import is_truthy class KeePassEntries(LibraryComponent): # FIXME: Catch uuid string and convert to class @keyword def get_entries(self, history=False, first=False, ...
/robotframework-keepasslibrary-0.4.0.tar.gz/robotframework-keepasslibrary-0.4.0/src/KeePassLibrary/keywords/keepassentries.py
0.612657
0.452838
keepassentries.py
pypi
from __future__ import print_function """ This script can be used to reorganize symbol libraries based on regex patterns specified in a JSON file. Entire libraries can be renamed, or symbols within each library can be matched and moved The JSON file should be formatted as such: { "LibName" : { "Filter1...
/robotframework-kicadlibrary-2.0.1.tar.gz/robotframework-kicadlibrary-2.0.1/src/KiCadLibrary/kicad_library_utils/schlib/move_symbols.py
0.531696
0.210138
move_symbols.py
pypi
from __future__ import print_function from schlib import * import argparse # cases covered by this script: # (1) resize pins with posx wrong if component has pins with L direction but not R direction # (2) resize pins with posx wrong if component has pins with R direction but not L direction # (3) resize pins with...
/robotframework-kicadlibrary-2.0.1.tar.gz/robotframework-kicadlibrary-2.0.1/src/KiCadLibrary/kicad_library_utils/schlib/fix-pins.py
0.627381
0.485722
fix-pins.py
pypi
from __future__ import print_function from schlib import * import argparse, sys # cases covered by this script: # (1) resize field text sizes that are not 50mils class CheckComponent(object): def __init__(self, component): self.component = component self.prerequisites_ok = False self.hea...
/robotframework-kicadlibrary-2.0.1.tar.gz/robotframework-kicadlibrary-2.0.1/src/KiCadLibrary/kicad_library_utils/schlib/fix-text-sizes.py
0.453504
0.226602
fix-text-sizes.py
pypi
import json import re import ssl import urllib3 from os import environ from kubernetes import client, config, dynamic, stream from robot.api import logger from robot.api.deco import library from string import digits, ascii_lowercase from random import choices from KubeLibrary.exceptions import BearerTokenWithPrefixEx...
/robotframework_kubelibrary-0.8.6-py3-none-any.whl/KubeLibrary/KubeLibrary.py
0.772445
0.162513
KubeLibrary.py
pypi
from .version import VERSION from .keywords import * from .utils import LibraryListener __version__ = VERSION class LDTPLibrary(LoggingKeywords, RunOnFailureKeywords, LDTPKeywords, ScreenshotKeywords, TableKeywords): """ LDTPLibrary is a...
/robotframework-ldtplibrary-10.2.2.tar.gz/robotframework-ldtplibrary-10.2.2/src/LDTPLibrary/__init__.py
0.637482
0.16398
__init__.py
pypi
import sys try: import ldtp except ImportError: if sys.platform != "darwin": raise import atomac.ldtp as ldtp from .keywordgroup import KeywordGroup from ._exception import LdtpError try: from ldtp.client_exception import LdtpExecutionError except ImportError: if sys.platform != "darwin": ...
/robotframework-ldtplibrary-10.2.2.tar.gz/robotframework-ldtplibrary-10.2.2/src/LDTPLibrary/keywords/_table.py
0.486819
0.153011
_table.py
pypi
import os import errno import robot from LDTPLibrary import utils from .keywordgroup import KeywordGroup class ScreenshotKeywords(KeywordGroup): def __init__(self): self._screenshot_index = {} self._screenshot_path_stack = [] self.screenshot_root_directory = None # Public def set...
/robotframework-ldtplibrary-10.2.2.tar.gz/robotframework-ldtplibrary-10.2.2/src/LDTPLibrary/keywords/_screenshot.py
0.61231
0.244566
_screenshot.py
pypi
from encodings import utf_8 import os import sys import shutil import glob import argparse from datetime import datetime import robot.libdoc def toc(links, timestamp, home_page_path, template_file=""): """ Returns a HTML source code for TOC (table of contents) page, based on the template and including the ...
/robotframework-libtoc-1.2.1.tar.gz/robotframework-libtoc-1.2.1/robotframework_libtoc/libtoc.py
0.59843
0.446253
libtoc.py
pypi
from rflint.common import SuiteRule, ERROR, WARNING, normalize_name from rflint.parser import SettingTable import re class PeriodInSuiteName(SuiteRule): '''Warn about periods in the suite name Since robot uses "." as a path separator, using a "." in a suite name can lead to ambiguity. ''' severity...
/robotframework-lint-1.1.tar.gz/robotframework-lint-1.1/rflint/rules/suiteRules.py
0.555435
0.333069
suiteRules.py
pypi
from rflint.common import SuiteRule, ResourceRule, ERROR, normalize_name def check_duplicates(report_duplicate, table, permitted_dups=None, normalize_itemname=normalize_name): # `table` is a SettingsTable or a VariableTable; either contains rows, # but only VariableTable also contains stat...
/robotframework-lint-1.1.tar.gz/robotframework-lint-1.1/rflint/rules/duplicates.py
0.516839
0.153454
duplicates.py
pypi
from rflint.common import TestRule, KeywordRule, GeneralRule, ERROR, WARNING import re class LineTooLong(GeneralRule): '''Check that a line is not too long (configurable; default=100)''' severity = WARNING maxchars = 100 def configure(self, maxchars): self.maxchars = int(maxchars) def ...
/robotframework-lint-1.1.tar.gz/robotframework-lint-1.1/rflint/rules/otherRules.py
0.479747
0.199678
otherRules.py
pypi
from __future__ import print_function import re class RobotStatements(object): def append(self, linenumber, raw_text, cells): """Add another row of data from a test suite""" self.rows.append(Row(linenumber, raw_text, cells)) @property def path(self): # this property exists so that ...
/robotframework-lint-1.1.tar.gz/robotframework-lint-1.1/rflint/parser/common.py
0.434821
0.413063
common.py
pypi
from robot.api import SuiteVisitor import os import json from typing import Set, Dict, Optional from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.basic import normalize_filename log = get_logger(__name__) class FilteringTestsSuiteVisitor(SuiteVisitor): def __init__( self, ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/prerun_modifiers.py
0.693369
0.208924
prerun_modifiers.py
pypi
from typing import Set, Optional import os from robocorp_ls_core.robotframework_log import get_logger from robotframework_ls.impl.text_utilities import normalize_robot_name from robocorp_ls_core.options import is_true_in_env import sys from robotframework_ls.impl.robot_version import get_robot_major_version log = get_...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/_ignore_failures_in_stack.py
0.763748
0.179243
_ignore_failures_in_stack.py
pypi
import sys from typing import TypeVar, List, Union, Any, Optional, Iterable from robocorp_ls_core.debug_adapter_core.dap.dap_schema import StackFrame from robocorp_ls_core.protocols import IFuture if sys.version_info[:2] < (3, 8): class Protocol(object): pass else: from typing import Protocol T = Ty...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/protocols.py
0.600071
0.23634
protocols.py
pypi
import abc # borrowed from from six def _with_metaclass(meta, *bases): """Create a base class with a metaclass.""" class metaclass(meta): def __new__(cls, name, this_bases, d): return meta(name, bases, d) return type.__new__(metaclass, 'temporary_class', (), {}) # =================...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_bundle/pydevd_extension_api.py
0.783988
0.285397
pydevd_extension_api.py
pypi
from _pydevd_bundle.pydevd_constants import ForkSafeLock, get_global_debugger import os import sys from contextlib import contextmanager class IORedirector: ''' This class works to wrap a stream (stdout/stderr) with an additional redirect. ''' def __init__(self, original, new_redirect, wrap_buffer=Fa...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_bundle/pydevd_io.py
0.454472
0.157072
pydevd_io.py
pypi
from _pydevd_bundle.pydevd_constants import DebugInfoHolder, \ get_global_debugger, GetGlobalDebugger, set_global_debugger # Keep for backward compatibility @UnusedImport from _pydevd_bundle.pydevd_utils import quote_smart as quote, to_string from _pydevd_bundle.pydevd_comm_constants import ID_TO_MEANING, CMD_EXIT...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_bundle/pydevd_net_command.py
0.459319
0.1712
pydevd_net_command.py
pypi
import sys import traceback # START --------------------------- from codeop import CommandCompiler, compile_command # START --------------------------- from codeop import CommandCompiler, compile_command # START --------------------------- from codeop import CommandCompiler, compile_command # START ------------------...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_bundle/pydevconsole_code_for_ironpython.py
0.542863
0.295222
pydevconsole_code_for_ironpython.py
pypi
import bisect from _pydevd_bundle.pydevd_constants import NULL, KeyifyList import pydevd_file_utils class SourceMappingEntry(object): __slots__ = ['source_filename', 'line', 'end_line', 'runtime_line', 'runtime_source'] def __init__(self, line, end_line, runtime_line, runtime_source): assert isinsta...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_bundle/pydevd_source_mapping.py
0.707809
0.199464
pydevd_source_mapping.py
pypi
def is_variable_to_translate(cls_name, var_name): if var_name in ('variablesReference', 'frameId', 'threadId'): return True if cls_name == 'StackFrame' and var_name == 'id': # It's frameId everywhere except on StackFrame. return True if cls_name == 'Thread' and var_name == 'id': ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py
0.420957
0.226099
__main__pydevd_gen_debug_adapter_protocol.py
pypi
def __unicode__(self): """ Return "app_label.model_label.manager_name". """ def _copy_to_model(self, model): """ Makes a copy of the manager and assigns it to 'model', which should be a child of the existing model (used when inheriting a manager from an abstract base class). """ def...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/stubs/_django_manager_body.py
0.849379
0.667514
_django_manager_body.py
pypi
import sys from enum import IntFlag from _pydevd_frame_eval.vendored import bytecode as _bytecode class CompilerFlags(IntFlag): """Possible values of the co_flags attribute of Code object. Note: We do not rely on inspect values here as some of them are missing and furthermore would be version dependent. ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py
0.501709
0.244916
flags.py
pypi
from __future__ import absolute_import import collections import sys __version__ = "1.1.0" PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 VERSION = sys.version_info __all__ = ['PY2', 'PY3', 'lru_cache', 'apply_changes_to_python_environment'] if PY3: input = input def apply_changes_to_pytho...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/third_party/isort_container/isort/pie_slice.py
0.430626
0.167797
pie_slice.py
pypi
from __future__ import absolute_import, division, print_function, unicode_literals import argparse import functools import glob import os import re import sys import setuptools from isort import SortImports, __version__ from isort.settings import DEFAULT_SECTIONS, WrapModes, default, from_path, should_skip INTRO = ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/third_party/isort_container/isort/main.py
0.42919
0.261671
main.py
pypi
from __future__ import absolute_import import functools from collections import namedtuple from threading import RLock _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) @functools.wraps(functools.update_wrapper) def update_wrapper( wrapper, wrapped, assigned=functools.WRAPP...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/third_party/isort_container/backports/functools_lru_cache.py
0.671794
0.19498
functools_lru_cache.py
pypi
from _pydevd_bundle.pydevd_breakpoints import LineBreakpoint from _pydevd_bundle.pydevd_api import PyDevdAPI import bisect from _pydev_bundle import pydev_log class LineBreakpointWithLazyValidation(LineBreakpoint): def __init__(self, *args, **kwargs): LineBreakpoint.__init__(self, *args, **kwargs) ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/pydevd_plugins/pydevd_line_validation.py
0.713731
0.16502
pydevd_line_validation.py
pypi
from typing import List ROBOT_RUN_TEST = "robot.runTest" # Run Test/Task ROBOT_DEBUG_TEST = "robot.debugTest" # Debug Test/Task ROBOT_RUN_SUITE = "robot.runSuite" # Run Tests/Tasks Suite ROBOT_DEBUG_SUITE = "robot.debugSuite" # Debug Tests/Tasks Suite ROBOT_INTERACTIVE_SHELL = "robot.interactiveShell" # Start Int...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/commands.py
0.604983
0.205097
commands.py
pypi
from typing import Set, Iterable, Any, List from robotframework_ls.impl.protocols import ( ICompletionContext, IRobotDocument, IRobotToken, ) from robocorp_ls_core.lsp import ( Range, TextEditTypedDict, CodeActionTypedDict, ) from robotframework_ls.impl._code_action_utils import wrap_edits_in_s...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/code_action_refactoring.py
0.617051
0.273109
code_action_refactoring.py
pypi
from typing import List from robotframework_ls.impl.protocols import ICompletionContext from robocorp_ls_core.lsp import DocumentSymbolTypedDict, SymbolKind def collect_children(ast) -> List[DocumentSymbolTypedDict]: from robotframework_ls.impl import ast_utils from robot.api import Token from robotframe...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/document_symbol.py
0.738386
0.384508
document_symbol.py
pypi
from robocorp_ls_core.lsp import DocumentHighlightTypedDict from typing import Optional, List from robotframework_ls.impl.protocols import ICompletionContext, VarTokenInfo def _highlight_keyword( completion_context: ICompletionContext, curr_token_info ) -> List[DocumentHighlightTypedDict]: from robotframework...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/doc_highlight.py
0.721743
0.249462
doc_highlight.py
pypi
from typing import List from robocorp_ls_core.lsp import CompletionItemTypedDict from robotframework_ls.impl.protocols import ICompletionContext _SNIPPETS_RF4 = { "FOR IN": { "prefix": "FOR IN", "body": [ "FOR<sp>${${1:element}}<sp>IN<sp>@{${2:LIST}}", " Log<sp>${${1:elem...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/snippets_completions.py
0.686895
0.477371
snippets_completions.py
pypi
from typing import Dict, Tuple, Sequence, Iterator, List from robocorp_ls_core.robotframework_log import get_logger from robotframework_ls.impl.protocols import ICompletionContext from robocorp_ls_core.lsp import ( CompletionItem, CompletionItemKind, InsertTextFormat, Position, Range, TextEdit, ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/dictionary_completions.py
0.759404
0.260072
dictionary_completions.py
pypi
from typing import Optional, Iterator, Tuple from robotframework_ls.impl.protocols import KeywordUsageInfo, IRobotToken from robotframework_ls.impl.keywords_in_args import KEYWORD_NAME_TO_KEYWORD_INDEX from robotframework_ls.impl.keywords_in_args import KEYWORD_NAME_TO_CONDITION_INDEX TOK_TYPE_NONE = 0 TOK_TYPE_KEYWO...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/ast_utils_keyword_usage.py
0.838878
0.203134
ast_utils_keyword_usage.py
pypi
from robotframework_ls.impl.protocols import ( ICompletionContext, NodeInfo, ILibraryDocConversions, ) from typing import Optional, Any import typing from robocorp_ls_core.lsp import HoverTypedDict from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.protocols import ActionResult...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/collect_robot_documentation.py
0.805135
0.211132
collect_robot_documentation.py
pypi
from typing import Optional, Set, List, Dict, Iterator, Sequence import weakref from robocorp_ls_core.protocols import ITestInfoFromSymbolsCacheTypedDict from robotframework_ls.impl.protocols import ( ILibraryDoc, IRobotDocument, ISymbolsJsonListEntry, ICompletionContext, ISymbolKeywordInfo, ) impo...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/_symbols_cache.py
0.884177
0.152694
_symbols_cache.py
pypi
from robotframework_ls.impl.protocols import ICompletionContext, ILocalizationInfo from typing import Optional from robotframework_ls.impl.text_utilities import normalize_robot_name class _Requisites(object): def __init__(self, section, matcher, replace_from_col, replace_to_col, selection): self.section =...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/section_name_completions.py
0.807954
0.286306
section_name_completions.py
pypi
from robotframework_ls.impl.protocols import ( ICompletionContext, TokenInfo, VarTokenInfo, IRobotToken, INode, ) from robocorp_ls_core.lsp import ( PositionTypedDict, SelectionRangeTypedDict, ) from typing import List, Sequence from robocorp_ls_core.robotframework_log import get_logger impo...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/selection_range.py
0.7586
0.315841
selection_range.py
pypi
from typing import List, Optional from robocorp_ls_core.lsp import ( TextEditTypedDict, CodeActionTypedDict, WorkspaceEditTypedDict, WorkspaceEditParamsTypedDict, CommandTypedDict, RangeTypedDict, ShowDocumentParamsTypedDict, ) from robotframework_ls.impl.protocols import ICompletionContext...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/_code_action_utils.py
0.737253
0.374791
_code_action_utils.py
pypi
from typing import Set, Iterable, List from robocorp_ls_core.lsp import Range, CodeActionTypedDict, TextEditTypedDict from robotframework_ls.impl.protocols import ICompletionContext, IRobotToken from robotframework_ls.impl._code_action_utils import wrap_edits_in_snippet from robocorp_ls_core.protocols import IDocument...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/code_action_others.py
0.70416
0.256739
code_action_others.py
pypi
from typing import List, Optional, Dict, Iterator, Tuple from robocorp_ls_core.lsp import LocationTypedDict, RangeTypedDict, PositionTypedDict from robocorp_ls_core.robotframework_log import get_logger from robotframework_ls.impl.protocols import ( ICompletionContext, IRobotDocument, IKeywordFound, IVa...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/references.py
0.883638
0.267617
references.py
pypi
from robotframework_ls.impl.protocols import ( ICompletionContext, IRobotDocument, ILibraryDoc, IKeywordFound, CompletionType, ) from robocorp_ls_core.lsp import ( CompletionItemKind, TextEditTypedDict, CompletionItemTypedDict, InsertTextFormat, ) from typing import Optional, List, S...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/auto_import_completions.py
0.785309
0.17883
auto_import_completions.py
pypi
from robotframework_ls.impl.text_utilities import ( normalize_robot_name, matches_name_with_variables, ) from robotframework_ls.impl.protocols import IKeywordFound class RobotStringMatcher(object): def __init__(self, filter_text): self.filter_text = normalize_robot_name(filter_text) self._...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/string_matcher.py
0.883538
0.151655
string_matcher.py
pypi
from robocorp_ls_core.lsp import ( HoverTypedDict, MarkupKind, SignatureHelp, SignatureInformation, MarkupContentTypedDict, ) from typing import Optional from robotframework_ls.impl.protocols import ICompletionContext def hover(completion_context: ICompletionContext) -> Optional[HoverTypedDict]: ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/hover.py
0.789356
0.225214
hover.py
pypi
import sys from typing import ( TypeVar, Any, Optional, List, Sequence, Tuple, Iterable, Generic, Iterator, Callable, Hashable, Dict, Set, Union, ) from robocorp_ls_core.protocols import ( Sentinel, IMonitor, IDocument, IWorkspace, IConfig, ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/protocols.py
0.611962
0.174077
protocols.py
pypi
import os.path from robocorp_ls_core.robotframework_log import get_logger from typing import Optional, List, Tuple from robotframework_ls.impl.protocols import ICompletionContext from robocorp_ls_core.lsp import CompletionItemTypedDict from robocorp_ls_core.basic import normalize_filename from robotframework_ls.impl.ro...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/filesystem_section_completions.py
0.648911
0.16378
filesystem_section_completions.py
pypi
import os from contextlib import contextmanager from typing import List, Any, Dict, Set, Tuple, Optional from robocorp_ls_core.protocols import TypedDict from robocorp_ls_core.basic import isinstance_name from robotframework_ls.impl.protocols import ICompletionContext, IKeywordFound, INode from robotframework_ls.impl....
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/flow_explorer_model_builder.py
0.759404
0.208723
flow_explorer_model_builder.py
pypi
from typing import List from robotframework_ls.impl.protocols import ICompletionContext from robocorp_ls_core.protocols import IDocumentSelection def _create_completion_item( label: str, new_text: str, selection: IDocumentSelection, col_start: int, col_end: int, documentation: str, ) -> dict:...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/keyword_parameter_completions.py
0.66454
0.168292
keyword_parameter_completions.py
pypi
from typing import List from robocorp_ls_core.lsp import CompletionItemTypedDict from robocorp_ls_core.lsp import TextEditTypedDict from robocorp_ls_core.lsp import InsertTextFormat from robocorp_ls_core.lsp import CompletionItemKind from robotframework_ls.impl.protocols import ICompletionContext from robotframework_l...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/library_names_completions.py
0.632162
0.19521
library_names_completions.py
pypi
from collections.abc import Mapping def is_dict_like(item): return isinstance(item, Mapping) def is_string(item): return isinstance(item, str) from collections.abc import MutableMapping import re def normalize(string, ignore=(), caseless=True, spaceless=True): """Normalizes given string according to...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/robot_formatting/robot_normalizing.py
0.928449
0.455744
robot_normalizing.py
pypi
import re from urllib.parse import quote from .robot_markuputils import html_escape, html_format from .robot_normalizing import NormalizedDict from .robot_html_formatters import HeaderFormatter class DocFormatter: _header_regexp = re.compile(r"<h([234])>(.+?)</h\1>") _name_regexp = re.compile("`(.+?)`") ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/impl/robot_formatting/robot_html_utils.py
0.538498
0.261826
robot_html_utils.py
pypi
from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.basic import implements from robocorp_ls_core.protocols import IConfig, Sentinel from typing import Any, FrozenSet, Optional import os log = get_logger(__name__) def flatten_keys(d: dict, parent_key="", all_options=frozenset(), result_...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/config.py
0.738763
0.192426
config.py
pypi
import re from robocorp_ls_core.protocols import IDocumentSelection, IDocument RE_START_WORD = re.compile("[\w]*$") RE_END_WORD = re.compile("^[\w]*") def word_to_column(line_to_cursor): m_start = RE_START_WORD.findall(line_to_cursor) return m_start[0] class DocumentSelection(object): def __init__(s...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/document_selection.py
0.68637
0.201656
document_selection.py
pypi
from typing import Optional, List, Dict import sys # Hack so that we don't break the runtime on versions prior to Python 3.8. if sys.version_info[:2] < (3, 8): class Protocol(object): pass else: from typing import Protocol class IInterpreterInfo(Protocol): def get_interpreter_id(self) -> str: ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/ep_resolve_interpreter.py
0.735737
0.358241
ep_resolve_interpreter.py
pypi
import threading from robocorp_ls_core.protocols import IEndPoint, IDirCache, IProgressReporter from contextlib import contextmanager from typing import Optional, Iterator, Dict from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.basic import implements import os log = get_logger(__name_...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/progress_report.py
0.739799
0.151843
progress_report.py
pypi
from functools import partial import itertools from robocorp_ls_core.robotframework_log import get_logger, get_log_level import json from typing import Optional, Dict log = get_logger(__name__) # Note: sentinel. Signals that the writer thread should stop processing. STOP_WRITER_THREAD = "STOP_WRITER_THREAD" # Note:...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/debug_adapter_core/debug_adapter_threads.py
0.650356
0.162347
debug_adapter_threads.py
pypi
import json import itertools from functools import partial from robocorp_ls_core.robotframework_log import get_logger log = get_logger(__name__) class BaseSchema(object): type: str seq: int @staticmethod def initialize_ids_translation(): BaseSchema._dap_id_to_obj_id = {0: 0, None: None} ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/debug_adapter_core/dap/dap_base_schema.py
0.458591
0.15428
dap_base_schema.py
pypi
def is_variable_to_translate(cls_name, var_name): if var_name in ("variablesReference", "frameId", "threadId"): return True if cls_name == "StackFrame" and var_name == "id": # It's frameId everywhere except on StackFrame. return True if cls_name == "Thread" and var_name == "id": ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/debug_adapter_core/dap/__main__gen_debug_adapter_protocol.py
0.415847
0.219881
__main__gen_debug_adapter_protocol.py
pypi
from datetime import datetime from struct import unpack, calcsize from pytz.tzinfo import StaticTzInfo, DstTzInfo, memorized_ttinfo from pytz.tzinfo import memorized_datetime, memorized_timedelta def _byte_string(s): """Cast a string or byte string to an ASCII byte string.""" return s.encode('ASCII') _NULL ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/pytz/tzfile.py
0.667906
0.343865
tzfile.py
pypi
from datetime import tzinfo, timedelta, datetime from pytz import HOUR, ZERO, UTC __all__ = [ 'FixedOffset', 'LocalTimezone', 'USTimeZone', 'Eastern', 'Central', 'Mountain', 'Pacific', 'UTC' ] # A class building tzinfo objects for fixed-offset time zones. # Note that FixedOffset(0, "U...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/pytz/reference.py
0.822795
0.321061
reference.py
pypi
import dataclasses import re import warnings from typing import ( Any, AnyStr, Iterable, Iterator, Match as MatchHint, Optional, Pattern as PatternHint, Tuple, Union) class Pattern(object): """ The :class:`Pattern` class is the abstract definition of a pattern. """ # Make the class dict-less. __slots__...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/pathspec/pattern.py
0.849628
0.371365
pattern.py
pypi
import sys from collections.abc import ( Collection as CollectionType) from itertools import ( zip_longest) from os import ( PathLike) from typing import ( AnyStr, Callable, Collection, Iterable, Iterator, Optional, Type, TypeVar, Union) from . import util from .pattern import ( Pattern) from .util import...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/pathspec/pathspec.py
0.714329
0.402568
pathspec.py
pypi
from typing import ( AnyStr, Callable, Collection, Iterable, Type, TypeVar, Union) from .pathspec import ( PathSpec) from .pattern import ( Pattern) from .patterns.gitwildmatch import ( GitWildMatchPattern, GitWildMatchPatternError, _DIR_MARK) from .util import ( _is_iterable) Self = TypeVar("Self", boun...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/pathspec/gitignore.py
0.831896
0.298901
gitignore.py
pypi
import functools import re import string import sys import typing as t if t.TYPE_CHECKING: import typing_extensions as te class HasHTML(te.Protocol): def __html__(self) -> str: pass _P = te.ParamSpec("_P") __version__ = "2.1.3" _strip_comments_re = re.compile(r"<!--.*?-->", re.DOTA...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/markupsafe/__init__.py
0.563858
0.173691
__init__.py
pypi
import inspect import json import sys from collections import OrderedDict, defaultdict from datetime import datetime, timezone from operator import itemgetter from pathlib import Path from timeit import default_timer as timer from warnings import warn import pytz import robocop.exceptions from robocop.rules import Me...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/reports.py
0.656988
0.15109
reports.py
pypi
from functools import lru_cache from pathlib import Path from pathspec import PathSpec from robocop.exceptions import FileError DEFAULT_EXCLUDES = r"(\.direnv|\.eggs|\.git|\.hg|\.nox|\.tox|\.venv|venv|\.svn)" def find_project_root(root, srcs): """ Find project root. If not provided in ``root`` argument...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/files.py
0.642657
0.313262
files.py
pypi
import robot.errors class RobocopFatalError(ValueError): pass class ConfigGeneralError(RobocopFatalError): pass class InvalidExternalCheckerError(RobocopFatalError): def __init__(self, path): msg = f'Fatal error: Failed to load external rules from file "{path}". Verify if the file exists' ...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/exceptions.py
0.746786
0.207135
exceptions.py
pypi
from collections import defaultdict from robot.api import Token from robocop.checkers import VisitorChecker from robocop.rules import Rule, RuleSeverity rules = { "0601": Rule( rule_id="0601", name="tag-with-space", msg="Tag '{{ tag }}' should not contain spaces", severity=RuleSev...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/checkers/tags.py
0.774711
0.410225
tags.py
pypi
from collections import defaultdict from robot.api import Token from robocop.checkers import VisitorChecker from robocop.rules import Rule, RuleParam, RuleSeverity from robocop.utils import get_errors, normalize_robot_name, normalize_robot_var_name def configure_sections_order(value): section_map = { "s...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/checkers/duplications.py
0.64791
0.328651
duplications.py
pypi
from pathlib import Path from robot.parsing.model.blocks import SettingSection from robot.parsing.model.statements import Documentation from robocop.checkers import VisitorChecker from robocop.rules import Rule, RuleParam, RuleSeverity from robocop.utils.misc import str2bool rules = { "0201": Rule( rule_...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/checkers/documentation.py
0.701509
0.358521
documentation.py
pypi
import inspect try: from robot.api.parsing import ModelVisitor except ImportError: from robot.parsing.model.visitor import ModelVisitor from robot.utils import FileReader from robocop.exceptions import RuleNotFoundError, RuleParamNotFoundError, RuleReportsNotFoundError from robocop.utils import modules_from_...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/checkers/__init__.py
0.582254
0.170042
__init__.py
pypi
import re from robot.api import Token from robot.parsing.model.blocks import CommentSection, TestCase from robot.parsing.model.statements import ( Arguments, Comment, Documentation, EmptyLine, KeywordCall, Template, TemplateArguments, ) try: from robot.api.parsing import Break, Continu...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/checkers/lengths.py
0.566618
0.245627
lengths.py
pypi
from robocop.utils.misc import normalize_robot_name class RunKeywordVariant: def __init__(self, name, resolve=1, branches=None, split_on_and=False): self.name = normalize_robot_name(name) self.resolve = resolve self.branches = branches self.split_on_and = split_on_and class RunKe...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/robocop/utils/run_keywords.py
0.772144
0.210178
run_keywords.py
pypi
import sys import typing as t from types import CodeType from types import TracebackType from .exceptions import TemplateSyntaxError from .utils import internal_code from .utils import missing if t.TYPE_CHECKING: from .runtime import Context def rewrite_traceback_stack(source: t.Optional[str] = None) -> BaseExc...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/jinja2/debug.py
0.466359
0.204521
debug.py
pypi
import typing as t from . import nodes from .visitor import NodeVisitor VAR_LOAD_PARAMETER = "param" VAR_LOAD_RESOLVE = "resolve" VAR_LOAD_ALIAS = "alias" VAR_LOAD_UNDEFINED = "undefined" def find_symbols( nodes: t.Iterable[nodes.Node], parent_symbols: t.Optional["Symbols"] = None ) -> "Symbols": sym = Symb...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/jinja2/idtracking.py
0.538983
0.234999
idtracking.py
pypi
import inspect import typing as t from functools import WRAPPER_ASSIGNMENTS from functools import wraps from .utils import _PassArg from .utils import pass_eval_context V = t.TypeVar("V") def async_variant(normal_func): # type: ignore def decorator(async_func): # type: ignore pass_arg = _PassArg.from_...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/jinja2/async_utils.py
0.64232
0.197619
async_utils.py
pypi
import operator import types import typing as t from _string import formatter_field_name_split # type: ignore from collections import abc from collections import deque from string import Formatter from markupsafe import EscapeFormatter from markupsafe import Markup from .environment import Environment from .exceptio...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/jinja2/sandbox.py
0.77081
0.174586
sandbox.py
pypi
import typing as t from .nodes import Node if t.TYPE_CHECKING: import typing_extensions as te class VisitCallable(te.Protocol): def __call__(self, node: Node, *args: t.Any, **kwargs: t.Any) -> t.Any: ... class NodeVisitor: """Walks the abstract syntax tree and call visitor functions...
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/libs/robocop_lib/jinja2/visitor.py
0.80147
0.575349
visitor.py
pypi