Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
astroid
/
brain
/
__pycache__
/
File Content:
brain_signal.cpython-311.pyc
� �|oi( � � � d Z ddlZddlmZ ddlmZ ddlmZ d� Zde fd�Z de fd �Zde fd �Z e e� � de� � dS )a Astroid hooks for the signal library. The signal module generates the 'Signals', 'Handlers' and 'Sigmasks' IntEnums dynamically using the IntEnum._convert() classmethod, which modifies the module globals. Astroid is unable to handle this type of code. Without these hooks, the following are erroneously triggered by Pylint: * E1101: Module 'signal' has no 'Signals' member (no-member) * E1101: Module 'signal' has no 'Handlers' member (no-member) * E1101: Module 'signal' has no 'Sigmasks' member (no-member) These enums are defined slightly differently depending on the user's operating system and platform. These platform differences should follow the current Python typeshed stdlib `signal.pyi` stub file, available at: * https://github.com/python/typeshed/blob/master/stdlib/signal.pyi Note that the enum.auto() values defined here for the Signals, Handlers and Sigmasks IntEnums are just dummy integer values, and do not correspond to the actual standard signal numbers - which may vary depending on the system. � N)�register_module_extender)�parse)�AstroidManagerc �t � t t � � t � � z t � � z � � S )zDGenerates the AST for 'Signals', 'Handlers' and 'Sigmasks' IntEnums.)r � _signals_enum�_handlers_enum�_sigmasks_enum� � �l/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/astroid/brain/brain_signal.py�_signals_enums_transformr # s* � �����>�#3�#3�3�n�6F�6F�F�G�G�Gr �returnc � � d} t j dk r| dz } t j dk r| dz } t j dvr| dz } | S )z3Generates the source code for the Signals int enum.a6 import enum class Signals(enum.IntEnum): SIGABRT = enum.auto() SIGEMT = enum.auto() SIGFPE = enum.auto() SIGILL = enum.auto() SIGINFO = enum.auto() SIGINT = enum.auto() SIGSEGV = enum.auto() SIGTERM = enum.auto() �win32a SIGALRM = enum.auto() SIGBUS = enum.auto() SIGCHLD = enum.auto() SIGCONT = enum.auto() SIGHUP = enum.auto() SIGIO = enum.auto() SIGIOT = enum.auto() SIGKILL = enum.auto() SIGPIPE = enum.auto() SIGPROF = enum.auto() SIGQUIT = enum.auto() SIGSTOP = enum.auto() SIGSYS = enum.auto() SIGTRAP = enum.auto() SIGTSTP = enum.auto() SIGTTIN = enum.auto() SIGTTOU = enum.auto() SIGURG = enum.auto() SIGUSR1 = enum.auto() SIGUSR2 = enum.auto() SIGVTALRM = enum.auto() SIGWINCH = enum.auto() SIGXCPU = enum.auto() SIGXFSZ = enum.auto() z) SIGBREAK = enum.auto() )�darwinr z� SIGCLD = enum.auto() SIGPOLL = enum.auto() SIGPWR = enum.auto() SIGRTMAX = enum.auto() SIGRTMIN = enum.auto() ��sys�platform)�signals_enums r r r ( sl � ��L� �|�w���� � ��4 �|�w���� � �� �|�.�.�.�� � �� �r c � � dS )z4Generates the source code for the Handlers int enum.zs import enum class Handlers(enum.IntEnum): SIG_DFL = enum.auto() SIG_IGN = eunm.auto() r r r r r r ` s � �� r c �* � t j dk rdS dS )z4Generates the source code for the Sigmasks int enum.r z� import enum class Sigmasks(enum.IntEnum): SIG_BLOCK = enum.auto() SIG_UNBLOCK = enum.auto() SIG_SETMASK = enum.auto() � r r r r r r j s � � �|�w���� � �2r �signal) �__doc__r �astroid.brain.helpersr �astroid.builderr �astroid.managerr r �strr r r r r r �<module>r s� �� � �. � � � � :� :� :� :� :� :� !� !� !� !� !� !� *� *� *� *� *� *�H� H� H� 5�s� 5� 5� 5� 5�p�� � � � � �� � � � � � ���)�)�8�5M� N� N� N� N� Nr
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.pyc
213 bytes
0644
brain_argparse.cpython-311.pyc
2230 bytes
0644
brain_attrs.cpython-311.pyc
3258 bytes
0644
brain_boto3.cpython-311.pyc
1359 bytes
0644
brain_builtin_inference.cpython-311.pyc
47146 bytes
0644
brain_collections.cpython-311.pyc
4943 bytes
0644
brain_crypt.cpython-311.pyc
1051 bytes
0644
brain_ctypes.cpython-311.pyc
2629 bytes
0644
brain_curses.cpython-311.pyc
3671 bytes
0644
brain_dataclasses.cpython-311.pyc
25218 bytes
0644
brain_dateutil.cpython-311.pyc
1063 bytes
0644
brain_fstrings.cpython-311.pyc
3220 bytes
0644
brain_functools.cpython-311.pyc
8350 bytes
0644
brain_gi.cpython-311.pyc
8754 bytes
0644
brain_hashlib.cpython-311.pyc
3041 bytes
0644
brain_http.cpython-311.pyc
11154 bytes
0644
brain_hypothesis.cpython-311.pyc
2133 bytes
0644
brain_io.cpython-311.pyc
2024 bytes
0644
brain_mechanize.cpython-311.pyc
2904 bytes
0644
brain_multiprocessing.cpython-311.pyc
3671 bytes
0644
brain_namedtuple_enum.cpython-311.pyc
30436 bytes
0644
brain_nose.cpython-311.pyc
3850 bytes
0644
brain_numpy_core_einsumfunc.cpython-311.pyc
1089 bytes
0644
brain_numpy_core_fromnumeric.cpython-311.pyc
936 bytes
0644
brain_numpy_core_function_base.cpython-311.pyc
1554 bytes
0644
brain_numpy_core_multiarray.cpython-311.pyc
4475 bytes
0644
brain_numpy_core_numeric.cpython-311.pyc
2042 bytes
0644
brain_numpy_core_numerictypes.cpython-311.pyc
8508 bytes
0644
brain_numpy_core_umath.cpython-311.pyc
4879 bytes
0644
brain_numpy_ma.cpython-311.pyc
1085 bytes
0644
brain_numpy_ndarray.cpython-311.pyc
9593 bytes
0644
brain_numpy_random_mtrand.cpython-311.pyc
3591 bytes
0644
brain_numpy_utils.cpython-311.pyc
4202 bytes
0644
brain_pathlib.cpython-311.pyc
2602 bytes
0644
brain_pkg_resources.cpython-311.pyc
2388 bytes
0644
brain_pytest.cpython-311.pyc
2504 bytes
0644
brain_qt.cpython-311.pyc
4004 bytes
0644
brain_random.cpython-311.pyc
4734 bytes
0644
brain_re.cpython-311.pyc
3817 bytes
0644
brain_regex.cpython-311.pyc
4462 bytes
0644
brain_responses.cpython-311.pyc
2077 bytes
0644
brain_scipy_signal.cpython-311.pyc
2494 bytes
0644
brain_signal.cpython-311.pyc
4498 bytes
0644
brain_six.cpython-311.pyc
9804 bytes
0644
brain_sqlalchemy.cpython-311.pyc
1199 bytes
0644
brain_ssl.cpython-311.pyc
7079 bytes
0644
brain_subprocess.cpython-311.pyc
3856 bytes
0644
brain_threading.cpython-311.pyc
1059 bytes
0644
brain_type.cpython-311.pyc
3329 bytes
0644
brain_typing.cpython-311.pyc
17864 bytes
0644
brain_unittest.cpython-311.pyc
1361 bytes
0644
brain_uuid.cpython-311.pyc
1067 bytes
0644
helpers.cpython-311.pyc
1616 bytes
0644
N4ST4R_ID | Naxtarrr