Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
972a230
remove builtins object and with_metaclass usage
anton-ubi Nov 6, 2025
2a9d99f
use super() where possible
anton-ubi Nov 6, 2025
9bcaf53
cleanup super type
anton-ubi Nov 6, 2025
52718d1
remove builtins imports
anton-ubi Nov 6, 2025
8f78087
use f-string where meaningful
anton-ubi Nov 6, 2025
142f4b7
remove redundant parentheses from isinstance
anton-ubi Nov 6, 2025
207f6df
except KeyError
anton-ubi Nov 6, 2025
045903d
add LayerType enum
anton-ubi Nov 6, 2025
0edda00
layer use constants.LayerType
anton-ubi Nov 6, 2025
cb41a93
add _LayerArgs to help annotate layer args
anton-ubi Nov 6, 2025
6f3a0ed
add str and repr
anton-ubi Nov 6, 2025
cde7852
rename r to layer
anton-ubi Nov 6, 2025
71e9781
add override decorator
anton-ubi Nov 6, 2025
a7efca3
add annotations
anton-ubi Nov 6, 2025
0d3af8b
correct docstrings and comments typos
anton-ubi Nov 6, 2025
98d6184
typing second pass
anton-ubi Nov 6, 2025
bc0b01a
proper override import from typing_extensions
anton-ubi Nov 6, 2025
8df5411
proper Unpack import from typing_extensions
anton-ubi Nov 6, 2025
2d8d230
lint
anton-ubi Nov 6, 2025
a260f13
fix forgotten %-style format
anton-ubi Nov 6, 2025
82eaa82
Merge branch 'AcademySoftwareFoundation:master' into pyoutline_cleanup
anton-ubi Nov 7, 2025
0e39fcf
complete _LayerArgs list of params
anton-ubi Nov 7, 2025
9644fb4
complete limits type as List[str]
anton-ubi Nov 7, 2025
244a19e
Merge branch 'master' into pyoutline_cleanup
anton-ubi Nov 11, 2025
28f2d4b
less intrusive Layer type typing annotation based on Literal while pr…
anton-ubi Nov 11, 2025
732fdd9
lint
anton-ubi Nov 11, 2025
fb1bd30
Merge branch 'master' into pyoutline_cleanup
anton-ubi Nov 17, 2025
6032ccb
type annotate layer type constant
anton-ubi Nov 17, 2025
d4e0b1a
Merge branch 'master' into pyoutline_cleanup
anton-ubi Nov 21, 2025
b0aae23
introduce back LayerType str enum
anton-ubi Nov 24, 2025
b7e5c63
Complete _LayerArgs
anton-ubi Nov 24, 2025
47a0da0
format
anton-ubi Nov 24, 2025
ee7dc90
correct inexact constraint description
anton-ubi Nov 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions pyoutline/outline/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,24 @@

"""Outline constants and enumerations."""


from __future__ import annotations
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

import sys
from typing import Final, Tuple

if sys.version_info >= (3, 10):
from typing import Literal, TypeAlias
else:
from typing_extensions import Literal, TypeAlias


# Init mode is during the parsing of the outline
# script. Nothing can really be done in this phase
# besides adding layers or frames.
OUTLINE_MODE_INIT = 1
OUTLINE_MODE_INIT = 1

# Setup mode is the phase when the outline is being setup
# to launch. This phase runs in serial on the machine
Expand All @@ -48,4 +56,13 @@
# Render = a general rendering layer
# Util = setup or cleanup layer
# Post = A post job layer
LAYER_TYPES = ("Render", "Util", "Post")
LAYER_TYPES: Final[
Tuple[
Literal["Render"],
Literal["Util"],
Literal["Post"],
]
] = ("Render", "Util", "Post")

# Layer type type alias, to help with static type checking.
LayerT: TypeAlias = Literal["Render", "Util", "Post"]
Loading
Loading