Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Oct 11, 2023
1 parent d374440 commit e755123
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dcspy/aircraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ class CycleButton(TypedDict):
class MetaAircraft(type):
"""Meta class for all BasicAircraft."""
def __new__(mcs, name, bases, namespace):
"""
Create new instance of any BasicAircraft.
You can crate instance of any plane:
f22a = MetaAircraft('F-22A', (BasicAircraft,), {})(lcd_type: LcdInfo)
:param name:
:param bases:
:param namespace:
"""
return super().__new__(mcs, name, bases, namespace)


Expand Down

0 comments on commit e755123

Please sign in to comment.