aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/pytypenames.h
blob: 6c7658ff69619acc74dc869c5287c5144e69fcb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef PYTYPENAMES_H
#define PYTYPENAMES_H

#include <QtCore/QString>

constexpr auto pyBoolT = QLatin1StringView ("PyBool");
constexpr auto pyFloatT = QLatin1StringView ("PyFloat");
constexpr auto pyLongT = QLatin1StringView ("PyLong");
constexpr auto pyObjectT = QLatin1StringView ("object");
constexpr auto pyStrT = QLatin1StringView ("str");

// PYSIDE-1499: A custom type determined by existence of an `__fspath__` attribute.
constexpr auto pyPathLikeT = QLatin1StringView ("PyPathLike");

constexpr auto cPyBufferT = QLatin1StringView ("PyBuffer");
constexpr auto cPyListT = QLatin1StringView ("PyList");
constexpr auto cPyObjectT = QLatin1StringView ("PyObject");
constexpr auto cPySequenceT = QLatin1StringView ("PySequence");
constexpr auto cPyTypeObjectT = QLatin1StringView ("PyTypeObject");

// numpy
constexpr auto cPyArrayObjectT = QLatin1StringView ("PyArrayObject");

constexpr auto sbkCharT = QLatin1StringView ("SbkChar");

#endif // PYTYPENAMES_H