From ebe0ce0b7ba289f4660ad0da29d95877e70a9e29 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Tue, 22 Nov 2022 09:41:19 +0000 Subject: [PATCH 01/15] Update Dutch translation (preview quality) (#86) --- crowdin/translated/api.nl.json | 242 +++++++++--------- lang/nl/typeshed/stdlib/gc.pyi | 8 +- lang/nl/typeshed/stdlib/log.pyi | 6 +- lang/nl/typeshed/stdlib/machine.pyi | 8 +- lang/nl/typeshed/stdlib/math.pyi | 8 +- lang/nl/typeshed/stdlib/microbit/__init__.pyi | 103 ++++---- lang/nl/typeshed/stdlib/microbit/audio.pyi | 14 +- lang/nl/typeshed/stdlib/microbit/compass.pyi | 2 +- lang/nl/typeshed/stdlib/microbit/display.pyi | 10 +- lang/nl/typeshed/stdlib/microbit/i2c.pyi | 4 +- .../typeshed/stdlib/microbit/microphone.pyi | 2 +- lang/nl/typeshed/stdlib/microbit/spi.pyi | 6 +- lang/nl/typeshed/stdlib/microbit/uart.pyi | 2 +- lang/nl/typeshed/stdlib/micropython.pyi | 8 +- lang/nl/typeshed/stdlib/music.pyi | 2 +- lang/nl/typeshed/stdlib/os.pyi | 6 +- lang/nl/typeshed/stdlib/radio.pyi | 6 +- lang/nl/typeshed/stdlib/random.pyi | 2 +- lang/nl/typeshed/stdlib/speech.pyi | 6 +- lang/nl/typeshed/stdlib/struct.pyi | 14 +- lang/nl/typeshed/stdlib/sys.pyi | 10 +- lang/nl/typeshed/stdlib/time.pyi | 6 +- 22 files changed, 237 insertions(+), 238 deletions(-) diff --git a/crowdin/translated/api.nl.json b/crowdin/translated/api.nl.json index 6d44571..7aef9ce 100644 --- a/crowdin/translated/api.nl.json +++ b/crowdin/translated/api.nl.json @@ -8,7 +8,7 @@ "description": "Control the garbage collector" }, "gc.enable": { - "message": "ingeschakeld", + "message": "inschakelen", "description": "(function name) Enable automatic garbage collection." }, "gc.enable.summary": { @@ -52,7 +52,7 @@ "description": "(function name) Query the additional GC allocation threshold." }, "gc.threshold-1.summary": { - "message": "Vraag de extra GC-toewijzingsdrempel op.", + "message": "Vraag de extra GC toewijzingsdrempel op.", "description": "Query the additional GC allocation threshold." }, "gc.threshold-2": { @@ -60,7 +60,7 @@ "description": "(function name) Set the additional GC allocation threshold." }, "gc.threshold-2.summary": { - "message": "Stel de extra GC-toewijzingsdrempel in.", + "message": "Stel de extra GC toewijzingsdrempel in.", "description": "Set the additional GC allocation threshold." }, "gc.threshold-2.param-name.amount": { @@ -68,11 +68,11 @@ "description": "(parameter name) The number of bytes after which a garbage collection should be triggered." }, "gc.threshold-2.param-doc.amount": { - "message": "Het aantal bytes waarna een garbagecollection moet worden geactiveerd.", + "message": "Het aantal bytes waarna een garbage collectie moet worden geactiveerd.", "description": "Parameter docs" }, "log": { - "message": "logboek", + "message": "log", "description": "(module name) Log data to your micro:bit V2." }, "log.summary": { @@ -184,7 +184,7 @@ "description": "Parameter docs" }, "log.set_mirroring": { - "message": "kies mirroring", + "message": "stel spiegelen in", "description": "(function name) Configure mirroring of the data logging activity to the serial output." }, "log.set_mirroring.summary": { @@ -196,7 +196,7 @@ "description": "(parameter name) ``True`` enables mirroring data to the serial output." }, "log.set_mirroring.param-doc.serial": { - "message": " {{True}} maakt het spiegelen van gegevens naar de seriële uitgang mogelijk.", + "message": " {{True}} maakt het spiegelen van gegevens naar de seriële uitvoer mogelijk.", "description": "Parameter docs" }, "machine": { @@ -256,7 +256,7 @@ "description": "Parameter docs" }, "machine.time_pulse_us": { - "message": "tijd pulse ons", + "message": "tijd pulse us", "description": "(function name) Time a pulse on a pin." }, "machine.time_pulse_us.summary": { @@ -280,7 +280,7 @@ "description": "Parameter docs" }, "machine.time_pulse_us.param-name.timeout_us": { - "message": "time-out us", + "message": "timeout us", "description": "(parameter name) A microsecond timeout" }, "machine.time_pulse_us.param-doc.timeout_us": { @@ -304,7 +304,7 @@ "description": "Access a value from memory." }, "machine.mem.__getitem__.param-name.address": { - "message": "Adres", + "message": "adres", "description": "(parameter name) The memory address." }, "machine.mem.__getitem__.param-doc.address": { @@ -320,11 +320,11 @@ "description": "Set a value at the given address." }, "machine.mem.__setitem__.param-name.address": { - "message": "Adres", + "message": "adres", "description": "(parameter name) The memory address." }, "machine.mem.__setitem__.param-doc.address": { - "message": "Het geheugenadres.", + "message": "Het geheugen adres.", "description": "Parameter docs" }, "machine.mem.__setitem__.param-name.value": { @@ -528,7 +528,7 @@ "description": "Parameter docs" }, "math.fabs": { - "message": "prachtig", + "message": "fabs", "description": "(function name) Return the absolute value of ``x``." }, "math.fabs.summary": { @@ -544,7 +544,7 @@ "description": "Parameter docs" }, "math.floor": { - "message": "Vloer", + "message": "floor", "description": "(function name) Round a number towards negative infinity." }, "math.floor.summary": { @@ -600,7 +600,7 @@ "description": "Parameter docs" }, "math.isfinite": { - "message": "iseindig", + "message": "is eindig", "description": "(function name) Check if a value is finite." }, "math.isfinite.summary": { @@ -672,7 +672,7 @@ "description": "Parameter docs" }, "math.log": { - "message": "logboek", + "message": "log", "description": "(function name) Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." }, "math.log.summary": { @@ -872,11 +872,11 @@ "description": "Parameter docs" }, "microbit.run_every.param-name.min": { - "message": "min.", + "message": "min", "description": "(parameter name) Sets the minute mark for the scheduling." }, "microbit.run_every.param-doc.min": { - "message": "Stelt de minuutmarkering in voor de planning.", + "message": "Stelt de minuut markering in voor de planning.", "description": "Parameter docs" }, "microbit.run_every.param-name.ms": { @@ -888,7 +888,7 @@ "description": "Parameter docs" }, "microbit.run_every.param-name.s": { - "message": "sec", + "message": "s", "description": "(parameter name) Sets the second mark for the scheduling." }, "microbit.run_every.param-doc.s": { @@ -1000,7 +1000,7 @@ "description": "Parameter docs" }, "microbit.running_time": { - "message": "Looptijd", + "message": "looptijd", "description": "(function name) Get the running time of the board." }, "microbit.running_time.summary": { @@ -1168,7 +1168,7 @@ "description": "Set the period of the PWM signal being output to ``period`` in milliseconds." }, "microbit.MicroBitDigitalPin.set_analog_period.param-name.period": { - "message": "Periode", + "message": "periode", "description": "(parameter name) The period in milliseconds with a minimum valid value of 1ms." }, "microbit.MicroBitDigitalPin.set_analog_period.param-doc.period": { @@ -1184,7 +1184,7 @@ "description": "Set the period of the PWM signal being output to ``period`` in microseconds." }, "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-name.period": { - "message": "Periode", + "message": "periode", "description": "(parameter name) The period in microseconds with a minimum valid value of 256µs." }, "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-doc.period": { @@ -1252,7 +1252,7 @@ "description": "(field name) Pin with digital, analog and touch features." }, "microbit.pin1.summary": { - "message": "Pin met digitale, analoge en touch functies.", + "message": "Pin met digitale, analoge en aanraak functies.", "description": "Pin with digital, analog and touch features." }, "microbit.pin2": { @@ -1260,7 +1260,7 @@ "description": "(field name) Pin with digital, analog and touch features." }, "microbit.pin2.summary": { - "message": "Pin met digitale, analoge en touch functies.", + "message": "Pin met digitale, analoge en aanraak functies.", "description": "Pin with digital, analog and touch features." }, "microbit.pin3": { @@ -1268,7 +1268,7 @@ "description": "(field name) Pin with digital and analog features." }, "microbit.pin3.summary": { - "message": "Pin met digitale, analoge en touch functies.", + "message": "Pin met digitale, analoge en aanraak functies.", "description": "Pin with digital and analog features." }, "microbit.pin4": { @@ -1276,7 +1276,7 @@ "description": "(field name) Pin with digital and analog features." }, "microbit.pin4.summary": { - "message": "Pin met digitale, analoge en touch functies.", + "message": "Pin met digitale, analoge en aanraak functies.", "description": "Pin with digital and analog features." }, "microbit.pin5": { @@ -1300,7 +1300,7 @@ "description": "(field name) Pin with digital features." }, "microbit.pin7.summary": { - "message": "Vastmaken met digitale functies.", + "message": "Pin met digitale functies.", "description": "Pin with digital features." }, "microbit.pin8": { @@ -1308,7 +1308,7 @@ "description": "(field name) Pin with digital features." }, "microbit.pin8.summary": { - "message": "Vastmaken met digitale functies.", + "message": "Pin met digitale functies.", "description": "Pin with digital features." }, "microbit.pin9": { @@ -1324,7 +1324,7 @@ "description": "(field name) Pin with digital and analog features." }, "microbit.pin10.summary": { - "message": "Pin met digitale, analoge en touch functies.", + "message": "Pin met digitale, analoge en aanraak functies.", "description": "Pin with digital and analog features." }, "microbit.pin11": { @@ -1336,7 +1336,7 @@ "description": "Pin with digital features." }, "microbit.pin12": { - "message": "spelden12", + "message": "pin12", "description": "(field name) Pin with digital features." }, "microbit.pin12.summary": { @@ -1352,7 +1352,7 @@ "description": "Pin with digital features." }, "microbit.pin14": { - "message": "spin14", + "message": "pin14", "description": "(field name) Pin with digital features." }, "microbit.pin14.summary": { @@ -1384,7 +1384,7 @@ "description": "Pin with digital features." }, "microbit.pin20": { - "message": "spin20", + "message": "pin20", "description": "(field name) Pin with digital features." }, "microbit.pin20.summary": { @@ -1396,7 +1396,7 @@ "description": "(field name) A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." }, "microbit.pin_logo.summary": { - "message": "Een aanraakgevoelige logospeld op de voorkant van de micro:bit, die standaard is ingesteld op capacitieve aanraking modus.", + "message": "Een aanraak gevoelige logo pin op de voorkant van de micro:bit, die standaard is ingesteld op capacitieve aanraking modus.", "description": "A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." }, "microbit.pin_speaker": { @@ -1428,7 +1428,7 @@ "description": "(field name) Small heart image." }, "microbit.Image.HEART_SMALL.summary": { - "message": "Kleine hartbeeld.", + "message": "Klein hart afbeelding.", "description": "Small heart image." }, "microbit.Image.HAPPY": { @@ -1492,7 +1492,7 @@ "description": "(field name) Silly face image." }, "microbit.Image.SILLY.summary": { - "message": "Gek gezicht afbeelding.", + "message": "Gek gezichtsafbeelding.", "description": "Silly face image." }, "microbit.Image.FABULOUS": { @@ -1576,7 +1576,7 @@ "description": "Image with line pointing to 7 o'clock." }, "microbit.Image.CLOCK6": { - "message": "klok6", + "message": "klok 6", "description": "(field name) Image with line pointing to 6 o'clock." }, "microbit.Image.CLOCK6.summary": { @@ -1612,7 +1612,7 @@ "description": "(field name) Image with line pointing to 2 o'clock." }, "microbit.Image.CLOCK2.summary": { - "message": "Afbeelding met lijn die naar 2.00 uur wijst.", + "message": "Afbeelding met lijn die naar 2 uur wijst.", "description": "Image with line pointing to 2 o'clock." }, "microbit.Image.CLOCK1": { @@ -1620,7 +1620,7 @@ "description": "(field name) Image with line pointing to 1 o'clock." }, "microbit.Image.CLOCK1.summary": { - "message": "Afbeelding met lijn die naar 1.00 uur wijst.", + "message": "Afbeelding met lijn die naar 1 uur wijst.", "description": "Image with line pointing to 1 o'clock." }, "microbit.Image.ARROW_N": { @@ -1628,7 +1628,7 @@ "description": "(field name) Image of arrow pointing north." }, "microbit.Image.ARROW_N.summary": { - "message": "Afbeelding van pijltje richting het noorden.", + "message": "Afbeelding van pijl richting het noorden.", "description": "Image of arrow pointing north." }, "microbit.Image.ARROW_NE": { @@ -1636,7 +1636,7 @@ "description": "(field name) Image of arrow pointing north east." }, "microbit.Image.ARROW_NE.summary": { - "message": "Afbeelding van pijl richting het noord-oosten.", + "message": "Afbeelding van pijl richting het noord oosten.", "description": "Image of arrow pointing north east." }, "microbit.Image.ARROW_E": { @@ -1648,7 +1648,7 @@ "description": "Image of arrow pointing east." }, "microbit.Image.ARROW_SE": { - "message": "Pijl ZO", + "message": "pijl ZO", "description": "(field name) Image of arrow pointing south east." }, "microbit.Image.ARROW_SE.summary": { @@ -1656,7 +1656,7 @@ "description": "Image of arrow pointing south east." }, "microbit.Image.ARROW_S": { - "message": "Pijl s", + "message": "pijl z", "description": "(field name) Image of arrow pointing south." }, "microbit.Image.ARROW_S.summary": { @@ -1664,7 +1664,7 @@ "description": "Image of arrow pointing south." }, "microbit.Image.ARROW_SW": { - "message": "Pijl ZW", + "message": "pijl ZW", "description": "(field name) Image of arrow pointing south west." }, "microbit.Image.ARROW_SW.summary": { @@ -1672,7 +1672,7 @@ "description": "Image of arrow pointing south west." }, "microbit.Image.ARROW_W": { - "message": "Pijl w", + "message": "pijl w", "description": "(field name) Image of arrow pointing west." }, "microbit.Image.ARROW_W.summary": { @@ -1680,7 +1680,7 @@ "description": "Image of arrow pointing west." }, "microbit.Image.ARROW_NW": { - "message": "Pijl NW", + "message": "pijl NW", "description": "(field name) Image of arrow pointing north west." }, "microbit.Image.ARROW_NW.summary": { @@ -1708,7 +1708,7 @@ "description": "(field name) Alternate LEDs lit in a chessboard pattern." }, "microbit.Image.CHESSBOARD.summary": { - "message": "Alternatieve LED's verlichten in een schaakbord-patroon.", + "message": "Alternatieve LED's verlichten in een schaakbord patroon.", "description": "Alternate LEDs lit in a chessboard pattern." }, "microbit.Image.DIAMOND": { @@ -1784,7 +1784,7 @@ "description": "Pair of quavers note image." }, "microbit.Image.PITCHFORK": { - "message": "hooivork", + "message": "stemvork", "description": "(field name) Pitchfork image." }, "microbit.Image.PITCHFORK.summary": { @@ -1792,7 +1792,7 @@ "description": "Pitchfork image." }, "microbit.Image.XMAS": { - "message": "Kerstmis", + "message": "kerstmis", "description": "(field name) Christmas tree image." }, "microbit.Image.XMAS.summary": { @@ -1812,11 +1812,11 @@ "description": "(field name) Target image." }, "microbit.Image.TARGET.summary": { - "message": "Target image.", + "message": "Doel afbeelding.", "description": "Target image." }, "microbit.Image.TSHIRT": { - "message": "T-shirt", + "message": "tshirt", "description": "(field name) T-shirt image." }, "microbit.Image.TSHIRT.summary": { @@ -1828,7 +1828,7 @@ "description": "(field name) Rollerskate image." }, "microbit.Image.ROLLERSKATE.summary": { - "message": "Rollerskate afbeelding.", + "message": "Rolschaats afbeelding.", "description": "Rollerskate image." }, "microbit.Image.DUCK": { @@ -1864,7 +1864,7 @@ "description": "Butterfly image." }, "microbit.Image.STICKFIGURE": { - "message": "stickfigure", + "message": "stok figuur", "description": "(field name) Stick figure image." }, "microbit.Image.STICKFIGURE.summary": { @@ -1968,7 +1968,7 @@ "description": "Create an empty image with ``width`` columns and ``height`` rows." }, "microbit.Image.__init__-2.param-name.buffer": { - "message": "Buffer", + "message": "buffer", "description": "(parameter name) Optional array or bytes of ``width``×``height`` integers in range 0-9 to initialize the image" }, "microbit.Image.__init__-2.param-doc.buffer": { @@ -2028,7 +2028,7 @@ "description": "(parameter name) The column number" }, "microbit.Image.set_pixel.param-doc.x": { - "message": "Het kolomnummer", + "message": "Het kolom nummer", "description": "Parameter docs" }, "microbit.Image.set_pixel.param-name.y": { @@ -2036,7 +2036,7 @@ "description": "(parameter name) The row number" }, "microbit.Image.set_pixel.param-doc.y": { - "message": "Het rijnummer", + "message": "Het rij nummer", "description": "Parameter docs" }, "microbit.Image.get_pixel": { @@ -2052,7 +2052,7 @@ "description": "(parameter name) The column number" }, "microbit.Image.get_pixel.param-doc.x": { - "message": "Het kolomnummer", + "message": "Het kolom nummer", "description": "Parameter docs" }, "microbit.Image.get_pixel.param-name.y": { @@ -2060,7 +2060,7 @@ "description": "(parameter name) The row number" }, "microbit.Image.get_pixel.param-doc.y": { - "message": "Het rijnummer", + "message": "Het rij nummer", "description": "Parameter docs" }, "microbit.Image.shift_left": { @@ -2080,7 +2080,7 @@ "description": "Parameter docs" }, "microbit.Image.shift_right": { - "message": "Verschuif Rechts", + "message": "verschuif Rechts", "description": "(function name) Create a new image by shifting the picture right." }, "microbit.Image.shift_right.summary": { @@ -2112,7 +2112,7 @@ "description": "Parameter docs" }, "microbit.Image.shift_down": { - "message": "verschuiving omlaag", + "message": "verschuif omlaag", "description": "(function name) Create a new image by shifting the picture down." }, "microbit.Image.shift_down.summary": { @@ -2128,7 +2128,7 @@ "description": "Parameter docs" }, "microbit.Image.crop": { - "message": "bijsnijden", + "message": "bij snijden", "description": "(function name) Create a new image by cropping the picture." }, "microbit.Image.crop.summary": { @@ -2148,7 +2148,7 @@ "description": "(parameter name) The crop width" }, "microbit.Image.crop.param-doc.w": { - "message": "De bijsnijdbreedte", + "message": "De bij snij breedte", "description": "Parameter docs" }, "microbit.Image.crop.param-name.x": { @@ -2156,7 +2156,7 @@ "description": "(parameter name) The crop offset column" }, "microbit.Image.crop.param-doc.x": { - "message": "De crop offset kolom", + "message": "De kolom verschuiving", "description": "Parameter docs" }, "microbit.Image.crop.param-name.y": { @@ -2164,7 +2164,7 @@ "description": "(parameter name) The crop offset row" }, "microbit.Image.crop.param-doc.y": { - "message": "De crop offset kolom", + "message": "De rij verschuiving", "description": "Parameter docs" }, "microbit.Image.copy": { @@ -2220,7 +2220,7 @@ "description": "(parameter name) The source image" }, "microbit.Image.blit.param-doc.src": { - "message": "De bronafbeelding", + "message": "De bron afbeelding", "description": "Parameter docs" }, "microbit.Image.blit.param-name.w": { @@ -2236,7 +2236,7 @@ "description": "(parameter name) The starting column offset in the source image" }, "microbit.Image.blit.param-doc.x": { - "message": "De beginkolom offset in de bronafbeelding", + "message": "De begin kolom offset in de bron afbeelding", "description": "Parameter docs" }, "microbit.Image.blit.param-name.xdest": { @@ -2288,7 +2288,7 @@ "description": "Create a new image by adding the brightness values from the two\nimages for each pixel." }, "microbit.Image.__add__.param-name.other": { - "message": "Overige", + "message": "overige", "description": "(parameter name) The image to add." }, "microbit.Image.__add__.param-doc.other": { @@ -2300,11 +2300,11 @@ "description": "(function name) Create a new image by subtracting the brightness values of the\nother image from this image." }, "microbit.Image.__sub__.summary": { - "message": "Maak een nieuw beeld door de helderheidswaarden van de\nandere afbeelding van deze afbeelding af te trekken.", + "message": "Maak een nieuw beeld door de helderheidswaarden van de andere afbeelding van deze afbeelding af te trekken.", "description": "Create a new image by subtracting the brightness values of the\nother image from this image." }, "microbit.Image.__sub__.param-name.other": { - "message": "Overige", + "message": "overige", "description": "(parameter name) The image to subtract." }, "microbit.Image.__sub__.param-doc.other": { @@ -2572,7 +2572,7 @@ "description": "(function name) Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.summary": { - "message": "Een ingebouwde geluid, geluidseffect of aangepaste audioframes afspelen.", + "message": "Een ingebouwde geluid, geluids effect of aangepaste audio frames afspelen.", "description": "Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.param-name.pin": { @@ -2592,7 +2592,7 @@ "description": "Parameter docs" }, "microbit.audio.play.param-name.source": { - "message": "oorsprong", + "message": "bron", "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." }, "microbit.audio.play.param-doc.source": { @@ -2608,7 +2608,7 @@ "description": "Parameter docs" }, "microbit.audio.is_playing": { - "message": "speelt", + "message": "speelt af", "description": "(function name) Check whether a sound is playing." }, "microbit.audio.is_playing.summary": { @@ -2688,7 +2688,7 @@ "description": "Curve interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LOG": { - "message": "Vorm log", + "message": "vorm log", "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LOG.summary": { @@ -2800,7 +2800,7 @@ "description": "Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.param-name.duration": { - "message": "Duur", + "message": "duur", "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." }, "microbit.audio.SoundEffect.__init__.param-doc.duration": { @@ -2880,7 +2880,7 @@ "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." }, "microbit.audio.AudioFrame.copyfrom": { - "message": "kopieervan", + "message": "kopieer van", "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.summary": { @@ -2888,7 +2888,7 @@ "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.param-name.other": { - "message": "Overige", + "message": "overige", "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." }, "microbit.audio.AudioFrame.copyfrom.param-doc.other": { @@ -2952,7 +2952,7 @@ "description": "Get the magnetic field strength on the ``z`` axis." }, "microbit.compass.heading": { - "message": "Kop", + "message": "kop", "description": "(function name) Get the compass heading." }, "microbit.compass.heading.summary": { @@ -2968,7 +2968,7 @@ "description": "Get the magnitude of the magnetic field around the device." }, "microbit.display": { - "message": "scherm", + "message": "display", "description": "(module name) Show text, images and animations on the 5×5 LED display." }, "microbit.display.summary": { @@ -3092,7 +3092,7 @@ "description": "(function name) Scrolls a number or text on the LED display." }, "microbit.display.scroll.summary": { - "message": "Scrolt een nummer of tekst op het LED-scherm.", + "message": "Scrolt een nummer of tekst op het LED display", "description": "Scrolls a number or text on the LED display." }, "microbit.display.scroll.param-name.delay": { @@ -3140,7 +3140,7 @@ "description": "(function name) Turn on the LED display." }, "microbit.display.on.summary": { - "message": "Schakel het LED-scherm in.", + "message": "Schakel het LED display in.", "description": "Turn on the LED display." }, "microbit.display.off": { @@ -3148,7 +3148,7 @@ "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." }, "microbit.display.off.summary": { - "message": "Het uitschakelen van het LED-scherm (uitschakelen van het scherm geeft u de mogelijkheid om de GPIO-pinnen opnieuw te gebruiken voor andere doeleinden).", + "message": "Het uitschakelen van het LED display (uitschakelen van het scherm geeft je de mogelijkheid om de GPIO-pinnen opnieuw te gebruiken voor andere doeleinden).", "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." }, "microbit.display.is_on": { @@ -3160,11 +3160,11 @@ "description": "Check whether the LED display is enabled." }, "microbit.display.read_light_level": { - "message": "Toon licht niveau", + "message": "lees licht niveau", "description": "(function name) Read the light level." }, "microbit.display.read_light_level.summary": { - "message": "Lees het lichtniveau.", + "message": "Lees het licht niveau.", "description": "Read the light level." }, "microbit.i2c": { @@ -3240,7 +3240,7 @@ "description": "Parameter docs" }, "microbit.i2c.read.param-name.repeat": { - "message": "Herhaal", + "message": "herhaal", "description": "(parameter name) If ``True``, no stop bit will be sent" }, "microbit.i2c.read.param-doc.repeat": { @@ -3272,7 +3272,7 @@ "description": "Parameter docs" }, "microbit.i2c.write.param-name.repeat": { - "message": "Herhaal", + "message": "herhaal", "description": "(parameter name) If ``True``, no stop bit will be sent" }, "microbit.i2c.write.param-doc.repeat": { @@ -3336,7 +3336,7 @@ "description": "Get the sound event history as a tuple." }, "microbit.microphone.set_threshold": { - "message": "Stel drempelwaarde in", + "message": "stel drempelwaarde in", "description": "(function name) Set the threshold for a sound event." }, "microbit.microphone.set_threshold.summary": { @@ -3420,7 +3420,7 @@ "description": "(parameter name) The width in bits of each transfer. Currently only ``bits=8`` is supported. However, this may change in the future." }, "microbit.spi.init.param-doc.bits": { - "message": "De breedte in stukjes van elke overdracht. Momenteel wordt alleen {{bits=8}} ondersteund. Dit kan echter veranderen in de toekomst.", + "message": "De breedte in bits van elke overdracht. Momenteel wordt alleen {{bits=8}} ondersteund. Dit kan echter veranderen in de toekomst.", "description": "Parameter docs" }, "microbit.spi.init.param-name.miso": { @@ -3444,7 +3444,7 @@ "description": "(parameter name) mosi pin (default 15)" }, "microbit.spi.init.param-doc.mosi": { - "message": "{} pin (standaard 15)", + "message": "mosi pin (standaard 15)", "description": "Parameter docs" }, "microbit.spi.init.param-name.sclk": { @@ -3480,7 +3480,7 @@ "description": "Write bytes to the bus." }, "microbit.spi.write.param-name.buffer": { - "message": "Buffer", + "message": "buffer", "description": "(parameter name) A buffer to read data from." }, "microbit.spi.write.param-doc.buffer": { @@ -3644,7 +3644,7 @@ "description": "(function name) Read a line, ending in a newline character." }, "microbit.uart.readline.summary": { - "message": "Lees een regel, eindigend in een nieuwregel.", + "message": "Lees een regel, eindigend in een nieuw karakter regel.", "description": "Read a line, ending in a newline character." }, "microbit.uart.write": { @@ -3664,11 +3664,11 @@ "description": "Parameter docs" }, "micropython": { - "message": "microPython", + "message": "micropython", "description": "(module name) MicroPython internals." }, "micropython.summary": { - "message": "MicroPython internalen.", + "message": "MicroPython intern.", "description": "MicroPython internals." }, "micropython.const": { @@ -3696,11 +3696,11 @@ "description": "Get the current optimisation level for the compilation of scripts." }, "micropython.opt_level-2": { - "message": "Kies niveau", + "message": "opt niveau", "description": "(function name) Sets the optimisation level for subsequent compilation of scripts." }, "micropython.opt_level-2.summary": { - "message": "Stelt het optimalisatieniveau in voor de latere compilatie van scripts.", + "message": "Stelt het optimalisatie niveau in voor de latere compilatie van scripts.", "description": "Sets the optimisation level for subsequent compilation of scripts." }, "micropython.opt_level-2.param-name.level": { @@ -3708,7 +3708,7 @@ "description": "(parameter name) An integer optimisation level." }, "micropython.opt_level-2.param-doc.level": { - "message": "Een integer optimaliseringsniveau.", + "message": "Een integer optimaliserings niveau.", "description": "Parameter docs" }, "micropython.mem_info": { @@ -3744,7 +3744,7 @@ "description": "Parameter docs" }, "micropython.stack_use": { - "message": "Stapel gebruik", + "message": "stapel gebruik", "description": "(function name) Return an integer representing the current amount of stack that is being\nused." }, "micropython.stack_use.summary": { @@ -3852,7 +3852,7 @@ "description": "(field name) Melody: a boogie-woogie 12-bar blues walking bass." }, "music.BLUES.summary": { - "message": "Melodie: een boogie-woogie 12-bar wandelbas.", + "message": "Melodie: een boogie-woogie 12-bar blues wandel bas.", "description": "Melody: a boogie-woogie 12-bar blues walking bass." }, "music.BIRTHDAY": { @@ -4240,7 +4240,7 @@ "description": "List files." }, "os.remove": { - "message": "Verwijder", + "message": "verwijder", "description": "(function name) Remove (delete) a file." }, "os.remove.summary": { @@ -4248,7 +4248,7 @@ "description": "Remove (delete) a file." }, "os.remove.param-name.filename": { - "message": "bestandsnaam", + "message": "bestands naam", "description": "(parameter name) The file to delete." }, "os.remove.param-doc.filename": { @@ -4264,7 +4264,7 @@ "description": "Returns the size of a file." }, "os.size.param-name.filename": { - "message": "bestandsnaam", + "message": "bestands naam", "description": "(parameter name) The file" }, "os.size.param-doc.filename": { @@ -4376,7 +4376,7 @@ "description": "Configures the radio." }, "radio.config.param-name.address": { - "message": "Adres", + "message": "adres", "description": "(parameter name) (default=0x75626974) an arbitrary name, expressed as a 32-bit address, that's used to filter incoming packets at the hardware level, keeping only those that match the address you set.\nThe default used by other micro:bit related platforms is the default setting used here." }, "radio.config.param-doc.address": { @@ -4392,7 +4392,7 @@ "description": "Parameter docs" }, "radio.config.param-name.data_rate": { - "message": "Gegevenssnelheid", + "message": "Gegevens snelheid", "description": "(parameter name) (default=``radio.RATE_1MBIT``) indicates the speed at which data throughput takes place.\nCan be one of the following constants defined in the ``radio`` module: ``RATE_250KBIT``, ``RATE_1MBIT`` or ``RATE_2MBIT``." }, "radio.config.param-doc.data_rate": { @@ -4472,7 +4472,7 @@ "description": "Copy the next incoming message on the message queue into a buffer." }, "radio.receive_bytes_into.param-name.buffer": { - "message": "Buffer", + "message": "buffer", "description": "(parameter name) The target buffer. The message is truncated if larger than the buffer." }, "radio.receive_bytes_into.param-doc.buffer": { @@ -4536,7 +4536,7 @@ "description": "Parameter docs" }, "random.seed": { - "message": "zaad", + "message": "seed", "description": "(function name) Initialize the random number generator." }, "random.seed.summary": { @@ -4688,7 +4688,7 @@ "description": "Translate English words to phonemes." }, "speech.translate.param-name.words": { - "message": "Woorden", + "message": "woorden", "description": "(parameter name) A string of English words." }, "speech.translate.param-doc.words": { @@ -4696,7 +4696,7 @@ "description": "Parameter docs" }, "speech.pronounce": { - "message": "Uitspreken", + "message": "uitspreken", "description": "(function name) Pronounce phonemes." }, "speech.pronounce.summary": { @@ -4800,7 +4800,7 @@ "description": "Parameter docs" }, "speech.say.param-name.words": { - "message": "Woorden", + "message": "woorden", "description": "(parameter name) The string of words to say." }, "speech.say.param-doc.words": { @@ -4888,7 +4888,7 @@ "description": "Parameter docs" }, "struct.pack": { - "message": "pakket", + "message": "inpakken", "description": "(function name) Pack values according to a format string." }, "struct.pack.summary": { @@ -4908,7 +4908,7 @@ "description": "(parameter name) The format string." }, "struct.pack.param-doc.fmt": { - "message": "De formaattekenreeks.", + "message": "De formaat tekenreeks.", "description": "Parameter docs" }, "struct.pack.param-name.v1": { @@ -4936,7 +4936,7 @@ "description": "Parameter docs" }, "struct.pack_into.param-name.buffer": { - "message": "Buffer", + "message": "buffer", "description": "(parameter name) The target buffer to write into." }, "struct.pack_into.param-doc.buffer": { @@ -4948,7 +4948,7 @@ "description": "(parameter name) The format string." }, "struct.pack_into.param-doc.fmt": { - "message": "De formaattekenreeks.", + "message": "De formaat tekenreeks.", "description": "Parameter docs" }, "struct.pack_into.param-name.offset": { @@ -4988,7 +4988,7 @@ "description": "(parameter name) The format string." }, "struct.unpack.param-doc.fmt": { - "message": "De formaattekenreeks.", + "message": "De formaat tekenreeks.", "description": "Parameter docs" }, "struct.unpack_from": { @@ -5000,7 +5000,7 @@ "description": "Unpack data from a buffer according to a format string." }, "struct.unpack_from.param-name.buffer": { - "message": "Buffer", + "message": "buffer", "description": "(parameter name) The source buffer to read from." }, "struct.unpack_from.param-doc.buffer": { @@ -5012,7 +5012,7 @@ "description": "(parameter name) The format string." }, "struct.unpack_from.param-doc.fmt": { - "message": "De formaattekenreeks.", + "message": "De formaat tekenreeks.", "description": "Parameter docs" }, "struct.unpack_from.param-name.offset": { @@ -5032,7 +5032,7 @@ "description": "System specific functions" }, "sys.exit": { - "message": "Afsluiten", + "message": "afsluiten", "description": "(function name) Terminate current program with a given exit code." }, "sys.exit.summary": { @@ -5072,7 +5072,7 @@ "description": "A mutable list of arguments the current program was started with." }, "sys.byteorder": { - "message": "byte-volgorde", + "message": "byte volgorde", "description": "(field name) The byte order of the system (``\"little\"`` or ``\"big\"``)." }, "sys.byteorder.summary": { @@ -5084,7 +5084,7 @@ "description": "(field name) Object with information about the current Python implementation." }, "sys.implementation.summary": { - "message": "Object met informatie over de huidige Python-implementatie.", + "message": "Object met informatie over de huidige Python implementatie.", "description": "Object with information about the current Python implementation." }, "sys.maxsize": { @@ -5096,7 +5096,7 @@ "description": "\nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." }, "sys.modules": { - "message": "Modules", + "message": "modules", "description": "(field name) Dictionary of loaded modules. " }, "sys.modules.summary": { @@ -5128,7 +5128,7 @@ "description": "Python language version that this implementation conforms to, as a string." }, "sys.version_info": { - "message": "Versie-informatie", + "message": "versie informatie", "description": "(field name) Python language version that this implementation conforms to, as a tuple of ints." }, "sys.version_info.summary": { @@ -5136,7 +5136,7 @@ "description": "Python language version that this implementation conforms to, as a tuple of ints." }, "time": { - "message": "Tijd", + "message": "tijd", "description": "(module name) Measure time and add delays to programs." }, "time.summary": { @@ -5160,7 +5160,7 @@ "description": "Parameter docs" }, "time.sleep_ms": { - "message": "Slaap ms", + "message": "slaap ms", "description": "(function name) Delay for given number of milliseconds." }, "time.sleep_ms.summary": { @@ -5176,7 +5176,7 @@ "description": "Parameter docs" }, "time.sleep_us": { - "message": "Slaap us", + "message": "slaap us", "description": "(function name) Delay for given number of microseconds." }, "time.sleep_us.summary": { diff --git a/lang/nl/typeshed/stdlib/gc.pyi b/lang/nl/typeshed/stdlib/gc.pyi index 3de230a..b306502 100644 --- a/lang/nl/typeshed/stdlib/gc.pyi +++ b/lang/nl/typeshed/stdlib/gc.pyi @@ -2,7 +2,7 @@ from typing import overload def enable() -> None: - """Automatische afvalcollectie inschakelen. (ingeschakeld)""" + """Automatische afvalcollectie inschakelen. (inschakelen)""" ... def disable() -> None: @@ -33,7 +33,7 @@ This function is MicroPython extension.""" @overload def threshold() -> int: - """Vraag de extra GC-toewijzingsdrempel op. (drempelwaarde) + """Vraag de extra GC toewijzingsdrempel op. (drempelwaarde) :return: The GC allocation threshold. @@ -44,7 +44,7 @@ implementations, its signature and semantics are different.""" @overload def threshold(amount: int) -> None: - """Stel de extra GC-toewijzingsdrempel in. (drempelwaarde) + """Stel de extra GC toewijzingsdrempel in. (drempelwaarde) Normally, a collection is triggered only when a new allocation cannot be satisfied, i.e. on an out-of-memory (OOM) condition. @@ -64,5 +64,5 @@ This function is a MicroPython extension. CPython has a similar function - ``set_threshold()``, but due to different GC implementations, its signature and semantics are different. -:param amount: (bedrag) Het aantal bytes waarna een garbagecollection moet worden geactiveerd.""" +:param amount: (bedrag) Het aantal bytes waarna een garbage collectie moet worden geactiveerd.""" ... \ No newline at end of file diff --git a/lang/nl/typeshed/stdlib/log.pyi b/lang/nl/typeshed/stdlib/log.pyi index 7533169..b204500 100644 --- a/lang/nl/typeshed/stdlib/log.pyi +++ b/lang/nl/typeshed/stdlib/log.pyi @@ -1,4 +1,4 @@ -"""Log gegevens in op je micro:bit V2. (logboek)""" +"""Log gegevens in op je micro:bit V2.""" from typing import Literal, Mapping, Optional, Union, overload MILLISECONDS = 1 """Milliseconden tijdstempel formaat. (milliseconden)""" @@ -79,11 +79,11 @@ and “fast” invalidates the data without removing it. ... def set_mirroring(serial: bool): - """Configureer het spiegelen van de data logging activiteit naar de seriële uitgang. (kies mirroring) + """Configureer het spiegelen van de data logging activiteit naar de seriële uitgang. (stel spiegelen in) Example: ``log.set_mirroring(True)`` Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. -:param serial: (serieel) ``True`` maakt het spiegelen van gegevens naar de seriële uitgang mogelijk.""" +:param serial: (serieel) ``True`` maakt het spiegelen van gegevens naar de seriële uitvoer mogelijk.""" ... \ No newline at end of file diff --git a/lang/nl/typeshed/stdlib/machine.pyi b/lang/nl/typeshed/stdlib/machine.pyi index df8bb57..d5d2568 100644 --- a/lang/nl/typeshed/stdlib/machine.pyi +++ b/lang/nl/typeshed/stdlib/machine.pyi @@ -44,7 +44,7 @@ Example: ``machine.enable_irq(interrupt_state)`` ... def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int: - """Time een puls op een pin. (tijd pulse ons) + """Time een puls op een pin. (tijd pulse us) Example: ``time_pulse_us(pin0, 1)`` @@ -56,7 +56,7 @@ starts straight away. :param pin: De pin om te gebruiken :param pulse_level: (puls niveau) 0 om een lage puls te tikken of 1 om een hoge puls te tikken -:param timeout_us: (time-out us) Een microseconde time-out +:param timeout_us: Een microseconde time-out :return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end""" ... @@ -66,14 +66,14 @@ class mem: def __getitem__(self, address: int) -> int: """Toegang tot een waarde uit het geheugen. -:param address: (Adres) Het geheugenadres. +:param address: (adres) Het geheugenadres. :return: The value at that address as an integer.""" ... def __setitem__(self, address: int, value: int) -> None: """Stel een waarde in op het opgegeven adres. -:param address: (Adres) Het geheugenadres. +:param address: (adres) Het geheugen adres. :param value: (waarde) De integerwaarde die moet worden ingesteld.""" ... mem8: mem diff --git a/lang/nl/typeshed/stdlib/math.pyi b/lang/nl/typeshed/stdlib/math.pyi index 871f5c5..f3eba9f 100644 --- a/lang/nl/typeshed/stdlib/math.pyi +++ b/lang/nl/typeshed/stdlib/math.pyi @@ -85,7 +85,7 @@ Example: ``math.exp(1)`` ... def fabs(x: float) -> float: - """Geeft de absolute waarde van ``x``. (prachtig) + """Geeft de absolute waarde van ``x``. Example: ``math.fabs(-0.1)`` @@ -94,7 +94,7 @@ Example: ``math.fabs(-0.1)`` ... def floor(x: float) -> int: - """Rond een getal af op een negatief oneindig. (Vloer) + """Rond een getal af op een negatief oneindig. Example: ``math.floor(0.9)`` @@ -125,7 +125,7 @@ the relation ``0.5 <= abs(m) < 1`` holds. ... def isfinite(x: float) -> bool: - """Controleer of een waarde eindig is. (iseindig) + """Controleer of een waarde eindig is. (is eindig) Example: ``math.isfinite(float('inf'))`` @@ -162,7 +162,7 @@ Example: ``math.ldexp(0.5, 2)`` ... def log(x: float, base: float=e) -> float: - """Bereken het logaritme van ``x`` naar de opgegeven basis (standaard is het natuurlijke logalgoritme). (logboek) + """Bereken het logaritme van ``x`` naar de opgegeven basis (standaard is het natuurlijke logalgoritme). Example: ``math.log(math.e)`` diff --git a/lang/nl/typeshed/stdlib/microbit/__init__.pyi b/lang/nl/typeshed/stdlib/microbit/__init__.pyi index fafd362..16d24f8 100644 --- a/lang/nl/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/nl/typeshed/stdlib/microbit/__init__.pyi @@ -39,8 +39,8 @@ function. To avoid this you can catch exceptions with ``try/except``. :param callback: Functie om op te roepen bij de meegeleverde interval. Weglaten wanneer je als decorator gebruikt. :param days: (dagen) Stelt de dag markering in voor de planning. :param h: (uur) Stelt de urenmarkering in voor de planning. -:param min: (min.) Stelt de minuutmarkering in voor de planning. -:param s: (sec) Stelt de seconde markering in voor de planning. +:param min: Stelt de minuut markering in voor de planning. +:param s: Stelt de seconde markering in voor de planning. :param ms: Stelt de milliseconde markering in voor de planning.""" def panic(n: int) -> None: @@ -108,7 +108,7 @@ One second is 1000 milliseconds, so:: will pause the execution for one second.""" def running_time() -> int: - """Bekijk de looptijd van het bord. (Looptijd) + """Bekijk de looptijd van het bord. (looptijd) :return: The number of milliseconds since the board was switched on or restarted.""" @@ -224,14 +224,14 @@ Example: ``pin0.write_analog(254)`` Example: ``pin0.set_analog_period(10)`` -:param period: (Periode) De periode in milliseconden met een minimale geldige waarde van 1 ms.""" +:param period: (periode) De periode in milliseconden met een minimale geldige waarde van 1 ms.""" def set_analog_period_microseconds(self, period: int) -> None: """Stel de periode in van het PWM-signaal dat uitgevoerd wordt naar ``period`` in milliseconden. (microseconden analoge periode instellen) Example: ``pin0.set_analog_period_microseconds(512)`` -:param period: (Periode) De periode in microseconden met een minimumwaarde van 256 mres.""" +:param period: (periode) De periode in microseconden met een minimumwaarde van 256 mres.""" class MicroBitAnalogDigitalPin(MicroBitDigitalPin): """Een pin met analoge en digitale functies.""" @@ -284,33 +284,33 @@ The default touch mode for the pins on the edge connector is pin0: MicroBitTouchPin """Pin met digitale, analoge en touch functies.""" pin1: MicroBitTouchPin -"""Pin met digitale, analoge en touch functies.""" +"""Pin met digitale, analoge en aanraak functies.""" pin2: MicroBitTouchPin -"""Pin met digitale, analoge en touch functies.""" +"""Pin met digitale, analoge en aanraak functies.""" pin3: MicroBitAnalogDigitalPin -"""Pin met digitale, analoge en touch functies.""" +"""Pin met digitale, analoge en aanraak functies.""" pin4: MicroBitAnalogDigitalPin -"""Pin met digitale, analoge en touch functies.""" +"""Pin met digitale, analoge en aanraak functies.""" pin5: MicroBitDigitalPin """Pin met digitale, analoge en aanraak functies.""" pin6: MicroBitDigitalPin """Pin met digitale functies.""" pin7: MicroBitDigitalPin -"""Vastmaken met digitale functies.""" +"""Pin met digitale functies.""" pin8: MicroBitDigitalPin -"""Vastmaken met digitale functies.""" +"""Pin met digitale functies.""" pin9: MicroBitDigitalPin """Pin met digitale functies.""" pin10: MicroBitAnalogDigitalPin -"""Pin met digitale, analoge en touch functies.""" +"""Pin met digitale, analoge en aanraak functies.""" pin11: MicroBitDigitalPin """Pin met digitale, analoge en aanraak functies.""" pin12: MicroBitDigitalPin -"""Pin met digitale, analoge en aanraak functies. (spelden12)""" +"""Pin met digitale, analoge en aanraak functies.""" pin13: MicroBitDigitalPin """Pin met digitale, analoge en aanraak functies.""" pin14: MicroBitDigitalPin -"""Pin met digitale, analoge en aanraak functies. (spin14)""" +"""Pin met digitale, analoge en aanraak functies.""" pin15: MicroBitDigitalPin """Pin met digitale, analoge en aanraak functies.""" pin16: MicroBitDigitalPin @@ -318,9 +318,9 @@ pin16: MicroBitDigitalPin pin19: MicroBitDigitalPin """Pin met digitale, analoge en aanraak functies.""" pin20: MicroBitDigitalPin -"""Pin met digitale, analoge en aanraak functies. (spin20)""" +"""Pin met digitale, analoge en aanraak functies.""" pin_logo: MicroBitTouchPin -"""Een aanraakgevoelige logospeld op de voorkant van de micro:bit, die standaard is ingesteld op capacitieve aanraking modus.""" +"""Een aanraak gevoelige logo pin op de voorkant van de micro:bit, die standaard is ingesteld op capacitieve aanraking modus.""" pin_speaker: MicroBitAnalogDigitalPin """Een pin om de micro:bit luidspreker aan te spreken. (pin luidspreker) @@ -336,7 +336,7 @@ Given an image object it's possible to display it via the ``display`` API:: HEART: Image """Hart afbeelding (hart)""" HEART_SMALL: Image - """Kleine hartbeeld. (hart klein)""" + """Klein hart afbeelding. (hart klein)""" HAPPY: Image """Blije gezichtsafbeelding. (blij)""" SMILE: Image @@ -352,7 +352,7 @@ Given an image object it's possible to display it via the ``display`` API:: SURPRISED: Image """Verraste gezichtsafbeelding. (verrast)""" SILLY: Image - """Gek gezicht afbeelding. (gek)""" + """Gek gezichtsafbeelding. (gek)""" FABULOUS: Image """Zonnebril gezichtsafbeelding. (fantastisch)""" MEH: Image @@ -374,7 +374,7 @@ Given an image object it's possible to display it via the ``display`` API:: CLOCK7: Image """Afbeelding met lijn die naar 7.00 uur wijst. (klok 7)""" CLOCK6: Image - """Afbeelding met lijn die naar 6.00 uur wijst. (klok6)""" + """Afbeelding met lijn die naar 6.00 uur wijst. (klok 6)""" CLOCK5: Image """Afbeelding met lijn die naar 5.00 uur wijst. (klok 5)""" CLOCK4: Image @@ -382,31 +382,31 @@ Given an image object it's possible to display it via the ``display`` API:: CLOCK3: Image """Afbeelding met lijn die naar 3.00 uur wijst. (klok 3)""" CLOCK2: Image - """Afbeelding met lijn die naar 2.00 uur wijst. (klok2)""" + """Afbeelding met lijn die naar 2 uur wijst. (klok2)""" CLOCK1: Image - """Afbeelding met lijn die naar 1.00 uur wijst. (klok1)""" + """Afbeelding met lijn die naar 1 uur wijst. (klok1)""" ARROW_N: Image - """Afbeelding van pijltje richting het noorden. (pijl n)""" + """Afbeelding van pijl richting het noorden. (pijl n)""" ARROW_NE: Image - """Afbeelding van pijl richting het noord-oosten. (pijl NO)""" + """Afbeelding van pijl richting het noord oosten. (pijl NO)""" ARROW_E: Image """Afbeelding van pijl richting het oosten. (pijl e)""" ARROW_SE: Image - """Afbeelding van pijl richting het zuid-oosten. (Pijl ZO)""" + """Afbeelding van pijl richting het zuid-oosten. (pijl ZO)""" ARROW_S: Image - """Afbeelding van pijltje richting het zuiden. (Pijl s)""" + """Afbeelding van pijltje richting het zuiden. (pijl z)""" ARROW_SW: Image - """Afbeelding van pijl richting het zuid-westen. (Pijl ZW)""" + """Afbeelding van pijl richting het zuid-westen. (pijl ZW)""" ARROW_W: Image - """Afbeelding van pijl richting het westen. (Pijl w)""" + """Afbeelding van pijl richting het westen. (pijl w)""" ARROW_NW: Image - """Afbeelding van pijl richting het noord-westen. (Pijl NW)""" + """Afbeelding van pijl richting het noord-westen. (pijl NW)""" TRIANGLE: Image """Afbeelding van een driehoek die naar boven wijst. (driehoek)""" TRIANGLE_LEFT: Image """Afbeelding van een driehoek in de linker hoek. (Driehoek links)""" CHESSBOARD: Image - """Alternatieve LED's verlichten in een schaakbord-patroon. (schaakbord)""" + """Alternatieve LED's verlichten in een schaakbord patroon. (schaakbord)""" DIAMOND: Image """Diamanten afbeelding. (diamant)""" DIAMOND_SMALL: Image @@ -426,17 +426,17 @@ Given an image object it's possible to display it via the ``display`` API:: MUSIC_QUAVERS: Image """Koppel van kwartnoten afbeelding. (muziek kwartnoten)""" PITCHFORK: Image - """Stemvork afbeelding. (hooivork)""" + """Stemvork afbeelding. (stemvork)""" XMAS: Image - """Kerstboom afbeelding. (Kerstmis)""" + """Kerstboom afbeelding. (kerstmis)""" PACMAN: Image """Pac-Man arcade karakterafbeelding. (Pacman)""" TARGET: Image - """Target image. (doel)""" + """Doel afbeelding. (doel)""" TSHIRT: Image - """T-shirt afbeelding. (T-shirt)""" + """T-shirt afbeelding.""" ROLLERSKATE: Image - """Rollerskate afbeelding. (rolschaatsen)""" + """Rolschaats afbeelding. (rolschaatsen)""" DUCK: Image """Eend afbeelding. (eend)""" HOUSE: Image @@ -446,7 +446,7 @@ Given an image object it's possible to display it via the ``display`` API:: BUTTERFLY: Image """Vlinder afbeelding. (vlinder)""" STICKFIGURE: Image - """Stok figuur afbeelding.""" + """Stok figuur afbeelding. (stok figuur)""" GHOST: Image """Spook afbeelding. (spook)""" SWORD: Image @@ -491,7 +491,7 @@ colon. It's also possible to use newlines (\\n) insead of the colons. :param width: (breedte) Optionele breedte van de afbeelding :param height: (hoogte) Optionele hoogte van de afbeelding -:param buffer: (Buffer) Optionele array of bytes van ``width``×``height`` integers in bereik 0-9 om de afbeelding te initialiseren +:param buffer: Optionele array of bytes van ``width``×``height`` integers in bereik 0-9 om de afbeelding te initialiseren Examples:: @@ -518,8 +518,8 @@ These create 2 x 2 pixel images at full brightness.""" Example: ``my_image.set_pixel(0, 0, 9)`` -:param x: (х) Het kolomnummer -:param y: Het rijnummer +:param x: (х) Het kolom nummer +:param y: Het rij nummer :param value: (waarde) De helderheid als een geheel getal tussen 0 (donker) en 9 (helder) This method will raise an exception when called on any of the built-in @@ -531,8 +531,8 @@ read-only images, like ``Image.HEART``.""" Example: ``my_image.get_pixel(0, 0)`` -:param x: (х) Het kolomnummer -:param y: Het rijnummer +:param x: (х) Het kolom nummer +:param y: Het rij nummer :return: The brightness as an integer between 0 and 9.""" ... @@ -546,7 +546,7 @@ Example: ``Image.HEART_SMALL.shift_left(1)`` ... def shift_right(self, n: int) -> Image: - """Maak een nieuwe afbeelding door de afbeelding rechts te verschuiven. (Verschuif Rechts) + """Maak een nieuwe afbeelding door de afbeelding rechts te verschuiven. (verschuif Rechts) Example: ``Image.HEART_SMALL.shift_right(1)`` @@ -564,7 +564,7 @@ Example: ``Image.HEART_SMALL.shift_up(1)`` ... def shift_down(self, n: int) -> Image: - """Maak een nieuwe afbeelding door de afbeelding omlaag te verschuiven. (verschuiving omlaag) + """Maak een nieuwe afbeelding door de afbeelding omlaag te verschuiven. (verschuif omlaag) Example: ``Image.HEART_SMALL.shift_down(1)`` @@ -573,13 +573,13 @@ Example: ``Image.HEART_SMALL.shift_down(1)`` ... def crop(self, x: int, y: int, w: int, h: int) -> Image: - """Maak een nieuwe afbeelding door de afbeelding bij te snijden. (bijsnijden) + """Maak een nieuwe afbeelding door de afbeelding bij te snijden. (bij snijden) Example: ``Image.HEART.crop(1, 1, 3, 3)`` -:param x: (х) De crop offset kolom -:param y: De crop offset kolom -:param w: De bijsnijdbreedte +:param x: (х) De kolom verschuiving +:param y: De rij verschuiving +:param w: De bij snij breedte :param h: (uur) Hoogte bijsnijden :return: The new image""" ... @@ -617,8 +617,8 @@ read-only images, like ``Image.HEART``.""" Example: ``my_image.blit(Image.HEART, 1, 1, 3, 3, 1, 1)`` -:param src: De bronafbeelding -:param x: (х) De beginkolom offset in de bronafbeelding +:param src: De bron afbeelding +:param x: (х) De begin kolom offset in de bron afbeelding :param y: De beginkolom offset in de bronafbeelding :param w: Het aantal te kopiëren kolommen :param h: (uur) Het aantal te kopiëren rijen @@ -652,16 +652,15 @@ afbeeldingen voor elke pixel toe te voegen. (toevoegen) Example: ``Image.HEART + Image.HAPPY`` -:param other: (Overige) De afbeelding om toe te voegen.""" +:param other: (overige) De afbeelding om toe te voegen.""" ... def __sub__(self, other: Image) -> Image: - """Maak een nieuw beeld door de helderheidswaarden van de -andere afbeelding van deze afbeelding af te trekken. + """Maak een nieuw beeld door de helderheidswaarden van de andere afbeelding van deze afbeelding af te trekken. Example: ``Image.HEART - Image.HEART_SMALL`` -:param other: (Overige) De afbeelding om af te trekken.""" +:param other: (overige) De afbeelding om af te trekken.""" ... def __mul__(self, n: float) -> Image: diff --git a/lang/nl/typeshed/stdlib/microbit/audio.pyi b/lang/nl/typeshed/stdlib/microbit/audio.pyi index 57cdc5e..4a2444d 100644 --- a/lang/nl/typeshed/stdlib/microbit/audio.pyi +++ b/lang/nl/typeshed/stdlib/microbit/audio.pyi @@ -3,17 +3,17 @@ from ..microbit import MicroBitDigitalPin, Sound, pin0 from typing import ClassVar, Iterable, Union def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: - """Een ingebouwde geluid, geluidseffect of aangepaste audioframes afspelen. (afspelen) + """Een ingebouwde geluid, geluids effect of aangepaste audio frames afspelen. (afspelen) Example: ``audio.play(Sound.GIGGLE)`` -:param source: (oorsprong) Een ingebouwde ``Sound`` zoals ``Sound.GIGGLE``, een ``SoundEffect`` of voorbeeldgegevens als een iteratie van ``AudioFrame`` objecten. +:param source: (bron) Een ingebouwde ``Sound`` zoals ``Sound.GIGGLE``, een ``SoundEffect`` of voorbeeldgegevens als een iteratie van ``AudioFrame`` objecten. :param wait: (wacht) Als ``wait`` ``True``is, wordt deze functie geblokkeerd totdat het geluid is voltooid. :param pin: Een optioneel argument om de uitvoerpin op te geven kan worden gebruikt om de standaard van ``pin0``te overschrijven. Als we geen geluid willen afspelen, kunnen we ``pin=None`` gebruiken. :param return_pin: (retourneer pin) Specificeert een differentiële rand connector pin om verbinding te maken met een externe luidspreker in plaats van de grond. Dit wordt genegeerd voor de **V2** herziening.""" def is_playing() -> bool: - """Controleer of een geluid wordt gespeeld. (speelt) + """Controleer of een geluid wordt gespeeld. (speelt af) Example: ``audio.is_playing()`` @@ -43,7 +43,7 @@ class SoundEffect: SHAPE_CURVE: ClassVar[int] """Curve interpolatie optie gebruikt voor de ``shape`` parameter. (vorm curve)""" SHAPE_LOG: ClassVar[int] - """Logaritmische interpolatie optie gebruikt voor de ``shape`` parameter. (Vorm log)""" + """Logaritmische interpolatie optie gebruikt voor de ``shape`` parameter. (vorm log)""" FX_NONE: ClassVar[int] """Geen effectoptie gebruikt voor de ``fx`` parameter. (geen fx)""" FX_TREMOLO: ClassVar[int] @@ -81,7 +81,7 @@ and then change its attributes ``my_effect.duration = 500``. :param freq_start: (frequentie start) Start frequentie in Hertz (Hz), een getal tussen ``0`` en ``9999``. :param freq_end: (frequentie einde) Eind frequentie in Hertz (Hz), een getal tussen ``0`` en ``9999``. -:param duration: (Duur) Duur van het geluid in milliseconden, een getal tussen ``0`` en ``9999``. +:param duration: (duur) Duur van het geluid in milliseconden, een getal tussen ``0`` en ``9999``. :param vol_start: Startvolumewaarde, een getal tussen ``0`` en ``255``. :param vol_end: (vol einde) Eindvolumewaarde, een getal tussen ``0`` en ``255``. :param waveform: (golfvorm) Type golfvorm, één van deze waarden: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (willekeurig gegenereerde geluid). @@ -108,11 +108,11 @@ Example:: frame[i] = 252 - i * 8""" def copyfrom(self, other: AudioFrame) -> None: - """Overschrijf de gegevens in deze ``AudioFrame`` met de gegevens van een andere ``AudioFrame`` instantie. (kopieervan) + """Overschrijf de gegevens in deze ``AudioFrame`` met de gegevens van een andere ``AudioFrame`` instantie. (kopieer van) Example: ``my_frame.copyfrom(source_frame)`` -:param other: (Overige) ``AudioFrame`` exemplaar van waar de gegevens worden gekopieerd.""" +:param other: (overige) ``AudioFrame`` exemplaar van waar de gegevens worden gekopieerd.""" def __len__(self) -> int: ... diff --git a/lang/nl/typeshed/stdlib/microbit/compass.pyi b/lang/nl/typeshed/stdlib/microbit/compass.pyi index fa32dc8..06c6d48 100644 --- a/lang/nl/typeshed/stdlib/microbit/compass.pyi +++ b/lang/nl/typeshed/stdlib/microbit/compass.pyi @@ -54,7 +54,7 @@ Call ``calibrate`` first or the results will be inaccurate. ... def heading() -> int: - """Haal de kompaskop op. (Kop) + """Haal de kompaskop op. (kop) Example: ``compass.heading()`` diff --git a/lang/nl/typeshed/stdlib/microbit/display.pyi b/lang/nl/typeshed/stdlib/microbit/display.pyi index 6559f3b..0447e07 100644 --- a/lang/nl/typeshed/stdlib/microbit/display.pyi +++ b/lang/nl/typeshed/stdlib/microbit/display.pyi @@ -1,4 +1,4 @@ -"""Tekst, afbeeldingen en animaties weergeven op het 5×5 LED-weergave. (scherm)""" +"""Tekst, afbeeldingen en animaties weergeven op het 5×5 LED-weergave.""" from ..microbit import Image from typing import Union, overload, Iterable @@ -46,7 +46,7 @@ The ``wait``, ``loop`` and ``clear`` arguments must be specified using their key ... def scroll(text: Union[str, float, int], delay: int=150, wait: bool=True, loop: bool=False, monospace: bool=False) -> None: - """Scrolt een nummer of tekst op het LED-scherm. (scrollen) + """Scrolt een nummer of tekst op het LED display (scrollen) Example: ``display.scroll('micro:bit')`` @@ -61,13 +61,13 @@ using their keyword.""" ... def on() -> None: - """Schakel het LED-scherm in. (aan) + """Schakel het LED display in. (aan) Example: ``display.on()``""" ... def off() -> None: - """Het uitschakelen van het LED-scherm (uitschakelen van het scherm geeft u de mogelijkheid om de GPIO-pinnen opnieuw te gebruiken voor andere doeleinden). (uit) + """Het uitschakelen van het LED display (uitschakelen van het scherm geeft je de mogelijkheid om de GPIO-pinnen opnieuw te gebruiken voor andere doeleinden). (uit) Example: ``display.off()``""" ... @@ -81,7 +81,7 @@ Example: ``display.is_on()`` ... def read_light_level() -> int: - """Lees het lichtniveau. (Toon licht niveau) + """Lees het licht niveau. (lees licht niveau) Example: ``display.read_light_level()`` diff --git a/lang/nl/typeshed/stdlib/microbit/i2c.pyi b/lang/nl/typeshed/stdlib/microbit/i2c.pyi index 94028b1..865c216 100644 --- a/lang/nl/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/nl/typeshed/stdlib/microbit/i2c.pyi @@ -34,7 +34,7 @@ Example: ``i2c.read(0x50, 64)`` :param addr: Het 7-bit adres van het apparaat :param n: Het aantal te lezen bytes -:param repeat: (Herhaal) Als ``True``, zal er geen stop bit worden verzonden +:param repeat: (herhaal) Als ``True``, zal er geen stop bit worden verzonden :return: The bytes read""" ... @@ -45,5 +45,5 @@ Example: ``i2c.write(0x50, bytes([1, 2, 3]))`` :param addr: Het 7-bit adres van het apparaat :param buf: Een buffer met de te schrijven bytes -:param repeat: (Herhaal) Als ``True``, zal er geen stop bit worden verzonden""" +:param repeat: (herhaal) Als ``True``, zal er geen stop bit worden verzonden""" ... \ No newline at end of file diff --git a/lang/nl/typeshed/stdlib/microbit/microphone.pyi b/lang/nl/typeshed/stdlib/microbit/microphone.pyi index 5fb0ef1..df484aa 100644 --- a/lang/nl/typeshed/stdlib/microbit/microphone.pyi +++ b/lang/nl/typeshed/stdlib/microbit/microphone.pyi @@ -43,7 +43,7 @@ This call clears the sound history before returning. ... def set_threshold(event: SoundEvent, value: int) -> None: - """Stel de drempel in voor een geluidsgebeurtenis. (Stel drempelwaarde in) + """Stel de drempel in voor een geluidsgebeurtenis. (stel drempelwaarde in) Example: ``microphone.set_threshold(SoundEvent.LOUD, 250)`` diff --git a/lang/nl/typeshed/stdlib/microbit/spi.pyi b/lang/nl/typeshed/stdlib/microbit/spi.pyi index d41fb4a..202c17a 100644 --- a/lang/nl/typeshed/stdlib/microbit/spi.pyi +++ b/lang/nl/typeshed/stdlib/microbit/spi.pyi @@ -10,10 +10,10 @@ Example: ``spi.init()`` For correct communication, the parameters have to be the same on both communicating devices. :param baudrate: De snelheid van de communicatie. -:param bits: De breedte in stukjes van elke overdracht. Momenteel wordt alleen ``bits=8`` ondersteund. Dit kan echter veranderen in de toekomst. +:param bits: De breedte in bits van elke overdracht. Momenteel wordt alleen ``bits=8`` ondersteund. Dit kan echter veranderen in de toekomst. :param mode: (modus) Bepaalt de combinatie van klokpolariteit en fase - `zie online tabel `_. :param sclk: sclk pin (standaard 13) -:param mosi: {} pin (standaard 15) +:param mosi: mosi pin (standaard 15) :param miso: miso pin (standaard 14)""" ... @@ -31,7 +31,7 @@ def write(buffer: ReadableBuffer) -> None: Example: ``spi.write(bytes([1, 2, 3]))`` -:param buffer: (Buffer) Een buffer om gegevens van te lezen.""" +:param buffer: Een buffer om gegevens van te lezen.""" ... def write_readinto(out: WriteableBuffer, in_: ReadableBuffer) -> None: diff --git a/lang/nl/typeshed/stdlib/microbit/uart.pyi b/lang/nl/typeshed/stdlib/microbit/uart.pyi index 7fb570b..0f4f26d 100644 --- a/lang/nl/typeshed/stdlib/microbit/uart.pyi +++ b/lang/nl/typeshed/stdlib/microbit/uart.pyi @@ -56,7 +56,7 @@ Example: ``uart.readinto(input_buffer)`` ... def readline() -> Optional[bytes]: - """Lees een regel, eindigend in een nieuwregel. (leesregel) + """Lees een regel, eindigend in een nieuw karakter regel. (leesregel) Example: ``uart.readline()`` diff --git a/lang/nl/typeshed/stdlib/micropython.pyi b/lang/nl/typeshed/stdlib/micropython.pyi index d67cbdb..7dda37b 100644 --- a/lang/nl/typeshed/stdlib/micropython.pyi +++ b/lang/nl/typeshed/stdlib/micropython.pyi @@ -1,4 +1,4 @@ -"""MicroPython internalen. (microPython)""" +"""MicroPython intern.""" from typing import Any, TypeVar, overload _T = TypeVar('_T') @@ -44,7 +44,7 @@ The optimisation level controls the following compilation features: @overload def opt_level(level: int) -> None: - """Stelt het optimalisatieniveau in voor de latere compilatie van scripts. (Kies niveau) + """Stelt het optimalisatie niveau in voor de latere compilatie van scripts. (opt niveau) Example: ``micropython.opt_level(1)`` @@ -63,7 +63,7 @@ The optimisation level controls the following compilation features: The default optimisation level is usually level 0. -:param level: (niveau) Een integer optimaliseringsniveau.""" +:param level: (niveau) Een integer optimaliserings niveau.""" ... def mem_info(verbose: Any=None) -> None: @@ -87,7 +87,7 @@ verbose mode it prints out the names of all RAM-interned strings.""" ... def stack_use() -> int: - """Retourneert een integer getal dat huidige hoeveelheid stack vertegenwoordigt die wordt gebruikt. (Stapel gebruik) + """Retourneert een integer getal dat huidige hoeveelheid stack vertegenwoordigt die wordt gebruikt. (stapel gebruik) Example: ``micropython.stack_use()`` diff --git a/lang/nl/typeshed/stdlib/music.pyi b/lang/nl/typeshed/stdlib/music.pyi index cffaaae..5c3c7fc 100644 --- a/lang/nl/typeshed/stdlib/music.pyi +++ b/lang/nl/typeshed/stdlib/music.pyi @@ -21,7 +21,7 @@ To be used to indicate an incoming message. FUNK: Tuple[str, ...] """Melodie: een grappige bas lijn voor geheime agenten en criminele meesterbreinen.""" BLUES: Tuple[str, ...] -"""Melodie: een boogie-woogie 12-bar wandelbas. (Blues)""" +"""Melodie: een boogie-woogie 12-bar blues wandel bas. (Blues)""" BIRTHDAY: Tuple[str, ...] """Melodie: “Happy Birthday to You…” (verjaardag) diff --git a/lang/nl/typeshed/stdlib/os.pyi b/lang/nl/typeshed/stdlib/os.pyi index 53076dd..bfa6adf 100644 --- a/lang/nl/typeshed/stdlib/os.pyi +++ b/lang/nl/typeshed/stdlib/os.pyi @@ -12,11 +12,11 @@ persistent on-device file system.""" ... def remove(filename: str) -> None: - """Verwijder (verwijder) een bestand. (Verwijder) + """Verwijder (verwijder) een bestand. (verwijder) Example: ``os.remove('data.txt')`` -:param filename: (bestandsnaam) Het bestand is verwijderd +:param filename: (bestands naam) Het bestand is verwijderd If the file does not exist an ``OSError`` exception will occur.""" ... @@ -26,7 +26,7 @@ def size(filename: str) -> int: Example: ``os.size('data.txt')`` -:param filename: (bestandsnaam) Het bestand +:param filename: (bestands naam) Het bestand :return: The size in bytes. If the file does not exist an ``OSError`` exception will occur.""" diff --git a/lang/nl/typeshed/stdlib/radio.pyi b/lang/nl/typeshed/stdlib/radio.pyi index e2b3f85..656cb19 100644 --- a/lang/nl/typeshed/stdlib/radio.pyi +++ b/lang/nl/typeshed/stdlib/radio.pyi @@ -36,11 +36,11 @@ Als er geen ruimte meer is in de wachtrij voor binnenkomende berichten, dan valt Berichten worden via dit kanaal verzonden en alleen via dit kanaal worden berichten in de wachtrij van het inkomende berichten geplaatst. Elke stap is 1 MHz breed, gebaseerd op 2400MHz. :param power: (vermogen) (default=6) is een integer waarde van 0 tot 7 (inclusief) om de sterkte van het signaal aan te geven dat wordt gebruikt bij het uitzenden van een bericht. Hoe hoger de waarde, des te sterker het signaal, maar hoe meer stroom het apparaat verbruikt. De nummering vertaalt naar posities in de volgende lijst van dBm (decibel milliwatt) waarden: -30, -20, -16, -12, -8, -4, 0, 4. -:param address: (Adres) (default=0x75626974) een willekeurige naam, uitgedrukt als een 32-bits adres, wordt gebruikt om inkomende pakketten op hardware-niveau te filteren, waarbij alleen de pakketten worden bewaard die overeenkomen met het adres dat je zelf instelt. +:param address: (adres) (default=0x75626974) een willekeurige naam, uitgedrukt als een 32-bits adres, wordt gebruikt om inkomende pakketten op hardware-niveau te filteren, waarbij alleen de pakketten worden bewaard die overeenkomen met het adres dat je zelf instelt. De standaard gebruiker door andere micro:bit gerelateerde platforms is de standaard instelling die hier wordt gebruikt. :param group: (groep) (standaard=0) een 8-bit waarde (0-255) gebruikt met de ``address`` bij het filteren van berichten. Conceptueel, "adres" is als een huis/kantooradres en "groep" is als de persoon op dat adres waarnaar je je bericht wilt sturen. -:param data_rate: (Gegevenssnelheid) (default=``radio.RATE_1MBIT``) geeft aan hoe snel de doorvoer van gegevens plaatsvindt. +:param data_rate: (Gegevens snelheid) (default=``radio.RATE_1MBIT``) geeft aan hoe snel de doorvoer van gegevens plaatsvindt. Kan een van de volgende constanten zijn gedefinieerd in de ``radio`` module: ``RATE_250KBIT``, ``RATE_1MBIT`` of ``RATE_2MBIT``. If ``config`` is not called then the defaults described above are assumed.""" @@ -75,7 +75,7 @@ def receive_bytes_into(buffer: WriteableBuffer) -> Optional[int]: Example: ``radio.receive_bytes_info(buffer)`` -:param buffer: (Buffer) De doel buffer. Het bericht wordt ingekort als het groter is dan de buffer. +:param buffer: De doel buffer. Het bericht wordt ingekort als het groter is dan de buffer. :return: ``None`` if there are no pending messages, otherwise it returns the length of the message (which might be more than the length of the buffer).""" ... diff --git a/lang/nl/typeshed/stdlib/random.pyi b/lang/nl/typeshed/stdlib/random.pyi index 09a90f2..32acd0e 100644 --- a/lang/nl/typeshed/stdlib/random.pyi +++ b/lang/nl/typeshed/stdlib/random.pyi @@ -10,7 +10,7 @@ Example: ``random.getrandbits(1)`` ... def seed(n: int) -> None: - """Initialiseer de willekeurige getalgenerator. (zaad) + """Initialiseer de willekeurige getalgenerator. Example: ``random.seed(0)`` diff --git a/lang/nl/typeshed/stdlib/speech.pyi b/lang/nl/typeshed/stdlib/speech.pyi index 9a9b86a..2075501 100644 --- a/lang/nl/typeshed/stdlib/speech.pyi +++ b/lang/nl/typeshed/stdlib/speech.pyi @@ -7,7 +7,7 @@ def translate(words: str) -> str: Example: ``speech.translate('hello world')`` -:param words: (Woorden) Een tekenreeks Engelse woorden. +:param words: (woorden) Een tekenreeks Engelse woorden. :return: A string containing a best guess at the appropriate phonemes to pronounce. The output is generated from this `text to phoneme translation table `_. @@ -19,7 +19,7 @@ See `the online documentation None: - """Uitspraak phonemes. (Uitspreken) + """Uitspraak phonemes. (uitspreken) Example: ``speech.pronounce(' /HEHLOW WERLD')`` @@ -41,7 +41,7 @@ def say(words: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=12 Example: ``speech.say('hello world')`` -:param words: (Woorden) De tekenreeks van woorden om te zeggen. +:param words: (woorden) De tekenreeks van woorden om te zeggen. :param pitch: (toonhoogte) Een nummer dat de toonhoogte van de stem weergeeft :param speed: (snelheid) Een nummer dat de snelheid van de stem vertegenwoordigt :param mouth: (mond) Een nummer dat de mond van de stem weergeeft diff --git a/lang/nl/typeshed/stdlib/struct.pyi b/lang/nl/typeshed/stdlib/struct.pyi index 146c5fc..f88dc4a 100644 --- a/lang/nl/typeshed/stdlib/struct.pyi +++ b/lang/nl/typeshed/stdlib/struct.pyi @@ -12,11 +12,11 @@ Example: ``struct.calcsize('hf')`` ... def pack(fmt: str, v1: Any, *vn: Any) -> bytes: - """Verpak de waarden op basis van een string formaat. (pakket) + """Verpak de waarden op basis van een string formaat. (inpakken) Example: ``struct.pack('hf', 1, 3.1415)`` -:param fmt: De formaattekenreeks. +:param fmt: De formaat tekenreeks. :param v1: De eerste waarde. :param *vn: De resterende waarden. :return A bytes object encoding the values.""" @@ -27,8 +27,8 @@ def pack_into(fmt: str, buffer: WriteableBuffer, offset: int, v1: Any, *vn: Any) Example: ``struct.pack_info('hf', buffer, 1, 3.1415)`` -:param fmt: De formaattekenreeks. -:param buffer: (Buffer) De doelbuffer om in te schrijven. +:param fmt: De formaat tekenreeks. +:param buffer: De doelbuffer om in te schrijven. :param offset: (Offset) De compensatie in de buffer. Kan negatief zijn om te tellen aan het einde van de buffer. :param v1: De eerste waarde. :param *vn: De resterende waarden.""" @@ -39,7 +39,7 @@ def unpack(fmt: str, data: ReadableBuffer) -> Tuple[Any, ...]: Example: ``v1, v2 = struct.unpack('hf', buffer)`` -:param fmt: De formaattekenreeks. +:param fmt: De formaat tekenreeks. :param data: (gegevens) De gegevens. :return: A tuple of the unpacked values.""" ... @@ -49,8 +49,8 @@ def unpack_from(fmt: str, buffer: ReadableBuffer, offset: int=0) -> Tuple: Example: ``v1, v2 = struct.unpack_from('hf', buffer)`` -:param fmt: De formaattekenreeks. -:param buffer: (Buffer) De bronbuffer om uit te lezen. +:param fmt: De formaat tekenreeks. +:param buffer: De bronbuffer om uit te lezen. :param offset: (Offset) De compensatie in de buffer. Kan negatief zijn om te tellen aan het einde van de buffer. :return: A tuple of the unpacked values.""" ... \ No newline at end of file diff --git a/lang/nl/typeshed/stdlib/sys.pyi b/lang/nl/typeshed/stdlib/sys.pyi index 9116c79..90c34d5 100644 --- a/lang/nl/typeshed/stdlib/sys.pyi +++ b/lang/nl/typeshed/stdlib/sys.pyi @@ -2,7 +2,7 @@ from typing import Any, Dict, List, NoReturn, TextIO, Tuple def exit(retval: object=...) -> NoReturn: - """Beëindig het huidige programma met een bepaalde exit code. (Afsluiten) + """Beëindig het huidige programma met een bepaalde exit code. (afsluiten) Example: ``sys.exit(1)`` @@ -24,13 +24,13 @@ This is simplified version of a function which appears in the argv: List[str] """Een veranderlijke lijst met argumenten waarmee het huidige programma is gestart.""" byteorder: str -"""De byte volgorde van het systeem (``"little"`` of ``"big"``). (byte-volgorde)""" +"""De byte volgorde van het systeem (``"little"`` of ``"big"``). (byte volgorde)""" class _implementation: name: str version: Tuple[int, int, int] implementation: _implementation -"""Object met informatie over de huidige Python-implementatie. (implementatie) +"""Object met informatie over de huidige Python implementatie. (implementatie) For MicroPython, it has following attributes: @@ -68,7 +68,7 @@ value directly, but instead count number of bits in it:: # "> 32", "> 64" style of comparisons. """ modules: Dict[str, Any] -"""Woordenboek van geladen modules. (Modules) +"""Woordenboek van geladen modules. On some ports, it may not include builtin modules.""" path: List[str] @@ -87,7 +87,7 @@ Python implementation), use ``sys.implementation`` instead. version: str """Python taalversie waar deze implementatie mee overeenstemt als tekenreeks. (versie)""" version_info: Tuple[int, int, int] -"""Python taalversie waaraan deze implementatie voldoet, als een tupel van ints. (Versie-informatie) +"""Python taalversie waaraan deze implementatie voldoet, als een tupel van ints. (versie informatie) Only the first three version numbers (major, minor, micro) are supported and they can be referenced only by index, not by name. diff --git a/lang/nl/typeshed/stdlib/time.pyi b/lang/nl/typeshed/stdlib/time.pyi index ad5f0c7..7c26199 100644 --- a/lang/nl/typeshed/stdlib/time.pyi +++ b/lang/nl/typeshed/stdlib/time.pyi @@ -1,4 +1,4 @@ -"""Meet tijd en voeg vertragingen toe aan programma's. (Tijd)""" +"""Meet tijd en voeg vertragingen toe aan programma's. (tijd)""" from typing import Union def sleep(seconds: Union[int, float]) -> None: @@ -11,7 +11,7 @@ Gebruik een floating-point nummer om te slapen voor een fractioneel aantal secon ... def sleep_ms(ms: int) -> None: - """Vertraging voor een bepaald aantal milliseconden. (Slaap ms) + """Vertraging voor een bepaald aantal milliseconden. (slaap ms) Example: ``time.sleep_ms(1_000_000)`` @@ -19,7 +19,7 @@ Example: ``time.sleep_ms(1_000_000)`` ... def sleep_us(us: int) -> None: - """Vertraging voor een bepaald aantal microseconden. (Slaap us) + """Vertraging voor een bepaald aantal microseconden. (slaap us) Example: ``time.sleep_us(1000)`` From 650ffe6db6f1ecff8143648cc2f2735fc279c963 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Fri, 9 Dec 2022 14:29:34 +0000 Subject: [PATCH 02/15] Minor zh-tw updates (#87) --- crowdin/translated/api.zh-tw.json | 4 ++-- lang/zh-tw/typeshed/stdlib/log.pyi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crowdin/translated/api.zh-tw.json b/crowdin/translated/api.zh-tw.json index f1418b6..7e7b26e 100644 --- a/crowdin/translated/api.zh-tw.json +++ b/crowdin/translated/api.zh-tw.json @@ -128,7 +128,7 @@ "description": "Set up the log file header." }, "log.set_labels.param-name.*labels": { - "message": "*labels", + "message": "標籤", "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." }, "log.set_labels.param-doc.*labels": { @@ -152,7 +152,7 @@ "description": "Add a data row to the log by passing a dictionary of headers and values." }, "log.add-1.param-name.data_dictionary": { - "message": "data dictionary", + "message": "資料字典", "description": "(parameter name) The data to log as a dictionary with a key for each header." }, "log.add-1.param-doc.data_dictionary": { diff --git a/lang/zh-tw/typeshed/stdlib/log.pyi b/lang/zh-tw/typeshed/stdlib/log.pyi index 8390dd2..9853de3 100644 --- a/lang/zh-tw/typeshed/stdlib/log.pyi +++ b/lang/zh-tw/typeshed/stdlib/log.pyi @@ -27,7 +27,7 @@ present, it will generate a new header row with the additional columns. By default the first column contains a timestamp for each row. The time unit can be selected via the timestamp argument. -:param *labels: Any number of positional arguments, each corresponding to an entry in the log header. +:param *labels: (標籤) Any number of positional arguments, each corresponding to an entry in the log header. :param timestamp: (時間戳記) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``.""" ... @@ -46,7 +46,7 @@ to the log with the extra labels. Labels previously specified and not present in a call to this function will be skipped with an empty value in the log row. -:param data_dictionary: The data to log as a dictionary with a key for each header.""" +:param data_dictionary: (資料字典) The data to log as a dictionary with a key for each header.""" ... @overload From 901a1ff782694b942611d85f61f61d9139b866ce Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Sat, 4 Mar 2023 15:43:46 +0000 Subject: [PATCH 03/15] Add Catalan (preview quality) (#88) --- crowdin/translated/api.ca.json | 5258 +++++++++++++++++ lang/ca/typeshed/stdlib/VERSIONS | 50 + .../ca/typeshed/stdlib/_typeshed/__init__.pyi | 168 + lang/ca/typeshed/stdlib/abc.pyi | 28 + lang/ca/typeshed/stdlib/antigravity.pyi | 0 lang/ca/typeshed/stdlib/array.pyi | 42 + lang/ca/typeshed/stdlib/audio.pyi | 11 + lang/ca/typeshed/stdlib/builtins.pyi | 1334 +++++ .../typeshed/stdlib/collections/__init__.pyi | 60 + lang/ca/typeshed/stdlib/errno.pyi | 26 + lang/ca/typeshed/stdlib/gc.pyi | 68 + lang/ca/typeshed/stdlib/log.pyi | 89 + lang/ca/typeshed/stdlib/love.pyi | 1 + lang/ca/typeshed/stdlib/machine.pyi | 84 + lang/ca/typeshed/stdlib/math.pyi | 246 + lang/ca/typeshed/stdlib/microbit/__init__.pyi | 711 +++ .../stdlib/microbit/accelerometer.pyi | 103 + lang/ca/typeshed/stdlib/microbit/audio.pyi | 124 + lang/ca/typeshed/stdlib/microbit/compass.pyi | 70 + lang/ca/typeshed/stdlib/microbit/display.pyi | 92 + lang/ca/typeshed/stdlib/microbit/i2c.pyi | 49 + .../typeshed/stdlib/microbit/microphone.pyi | 62 + lang/ca/typeshed/stdlib/microbit/speaker.pyi | 15 + lang/ca/typeshed/stdlib/microbit/spi.pyi | 46 + lang/ca/typeshed/stdlib/microbit/uart.pyi | 79 + lang/ca/typeshed/stdlib/micropython.pyi | 133 + lang/ca/typeshed/stdlib/music.pyi | 128 + lang/ca/typeshed/stdlib/neopixel.pyi | 81 + lang/ca/typeshed/stdlib/os.pyi | 63 + lang/ca/typeshed/stdlib/power.pyi | 53 + lang/ca/typeshed/stdlib/radio.pyi | 130 + lang/ca/typeshed/stdlib/random.pyi | 81 + lang/ca/typeshed/stdlib/speech.pyi | 79 + lang/ca/typeshed/stdlib/struct.pyi | 56 + lang/ca/typeshed/stdlib/sys.pyi | 96 + lang/ca/typeshed/stdlib/this.pyi | 1 + lang/ca/typeshed/stdlib/time.pyi | 116 + lang/ca/typeshed/stdlib/types.pyi | 413 ++ lang/ca/typeshed/stdlib/typing.pyi | 716 +++ lang/ca/typeshed/stdlib/typing_extensions.pyi | 115 + lang/ca/typeshed/stdlib/uarray.pyi | 1 + lang/ca/typeshed/stdlib/ucollections.pyi | 1 + lang/ca/typeshed/stdlib/uerrno.pyi | 1 + lang/ca/typeshed/stdlib/urandom.pyi | 1 + lang/ca/typeshed/stdlib/ustruct.pyi | 1 + lang/ca/typeshed/stdlib/usys.pyi | 1 + lang/ca/typeshed/stdlib/utime.pyi | 1 + scripts/build-translations.sh | 2 +- 48 files changed, 11085 insertions(+), 1 deletion(-) create mode 100644 crowdin/translated/api.ca.json create mode 100644 lang/ca/typeshed/stdlib/VERSIONS create mode 100644 lang/ca/typeshed/stdlib/_typeshed/__init__.pyi create mode 100644 lang/ca/typeshed/stdlib/abc.pyi create mode 100644 lang/ca/typeshed/stdlib/antigravity.pyi create mode 100644 lang/ca/typeshed/stdlib/array.pyi create mode 100644 lang/ca/typeshed/stdlib/audio.pyi create mode 100644 lang/ca/typeshed/stdlib/builtins.pyi create mode 100644 lang/ca/typeshed/stdlib/collections/__init__.pyi create mode 100644 lang/ca/typeshed/stdlib/errno.pyi create mode 100644 lang/ca/typeshed/stdlib/gc.pyi create mode 100644 lang/ca/typeshed/stdlib/log.pyi create mode 100644 lang/ca/typeshed/stdlib/love.pyi create mode 100644 lang/ca/typeshed/stdlib/machine.pyi create mode 100644 lang/ca/typeshed/stdlib/math.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/__init__.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/accelerometer.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/audio.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/compass.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/display.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/i2c.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/microphone.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/speaker.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/spi.pyi create mode 100644 lang/ca/typeshed/stdlib/microbit/uart.pyi create mode 100644 lang/ca/typeshed/stdlib/micropython.pyi create mode 100644 lang/ca/typeshed/stdlib/music.pyi create mode 100644 lang/ca/typeshed/stdlib/neopixel.pyi create mode 100644 lang/ca/typeshed/stdlib/os.pyi create mode 100644 lang/ca/typeshed/stdlib/power.pyi create mode 100644 lang/ca/typeshed/stdlib/radio.pyi create mode 100644 lang/ca/typeshed/stdlib/random.pyi create mode 100644 lang/ca/typeshed/stdlib/speech.pyi create mode 100644 lang/ca/typeshed/stdlib/struct.pyi create mode 100644 lang/ca/typeshed/stdlib/sys.pyi create mode 100644 lang/ca/typeshed/stdlib/this.pyi create mode 100644 lang/ca/typeshed/stdlib/time.pyi create mode 100644 lang/ca/typeshed/stdlib/types.pyi create mode 100644 lang/ca/typeshed/stdlib/typing.pyi create mode 100644 lang/ca/typeshed/stdlib/typing_extensions.pyi create mode 100644 lang/ca/typeshed/stdlib/uarray.pyi create mode 100644 lang/ca/typeshed/stdlib/ucollections.pyi create mode 100644 lang/ca/typeshed/stdlib/uerrno.pyi create mode 100644 lang/ca/typeshed/stdlib/urandom.pyi create mode 100644 lang/ca/typeshed/stdlib/ustruct.pyi create mode 100644 lang/ca/typeshed/stdlib/usys.pyi create mode 100644 lang/ca/typeshed/stdlib/utime.pyi diff --git a/crowdin/translated/api.ca.json b/crowdin/translated/api.ca.json new file mode 100644 index 0000000..f675f3b --- /dev/null +++ b/crowdin/translated/api.ca.json @@ -0,0 +1,5258 @@ +{ + "gc": { + "message": "gc", + "description": "(module name) Control the garbage collector" + }, + "gc.summary": { + "message": "Controla el recol·lector de memòria brossa", + "description": "Control the garbage collector" + }, + "gc.enable": { + "message": "habilita", + "description": "(function name) Enable automatic garbage collection." + }, + "gc.enable.summary": { + "message": "Habilita la recol·lecció automàtica de la memòria brossa", + "description": "Enable automatic garbage collection." + }, + "gc.disable": { + "message": "desactiva", + "description": "(function name) Disable automatic garbage collection." + }, + "gc.disable.summary": { + "message": "Inhabilita la recol·lecció automàtica de la memòria brossa", + "description": "Disable automatic garbage collection." + }, + "gc.collect": { + "message": "Recull", + "description": "(function name) Run a garbage collection." + }, + "gc.collect.summary": { + "message": "Executa la recol·lecció automàtica de la memòria brossa", + "description": "Run a garbage collection." + }, + "gc.mem_alloc": { + "message": "espai de memòria", + "description": "(function name) Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_alloc.summary": { + "message": "Obté el nombre de bytes assignats a la memòria dinàmica.", + "description": "Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_free": { + "message": "memòria lliure", + "description": "(function name) Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.mem_free.summary": { + "message": "Obté el nombre disponible de bytes de la memòria dinàmica, o -1 si no es coneix la quantitat.", + "description": "Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.threshold-1": { + "message": "llindar", + "description": "(function name) Query the additional GC allocation threshold." + }, + "gc.threshold-1.summary": { + "message": "Consulta l'assignació del llindar del col·lector d'escombraries.", + "description": "Query the additional GC allocation threshold." + }, + "gc.threshold-2": { + "message": "llindar", + "description": "(function name) Set the additional GC allocation threshold." + }, + "gc.threshold-2.summary": { + "message": "Assigna un espai adicional al llindar del col·lector d'escombraries.", + "description": "Set the additional GC allocation threshold." + }, + "gc.threshold-2.param-name.amount": { + "message": "quantitat", + "description": "(parameter name) The number of bytes after which a garbage collection should be triggered." + }, + "gc.threshold-2.param-doc.amount": { + "message": "El nombre de bytes després del qual s'activarà la recol·lecció de la memòria brossa.", + "description": "Parameter docs" + }, + "log": { + "message": "registre", + "description": "(module name) Log data to your micro:bit V2." + }, + "log.summary": { + "message": "Registre dades en la micro:bit V2", + "description": "Log data to your micro:bit V2." + }, + "log.MILLISECONDS": { + "message": "mil·lisegons", + "description": "(field name) Milliseconds timestamp format." + }, + "log.MILLISECONDS.summary": { + "message": "Format de marca de temps de mil·lisegons.", + "description": "Milliseconds timestamp format." + }, + "log.SECONDS": { + "message": "segons", + "description": "(field name) Seconds timestamp format." + }, + "log.SECONDS.summary": { + "message": "Format de marca de temps de segons.\n", + "description": "Seconds timestamp format." + }, + "log.MINUTES": { + "message": "minuts", + "description": "(field name) Minutes timestamp format." + }, + "log.MINUTES.summary": { + "message": "Format de marca de temps de minuts.\n", + "description": "Minutes timestamp format." + }, + "log.HOURS": { + "message": "hores", + "description": "(field name) Hours timestamp format." + }, + "log.HOURS.summary": { + "message": "Format de marca de temps d'hores.", + "description": "Hours timestamp format." + }, + "log.DAYS": { + "message": "dies", + "description": "(field name) Days timestamp format." + }, + "log.DAYS.summary": { + "message": "Format de marca de temps de dies.\n", + "description": "Days timestamp format." + }, + "log.set_labels": { + "message": "Defineix l'etiqueta", + "description": "(function name) Set up the log file header." + }, + "log.set_labels.summary": { + "message": "Defineix la capçalera del fitxer de registre.", + "description": "Set up the log file header." + }, + "log.set_labels.param-name.*labels": { + "message": "*labels", + "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." + }, + "log.set_labels.param-doc.*labels": { + "message": "Qualsevol nombre d'arguments posicionals, corresponent cadascun a una entrada en la capçalera del registre.", + "description": "Parameter docs" + }, + "log.set_labels.param-name.timestamp": { + "message": "marca horària\n", + "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." + }, + "log.set_labels.param-doc.timestamp": { + "message": "Selecciona la unitat de la marca del temps que serà automaticament afegida com a primera columna de cada fila. Els valors de la marca del temps pot ser un de {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} o {{None}} per desactivar la marca del temps. El valor per defecte es {{log.SECONDS}}.", + "description": "Parameter docs" + }, + "log.add-1": { + "message": "afegeix", + "description": "(function name) Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.summary": { + "message": "Afegeix una fila de dades al registre passant un diccionari de capçaleres i valors.", + "description": "Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.param-name.data_dictionary": { + "message": "diccionari de dades", + "description": "(parameter name) The data to log as a dictionary with a key for each header." + }, + "log.add-1.param-doc.data_dictionary": { + "message": "Les dades a ser registrades com un diccionari amb una clau per cada capçalera.", + "description": "Parameter docs" + }, + "log.add-2": { + "message": "afegeix", + "description": "(function name) Add a data row to the log using keyword arguments." + }, + "log.add-2.summary": { + "message": "Afegeix una fila de dades al registre fent servir arguments de paraula clau.", + "description": "Add a data row to the log using keyword arguments." + }, + "log.delete": { + "message": "suprimeix", + "description": "(function name) Deletes the contents of the log, including headers." + }, + "log.delete.summary": { + "message": "Suprimeix el contingut del registre, incloses les capçaleres.", + "description": "Deletes the contents of the log, including headers." + }, + "log.delete.param-name.full": { + "message": "ple", + "description": "(parameter name) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method." + }, + "log.delete.param-doc.full": { + "message": "{{True}} selecciona un esborrat \"total\" {{False}} selecciona un mètode d'esborrat \"ràpid\".", + "description": "Parameter docs" + }, + "log.set_mirroring": { + "message": "estableix mirall", + "description": "(function name) Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.summary": { + "message": "Configura la duplicació de l'activitat de registre de dades a la sortida en sèrie.", + "description": "Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.param-name.serial": { + "message": "serial", + "description": "(parameter name) ``True`` enables mirroring data to the serial output." + }, + "log.set_mirroring.param-doc.serial": { + "message": "{{True}} permet la duplicació de les dades a la sortida sèrie.", + "description": "Parameter docs" + }, + "machine": { + "message": "màquina", + "description": "(module name) Low-level utilities." + }, + "machine.summary": { + "message": "Utilitats de baix nivell.", + "description": "Low-level utilities." + }, + "machine.unique_id": { + "message": "unique id", + "description": "(function name) Get a byte string with a unique identifier of a board." + }, + "machine.unique_id.summary": { + "message": "Obté una cadena de bytes amb un identificador únic d'una placa.", + "description": "Get a byte string with a unique identifier of a board." + }, + "machine.reset": { + "message": "reiniciar", + "description": "(function name) Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.reset.summary": { + "message": "Reinicia el dispositiu d'una manera semblant a la de prémer el botó extern de REINICI.", + "description": "Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.freq": { + "message": "freq", + "description": "(function name) Get the CPU frequency in hertz." + }, + "machine.freq.summary": { + "message": "Obté la freqüència en Hertz de la CPU", + "description": "Get the CPU frequency in hertz." + }, + "machine.disable_irq": { + "message": "desabilita irq", + "description": "(function name) Disable interrupt requests." + }, + "machine.disable_irq.summary": { + "message": "Desactiva les sol·licituds d'interrupció.", + "description": "Disable interrupt requests." + }, + "machine.enable_irq": { + "message": "habilita irq", + "description": "(function name) Re-enable interrupt requests." + }, + "machine.enable_irq.summary": { + "message": "Torna a habilitar les sol·licituds d'interrupció.", + "description": "Re-enable interrupt requests." + }, + "machine.enable_irq.param-name.state": { + "message": "estat", + "description": "(parameter name) The value that was returned from the most recent call to the ``disable_irq`` function." + }, + "machine.enable_irq.param-doc.state": { + "message": "El valor retornat per la crida més recent a la funció {{disable_irq}}.", + "description": "Parameter docs" + }, + "machine.time_pulse_us": { + "message": "mesura la durada d'una pulsació en un pin", + "description": "(function name) Time a pulse on a pin." + }, + "machine.time_pulse_us.summary": { + "message": "Cronometra una pulsació en un pin.", + "description": "Time a pulse on a pin." + }, + "machine.time_pulse_us.param-name.pin": { + "message": "pin", + "description": "(parameter name) The pin to use" + }, + "machine.time_pulse_us.param-doc.pin": { + "message": "El pin a utilitzar", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.pulse_level": { + "message": "nivell de pulsació", + "description": "(parameter name) 0 to time a low pulse or 1 to time a high pulse" + }, + "machine.time_pulse_us.param-doc.pulse_level": { + "message": "0 per cronometrar la durada de l'estat baix o 1 per cronometrar la durada de l'estat alt", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.timeout_us": { + "message": "temps d'espera a la resposta excedit en microsegons", + "description": "(parameter name) A microsecond timeout" + }, + "machine.time_pulse_us.param-doc.timeout_us": { + "message": "Temps d'espera d'un microsegon", + "description": "Parameter docs" + }, + "machine.mem": { + "message": "mem", + "description": "(class name) The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.summary": { + "message": "La classe per a les vistes de la memòria {{mem8}}, {{mem16}} i {{mem32}}.", + "description": "The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.__getitem__": { + "message": "getitem", + "description": "(function name) Access a value from memory." + }, + "machine.mem.__getitem__.summary": { + "message": "Accedeix a un valor de la memòria", + "description": "Access a value from memory." + }, + "machine.mem.__getitem__.param-name.address": { + "message": "adreça", + "description": "(parameter name) The memory address." + }, + "machine.mem.__getitem__.param-doc.address": { + "message": "L'adreça de la memòria", + "description": "Parameter docs" + }, + "machine.mem.__setitem__": { + "message": "setitem", + "description": "(function name) Set a value at the given address." + }, + "machine.mem.__setitem__.summary": { + "message": "Assigna un valor a l'adreça donada", + "description": "Set a value at the given address." + }, + "machine.mem.__setitem__.param-name.address": { + "message": "adreça", + "description": "(parameter name) The memory address." + }, + "machine.mem.__setitem__.param-doc.address": { + "message": "L'adreça de la memòria", + "description": "Parameter docs" + }, + "machine.mem.__setitem__.param-name.value": { + "message": "valor", + "description": "(parameter name) The integer value to set." + }, + "machine.mem.__setitem__.param-doc.value": { + "message": "El valor enter que cal assignar.", + "description": "Parameter docs" + }, + "machine.mem8": { + "message": "mem8", + "description": "(field name) 8-bit (byte) view of memory." + }, + "machine.mem8.summary": { + "message": "vista de la memòria 8-bit (byte)", + "description": "8-bit (byte) view of memory." + }, + "machine.mem16": { + "message": "mem16", + "description": "(field name) 16-bit view of memory." + }, + "machine.mem16.summary": { + "message": "vista de la memòria 16-bit", + "description": "16-bit view of memory." + }, + "machine.mem32": { + "message": "mem32", + "description": "(field name) 32-bit view of memory." + }, + "machine.mem32.summary": { + "message": "vista de la memòria 32-bit", + "description": "32-bit view of memory." + }, + "math": { + "message": "matemàtiques", + "description": "(module name) Mathematical functions." + }, + "math.summary": { + "message": "Funcions matemàtiques", + "description": "Mathematical functions." + }, + "math.acos": { + "message": "arc cosinus", + "description": "(function name) Calculate the inverse cosine." + }, + "math.acos.summary": { + "message": "Calcula l'invers del cosinus", + "description": "Calculate the inverse cosine." + }, + "math.acos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.acos.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.asin": { + "message": "arc sinus", + "description": "(function name) Calculate the inverse sine." + }, + "math.asin.summary": { + "message": "Calcula l'invers del sinus", + "description": "Calculate the inverse sine." + }, + "math.asin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.asin.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.atan": { + "message": "arc tangent", + "description": "(function name) Calculate the inverse tangent." + }, + "math.atan.summary": { + "message": "Calcula l'invers de la tangent", + "description": "Calculate the inverse tangent." + }, + "math.atan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.atan2": { + "message": "arc tangent 2", + "description": "(function name) Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.summary": { + "message": "Calcula el valor principal de l'invers de la tangent de {{y/x}}.", + "description": "Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.atan2.param-name.y": { + "message": "y", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.y": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.ceil": { + "message": "arrodoniment per excés", + "description": "(function name) Round a number towards positive infinity." + }, + "math.ceil.summary": { + "message": "Arrodoneix un nombre cap a l'infinit positiu.", + "description": "Round a number towards positive infinity." + }, + "math.ceil.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ceil.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.copysign": { + "message": "copysign", + "description": "(function name) Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.summary": { + "message": "Calcula {{x}} amb el signe de {{y}}.", + "description": "Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.copysign.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.copysign.param-name.y": { + "message": "y", + "description": "(parameter name) The source of the sign for the return value" + }, + "math.copysign.param-doc.y": { + "message": "L'origen del signe pel valor retornat.", + "description": "Parameter docs" + }, + "math.cos": { + "message": "cosinus", + "description": "(function name) Calculate the cosine of ``x``." + }, + "math.cos.summary": { + "message": "Calcula el cosinus de {{x}}.", + "description": "Calculate the cosine of ``x``." + }, + "math.cos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.cos.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.degrees": { + "message": "graus", + "description": "(function name) Convert radians to degrees." + }, + "math.degrees.summary": { + "message": "Convertir radiants a graus", + "description": "Convert radians to degrees." + }, + "math.degrees.param-name.x": { + "message": "x", + "description": "(parameter name) A value in radians" + }, + "math.degrees.param-doc.x": { + "message": "Un valor en radians", + "description": "Parameter docs" + }, + "math.exp": { + "message": "exp", + "description": "(function name) Calculate the exponential of ``x``." + }, + "math.exp.summary": { + "message": "Calcula l'exponencial de {{x}}.", + "description": "Calculate the exponential of ``x``." + }, + "math.exp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.exp.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.fabs": { + "message": "fabs", + "description": "(function name) Return the absolute value of ``x``." + }, + "math.fabs.summary": { + "message": "Retorna el valor absolut de {{x}}.", + "description": "Return the absolute value of ``x``." + }, + "math.fabs.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.fabs.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.floor": { + "message": "arrodoniment per defecte", + "description": "(function name) Round a number towards negative infinity." + }, + "math.floor.summary": { + "message": "Arrodoneix un nombre cap a l'infinit negatiu.", + "description": "Round a number towards negative infinity." + }, + "math.floor.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.floor.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.fmod": { + "message": "fmod", + "description": "(function name) Calculate the remainder of ``x/y``." + }, + "math.fmod.summary": { + "message": "Calcula el residu de {{x/y}}.", + "description": "Calculate the remainder of ``x/y``." + }, + "math.fmod.param-name.x": { + "message": "x", + "description": "(parameter name) The numerator" + }, + "math.fmod.param-doc.x": { + "message": "El numerador", + "description": "Parameter docs" + }, + "math.fmod.param-name.y": { + "message": "y", + "description": "(parameter name) The denominator" + }, + "math.fmod.param-doc.y": { + "message": "El denominador", + "description": "Parameter docs" + }, + "math.frexp": { + "message": "frexp", + "description": "(function name) Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.summary": { + "message": "Descompon un nombre de coma flotant en la seva mantissa i el seu exponent.", + "description": "Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.param-name.x": { + "message": "x", + "description": "(parameter name) A floating-point number" + }, + "math.frexp.param-doc.x": { + "message": "Un nombre de coma flotant", + "description": "Parameter docs" + }, + "math.isfinite": { + "message": "isfinite", + "description": "(function name) Check if a value is finite." + }, + "math.isfinite.summary": { + "message": "Verifica si un valor és finit.", + "description": "Check if a value is finite." + }, + "math.isfinite.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isfinite.param-doc.x": { + "message": "Un nombre.", + "description": "Parameter docs" + }, + "math.isinf": { + "message": "isinf", + "description": "(function name) Check if a value is infinite." + }, + "math.isinf.summary": { + "message": "Verifica si un valor és infinit.", + "description": "Check if a value is infinite." + }, + "math.isinf.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isinf.param-doc.x": { + "message": "Un nombre.", + "description": "Parameter docs" + }, + "math.isnan": { + "message": "isnan", + "description": "(function name) Check is a value is not-a-number (NaN)." + }, + "math.isnan.summary": { + "message": "Verifica si un valor és un \"no nombre\" (NaN)", + "description": "Check is a value is not-a-number (NaN)." + }, + "math.isnan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.isnan.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.ldexp": { + "message": "ldexp (Calcula ``x * (2**exp)``)", + "description": "(function name) Calculate ``x * (2**exp)``." + }, + "math.ldexp.summary": { + "message": "Calcula {{x * (2**exp)}}.", + "description": "Calculate ``x * (2**exp)``." + }, + "math.ldexp.param-name.exp": { + "message": "exp", + "description": "(parameter name) Integer exponent" + }, + "math.ldexp.param-doc.exp": { + "message": "Exponent enter", + "description": "Parameter docs" + }, + "math.ldexp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ldexp.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.log": { + "message": "registre", + "description": "(function name) Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.summary": { + "message": "Calcula el logaritme {{x}} d'una base donada (per defecte al logaritme natural).", + "description": "Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.param-name.base": { + "message": "base", + "description": "(parameter name) The base to use" + }, + "math.log.param-doc.base": { + "message": "La base a utilitzar", + "description": "Parameter docs" + }, + "math.log.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.log.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.modf": { + "message": "modf", + "description": "(function name) Calculate the fractional and integral parts of ``x``." + }, + "math.modf.summary": { + "message": "Calcula les parts fraccionàries i integrals de {{x}}.", + "description": "Calculate the fractional and integral parts of ``x``." + }, + "math.modf.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.modf.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.pow": { + "message": "pow", + "description": "(function name) Returns ``x`` to the power of ``y``." + }, + "math.pow.summary": { + "message": "Retorna {{x}} a la potència de {{y}}.", + "description": "Returns ``x`` to the power of ``y``." + }, + "math.pow.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.pow.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.pow.param-name.y": { + "message": "y", + "description": "(parameter name) The exponent" + }, + "math.pow.param-doc.y": { + "message": "L'exponent", + "description": "Parameter docs" + }, + "math.radians": { + "message": "radians", + "description": "(function name) Convert a degrees to radians." + }, + "math.radians.summary": { + "message": "Converteix graus a radians", + "description": "Convert a degrees to radians." + }, + "math.radians.param-name.x": { + "message": "x", + "description": "(parameter name) A value in degrees" + }, + "math.radians.param-doc.x": { + "message": "Un valor en graus", + "description": "Parameter docs" + }, + "math.sin": { + "message": "sinus", + "description": "(function name) Calculate the sine of ``x``." + }, + "math.sin.summary": { + "message": "Calcula el sinus de {{x}}.", + "description": "Calculate the sine of ``x``." + }, + "math.sin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sin.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.sqrt": { + "message": "sqrt", + "description": "(function name) Calculate the square root of ``x``." + }, + "math.sqrt.summary": { + "message": "Calcula l'arrel quadrada de {{x}}.", + "description": "Calculate the square root of ``x``." + }, + "math.sqrt.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sqrt.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.tan": { + "message": "tan", + "description": "(function name) Calculate the tangent of ``x``." + }, + "math.tan.summary": { + "message": "Calcula la tangent de {{x}}.", + "description": "Calculate the tangent of ``x``." + }, + "math.tan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.tan.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.trunc": { + "message": "trunca", + "description": "(function name) Round a number towards 0." + }, + "math.trunc.summary": { + "message": "Arrodoneix un nombre cap al 0.", + "description": "Round a number towards 0." + }, + "math.trunc.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.trunc.param-doc.x": { + "message": "Un nombre", + "description": "Parameter docs" + }, + "math.e": { + "message": "e", + "description": "(field name) Base of the natural logarithm" + }, + "math.e.summary": { + "message": "Base del logaritme natural", + "description": "Base of the natural logarithm" + }, + "math.pi": { + "message": "pi", + "description": "(field name) The ratio of a circle's circumference to its diameter" + }, + "math.pi.summary": { + "message": "La relació entre la circumferència d'un cercle i el seu diàmetre", + "description": "The ratio of a circle's circumference to its diameter" + }, + "microbit": { + "message": "microbit", + "description": "(module name) Pins, images, sounds, temperature and volume." + }, + "microbit.summary": { + "message": "Pins, imatges, sons, temperatura i volum.", + "description": "Pins, images, sounds, temperature and volume." + }, + "microbit.run_every": { + "message": "run every", + "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.summary": { + "message": "Programa l'execució d'una funció a cada interval especificat pels arguments de temps **només V2**.", + "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.param-name.callback": { + "message": "callback", + "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." + }, + "microbit.run_every.param-doc.callback": { + "message": "Funció a cridar a l'interval previst. Omet quan el fas servir com decorador.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.days": { + "message": "dies", + "description": "(parameter name) Sets the day mark for the scheduling." + }, + "microbit.run_every.param-doc.days": { + "message": "Estableix la marca del dia per la programació", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.h": { + "message": "h", + "description": "(parameter name) Sets the hour mark for the scheduling." + }, + "microbit.run_every.param-doc.h": { + "message": "Estableix la marca de l'hora per la programació", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.min": { + "message": "min", + "description": "(parameter name) Sets the minute mark for the scheduling." + }, + "microbit.run_every.param-doc.min": { + "message": "Estableix la marca del minut per la programació", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.ms": { + "message": "ms", + "description": "(parameter name) Sets the millisecond mark for the scheduling." + }, + "microbit.run_every.param-doc.ms": { + "message": "Estableix la marca del mil·lisegon per la programació", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.s": { + "message": "s", + "description": "(parameter name) Sets the second mark for the scheduling." + }, + "microbit.run_every.param-doc.s": { + "message": "Estableix la marca del segon per la programació", + "description": "Parameter docs" + }, + "microbit.panic": { + "message": "pànic", + "description": "(function name) Enter a panic mode." + }, + "microbit.panic.summary": { + "message": "Entrar en mode pànic.", + "description": "Enter a panic mode." + }, + "microbit.panic.param-name.n": { + "message": "n", + "description": "(parameter name) An arbitrary integer <= 255 to indicate a status." + }, + "microbit.panic.param-doc.n": { + "message": "Un nombre enter arbitrari <= 255 per indicar un estat.", + "description": "Parameter docs" + }, + "microbit.reset": { + "message": "reiniciar", + "description": "(function name) Restart the board." + }, + "microbit.reset.summary": { + "message": "Reinicialitza la placa.", + "description": "Restart the board." + }, + "microbit.scale-1": { + "message": "escala", + "description": "(function name) Converts a value from a range to an integer range." + }, + "microbit.scale-1.summary": { + "message": "Converteix un valor d'un interval a un interval de nombre enter.", + "description": "Converts a value from a range to an integer range." + }, + "microbit.scale-1.param-name.from_": { + "message": "des de", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-1.param-doc.from_": { + "message": "Una tupla des d'on definir l'interval a convertir", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.to": { + "message": "a", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-1.param-doc.to": { + "message": "Una tupla que defineix l'interval d'arribada", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.value": { + "message": "valor", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-1.param-doc.value": { + "message": "Un nombre a convertir.", + "description": "Parameter docs" + }, + "microbit.scale-2": { + "message": "escala", + "description": "(function name) Converts a value from a range to a floating point range." + }, + "microbit.scale-2.summary": { + "message": "Converteix un valor d'un interval a un altre interval de coma flotant.", + "description": "Converts a value from a range to a floating point range." + }, + "microbit.scale-2.param-name.from_": { + "message": "des de", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-2.param-doc.from_": { + "message": "Una tupla des d'on definir l'interval a convertir", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.to": { + "message": "a", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-2.param-doc.to": { + "message": "Una tupla que defineix l'interval d'arribada de la conversió.", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.value": { + "message": "valor", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-2.param-doc.value": { + "message": "Un nombre a convertir.", + "description": "Parameter docs" + }, + "microbit.sleep": { + "message": "dormir", + "description": "(function name) Wait for ``n`` milliseconds." + }, + "microbit.sleep.summary": { + "message": "Espera per {{n}} mil·lisegons.", + "description": "Wait for ``n`` milliseconds." + }, + "microbit.sleep.param-name.n": { + "message": "n", + "description": "(parameter name) The number of milliseconds to wait" + }, + "microbit.sleep.param-doc.n": { + "message": "El nombre de mil·lisegons a esperar", + "description": "Parameter docs" + }, + "microbit.running_time": { + "message": "temps d'execució", + "description": "(function name) Get the running time of the board." + }, + "microbit.running_time.summary": { + "message": "Obté el temps d'execució de la placa.", + "description": "Get the running time of the board." + }, + "microbit.temperature": { + "message": "temperatura", + "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + }, + "microbit.temperature.summary": { + "message": "Obté la temperatura de la micro:bit en graus Celsius.", + "description": "Get the temperature of the micro:bit in degrees Celcius." + }, + "microbit.set_volume": { + "message": "assigna volum", + "description": "(function name) Sets the volume." + }, + "microbit.set_volume.summary": { + "message": "Configura el volum", + "description": "Sets the volume." + }, + "microbit.set_volume.param-name.v": { + "message": "v", + "description": "(parameter name) a value between 0 (low) and 255 (high)." + }, + "microbit.set_volume.param-doc.v": { + "message": "un valor entre 0 (baix) i 255 (alt).", + "description": "Parameter docs" + }, + "microbit.Button": { + "message": "botó", + "description": "(class name) The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.summary": { + "message": "La classe dels botons {{button_a}} i {{button_b}}.", + "description": "The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.is_pressed": { + "message": "és premut", + "description": "(function name) Check if the button is pressed." + }, + "microbit.Button.is_pressed.summary": { + "message": "Verifica si el botó està premut.", + "description": "Check if the button is pressed." + }, + "microbit.Button.was_pressed": { + "message": "ha estat premut", + "description": "(function name) Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.was_pressed.summary": { + "message": "Verifica si el botó ha estat premut d'ençà que el dispositiu va arrancar o l'última vegada que aquest mètode va ser cridat.", + "description": "Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.get_presses": { + "message": "obté pitjades", + "description": "(function name) Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.Button.get_presses.summary": { + "message": "Obté el total acumulat de pressions dels botons i restableix aquest total\na zero abans de tornar.", + "description": "Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.button_a": { + "message": "botó a", + "description": "(field name) The left button ``Button`` object." + }, + "microbit.button_a.summary": { + "message": "L'objecte botó esquerre {{Button}} .", + "description": "The left button ``Button`` object." + }, + "microbit.button_b": { + "message": "botó b", + "description": "(field name) The right button ``Button`` object." + }, + "microbit.button_b.summary": { + "message": "L'objecte el botó dret {{Button}}.", + "description": "The right button ``Button`` object." + }, + "microbit.MicroBitDigitalPin": { + "message": "microbitdigitalpin", + "description": "(class name) A digital pin." + }, + "microbit.MicroBitDigitalPin.summary": { + "message": "Un pin digital.", + "description": "A digital pin." + }, + "microbit.MicroBitDigitalPin.read_digital": { + "message": "llegeix digital", + "description": "(function name) Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.read_digital.summary": { + "message": "Obté el valor digital del pin.", + "description": "Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital": { + "message": "escriu digital", + "description": "(function name) Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.summary": { + "message": "Assigna el valor digital del pin.", + "description": "Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.param-name.value": { + "message": "valor", + "description": "(parameter name) 1 to set the pin high or 0 to set the pin low" + }, + "microbit.MicroBitDigitalPin.write_digital.param-doc.value": { + "message": "1 per posar el pin alt o 0 per posar el pin baix", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_pull": { + "message": "configuració de les resistències de pull up/down", + "description": "(function name) Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.summary": { + "message": "Configura les resistències de pull-up/pull-down un dels tres valors possibles: {{PULL_UP}}, {{PULL_DOWN}} o {{NO_PULL}}.", + "description": "Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-name.value": { + "message": "valor", + "description": "(parameter name) The pull state from the relevant pin, e.g. ``pin0.PULL_UP``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-doc.value": { + "message": "L'estat del pull-up/pull-down del pin corresponent, per ex. {{pin0.PULL_UP}}.", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.get_pull": { + "message": "get pull", + "description": "(function name) Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_pull.summary": { + "message": "Obté l'estat de pull-up/pull-down d'un pin.", + "description": "Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_mode": { + "message": "obté el mode", + "description": "(function name) Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.get_mode.summary": { + "message": "Retorna el mode del pin", + "description": "Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.write_analog": { + "message": "escriu analògic", + "description": "(function name) Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.summary": { + "message": "Genera un senyal PWM al pin, amb el cicle de treball proporcional a {{value}}.", + "description": "Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.param-name.value": { + "message": "valor", + "description": "(parameter name) An integer or a floating point number between 0 (0% duty cycle) and 1023 (100% duty)." + }, + "microbit.MicroBitDigitalPin.write_analog.param-doc.value": { + "message": "Un nombre enter o de coma flotant entre 0 (cicle de treball del 0%) i 1023 (cicle de treball del 100%).", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period": { + "message": "configura el període amb un valor analògic\n", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.summary": { + "message": "Estableix el període del senyal PWM a {{period}} en mil·lisegons.", + "description": "Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-name.period": { + "message": "període", + "description": "(parameter name) The period in milliseconds with a minimum valid value of 1ms." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-doc.period": { + "message": "El període en mil·lisegons amb un valor mínim vàlid d'1 ms", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds": { + "message": "configura el període amb un valor analògic en microsegons", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.summary": { + "message": "Estableix el període del senyal PWM a {{period}} microsegons.", + "description": "Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-name.period": { + "message": "període", + "description": "(parameter name) The period in microseconds with a minimum valid value of 256µs." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-doc.period": { + "message": "El període en microsegons amb un valor vàlid mínim de 256 µs.", + "description": "Parameter docs" + }, + "microbit.MicroBitAnalogDigitalPin": { + "message": "microbitanalogdigitalpin", + "description": "(class name) A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.summary": { + "message": "Un pin amb funcions analògiques i digitals.", + "description": "A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog": { + "message": "llegeix analògic", + "description": "(function name) Read the voltage applied to the pin." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog.summary": { + "message": "Llegeix el voltatge aplicat al pin.", + "description": "Read the voltage applied to the pin." + }, + "microbit.MicroBitTouchPin": { + "message": "microbittouchpin", + "description": "(class name) A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.summary": { + "message": "Un pin amb característiques analògiques, digitals i tàctils.", + "description": "A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.is_touched": { + "message": "està tocat", + "description": "(function name) Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.is_touched.summary": { + "message": "Comprova si el pin està sent tocat.", + "description": "Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.set_touch_mode": { + "message": "estableix el mode tàctil", + "description": "(function name) Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.summary": { + "message": "Estableix el mode tàctil per al pin.", + "description": "Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-name.value": { + "message": "valor", + "description": "(parameter name) ``CAPACITIVE`` or ``RESISTIVE`` from the relevant pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-doc.value": { + "message": "{{CAPACITIVE}} o {{RESISTIVE}} del pin corresponent.", + "description": "Parameter docs" + }, + "microbit.pin0": { + "message": "pin0", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin0.summary": { + "message": "Pin amb característiques digitals, analògiques i tàctils.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin1": { + "message": "pin1", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin1.summary": { + "message": "Pin amb característiques digitals, analògiques i tàctils.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin2": { + "message": "pin2", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin2.summary": { + "message": "Pin amb característiques digitals, analògiques i tàctils.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin3": { + "message": "pin3", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin3.summary": { + "message": "Pin amb característiques digitals i analògiques.", + "description": "Pin with digital and analog features." + }, + "microbit.pin4": { + "message": "pin4", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin4.summary": { + "message": "Pin amb característiques digitals i analògiques.", + "description": "Pin with digital and analog features." + }, + "microbit.pin5": { + "message": "pin5", + "description": "(field name) Pin with digital features." + }, + "microbit.pin5.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin6": { + "message": "pin6", + "description": "(field name) Pin with digital features." + }, + "microbit.pin6.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin7": { + "message": "pin7", + "description": "(field name) Pin with digital features." + }, + "microbit.pin7.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin8": { + "message": "pin8", + "description": "(field name) Pin with digital features." + }, + "microbit.pin8.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin9": { + "message": "pin9", + "description": "(field name) Pin with digital features." + }, + "microbit.pin9.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin10": { + "message": "pin10", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin10.summary": { + "message": "Pin amb característiques digitals i analògiques.", + "description": "Pin with digital and analog features." + }, + "microbit.pin11": { + "message": "pin11", + "description": "(field name) Pin with digital features." + }, + "microbit.pin11.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin12": { + "message": "pin12", + "description": "(field name) Pin with digital features." + }, + "microbit.pin12.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin13": { + "message": "pin13", + "description": "(field name) Pin with digital features." + }, + "microbit.pin13.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin14": { + "message": "pin14", + "description": "(field name) Pin with digital features." + }, + "microbit.pin14.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin15": { + "message": "pin15", + "description": "(field name) Pin with digital features." + }, + "microbit.pin15.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin16": { + "message": "pin16", + "description": "(field name) Pin with digital features." + }, + "microbit.pin16.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin19": { + "message": "pin19", + "description": "(field name) Pin with digital features." + }, + "microbit.pin19.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin20": { + "message": "pin20", + "description": "(field name) Pin with digital features." + }, + "microbit.pin20.summary": { + "message": "Pin amb característiques digitals.", + "description": "Pin with digital features." + }, + "microbit.pin_logo": { + "message": "pin logotip", + "description": "(field name) A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_logo.summary": { + "message": "Un logotip tàctil a la part frontal de la micro:bit, que per defecte està establert al mode tàctil capacitiu.", + "description": "A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_speaker": { + "message": "pin altaveu", + "description": "(field name) A pin to address the micro:bit speaker." + }, + "microbit.pin_speaker.summary": { + "message": "Un pin per adreçar-se a l'altaveu micro:bit.", + "description": "A pin to address the micro:bit speaker." + }, + "microbit.Image": { + "message": "imatge", + "description": "(class name) An image to show on the micro:bit LED display." + }, + "microbit.Image.summary": { + "message": "Una imatge per mostrar a la pantalla LED de micro:bit.", + "description": "An image to show on the micro:bit LED display." + }, + "microbit.Image.HEART": { + "message": "cor", + "description": "(field name) Heart image." + }, + "microbit.Image.HEART.summary": { + "message": "Imatge d'un cor.", + "description": "Heart image." + }, + "microbit.Image.HEART_SMALL": { + "message": "cor petit", + "description": "(field name) Small heart image." + }, + "microbit.Image.HEART_SMALL.summary": { + "message": "Imatge d'un cor petit", + "description": "Small heart image." + }, + "microbit.Image.HAPPY": { + "message": "feliç", + "description": "(field name) Happy face image." + }, + "microbit.Image.HAPPY.summary": { + "message": "Imatge d'una cara feliç", + "description": "Happy face image." + }, + "microbit.Image.SMILE": { + "message": "somriure", + "description": "(field name) Smiling face image." + }, + "microbit.Image.SMILE.summary": { + "message": "Imatge d'una cara somrient", + "description": "Smiling face image." + }, + "microbit.Image.SAD": { + "message": "tristesa", + "description": "(field name) Sad face image." + }, + "microbit.Image.SAD.summary": { + "message": "Imatge d'una cara trista", + "description": "Sad face image." + }, + "microbit.Image.CONFUSED": { + "message": "confusa", + "description": "(field name) Confused face image." + }, + "microbit.Image.CONFUSED.summary": { + "message": "Imatge de cara confusa.", + "description": "Confused face image." + }, + "microbit.Image.ANGRY": { + "message": "enfadat", + "description": "(field name) Angry face image." + }, + "microbit.Image.ANGRY.summary": { + "message": "Imatge d'una cara enfadada.", + "description": "Angry face image." + }, + "microbit.Image.ASLEEP": { + "message": "despert", + "description": "(field name) Sleeping face image." + }, + "microbit.Image.ASLEEP.summary": { + "message": "Imatge d'una cara dormint.", + "description": "Sleeping face image." + }, + "microbit.Image.SURPRISED": { + "message": "sorprès", + "description": "(field name) Surprised face image." + }, + "microbit.Image.SURPRISED.summary": { + "message": "Imatge d'una cara de sorpresa", + "description": "Surprised face image." + }, + "microbit.Image.SILLY": { + "message": "ximple", + "description": "(field name) Silly face image." + }, + "microbit.Image.SILLY.summary": { + "message": "Imatge d'una cara ximple.", + "description": "Silly face image." + }, + "microbit.Image.FABULOUS": { + "message": "fabulós", + "description": "(field name) Sunglasses face image." + }, + "microbit.Image.FABULOUS.summary": { + "message": "Imatge d'una cara amb ulleres de sol.", + "description": "Sunglasses face image." + }, + "microbit.Image.MEH": { + "message": "BAH avorrit", + "description": "(field name) Unimpressed face image." + }, + "microbit.Image.MEH.summary": { + "message": "Imatge d'una cara inexpressiva.", + "description": "Unimpressed face image." + }, + "microbit.Image.YES": { + "message": "sí", + "description": "(field name) Tick image." + }, + "microbit.Image.YES.summary": { + "message": "Imatge d'una marca tic.", + "description": "Tick image." + }, + "microbit.Image.NO": { + "message": "no", + "description": "(field name) Cross image." + }, + "microbit.Image.NO.summary": { + "message": "Imatge d'una creu.", + "description": "Cross image." + }, + "microbit.Image.CLOCK12": { + "message": "les dotze", + "description": "(field name) Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK12.summary": { + "message": "Imatge d'una línia apuntant les dotze.", + "description": "Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK11": { + "message": "les onze", + "description": "(field name) Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK11.summary": { + "message": "Imatge d'una línia apuntant les onze.", + "description": "Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK10": { + "message": "les deu", + "description": "(field name) Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK10.summary": { + "message": "Imatge d'una línia apuntant les deu.", + "description": "Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK9": { + "message": "les nou\n", + "description": "(field name) Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK9.summary": { + "message": "Imatge d'una línia apuntant les nou.", + "description": "Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK8": { + "message": "les vuit ", + "description": "(field name) Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK8.summary": { + "message": "Imatge d'una línia apuntant les vuit.", + "description": "Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK7": { + "message": "les set", + "description": "(field name) Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK7.summary": { + "message": "Imatge d'una línia apuntant les set.", + "description": "Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK6": { + "message": "les sis ", + "description": "(field name) Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK6.summary": { + "message": "Imatge amb una línia apuntant a les 6 en punt.", + "description": "Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK5": { + "message": "les cinc", + "description": "(field name) Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK5.summary": { + "message": "Imatge amb una línia apuntant a les 5 en punt.", + "description": "Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK4": { + "message": "les quatre", + "description": "(field name) Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK4.summary": { + "message": "Imatge amb una línia apuntant a les 4 en punt.", + "description": "Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK3": { + "message": "les tres", + "description": "(field name) Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK3.summary": { + "message": "Imatge amb una línia apuntant a les 3 en punt.", + "description": "Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK2": { + "message": "les dues", + "description": "(field name) Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK2.summary": { + "message": "Imatge amb una línia apuntant a les 2 en punt.", + "description": "Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK1": { + "message": "la una", + "description": "(field name) Image with line pointing to 1 o'clock." + }, + "microbit.Image.CLOCK1.summary": { + "message": "Imatge amb una línia apuntant a la 1 en punt.", + "description": "Image with line pointing to 1 o'clock." + }, + "microbit.Image.ARROW_N": { + "message": "fletxa n ", + "description": "(field name) Image of arrow pointing north." + }, + "microbit.Image.ARROW_N.summary": { + "message": "Imatge de fletxa apuntant al nord.\n", + "description": "Image of arrow pointing north." + }, + "microbit.Image.ARROW_NE": { + "message": "fletxa ne", + "description": "(field name) Image of arrow pointing north east." + }, + "microbit.Image.ARROW_NE.summary": { + "message": "Imatge de fletxa apuntant al nord-est.", + "description": "Image of arrow pointing north east." + }, + "microbit.Image.ARROW_E": { + "message": "fletxa e", + "description": "(field name) Image of arrow pointing east." + }, + "microbit.Image.ARROW_E.summary": { + "message": "Imatge de fletxa apuntant a l'est.", + "description": "Image of arrow pointing east." + }, + "microbit.Image.ARROW_SE": { + "message": "fletxa se ", + "description": "(field name) Image of arrow pointing south east." + }, + "microbit.Image.ARROW_SE.summary": { + "message": "Imatge de fletxa apuntant al sud-est.", + "description": "Image of arrow pointing south east." + }, + "microbit.Image.ARROW_S": { + "message": "fletxa s", + "description": "(field name) Image of arrow pointing south." + }, + "microbit.Image.ARROW_S.summary": { + "message": "Imatge de fletxa apuntant al sud.", + "description": "Image of arrow pointing south." + }, + "microbit.Image.ARROW_SW": { + "message": "fletxa so ", + "description": "(field name) Image of arrow pointing south west." + }, + "microbit.Image.ARROW_SW.summary": { + "message": "Imatge de fletxa apuntant al sud-oest.", + "description": "Image of arrow pointing south west." + }, + "microbit.Image.ARROW_W": { + "message": "fletxa o ", + "description": "(field name) Image of arrow pointing west." + }, + "microbit.Image.ARROW_W.summary": { + "message": "Imatge de fletxa apuntant a l'oest.", + "description": "Image of arrow pointing west." + }, + "microbit.Image.ARROW_NW": { + "message": "fletxa no", + "description": "(field name) Image of arrow pointing north west." + }, + "microbit.Image.ARROW_NW.summary": { + "message": "Imatge de fletxa apuntant al nord-oest.", + "description": "Image of arrow pointing north west." + }, + "microbit.Image.TRIANGLE": { + "message": "triangle", + "description": "(field name) Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE.summary": { + "message": "Imatge d'un triangle apuntant amunt.", + "description": "Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE_LEFT": { + "message": "triangle a l'esquerra", + "description": "(field name) Image of a triangle in the left corner." + }, + "microbit.Image.TRIANGLE_LEFT.summary": { + "message": "Imatge d'un triangle en la cantonada esquerra.", + "description": "Image of a triangle in the left corner." + }, + "microbit.Image.CHESSBOARD": { + "message": "Tauler d'escacs", + "description": "(field name) Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.CHESSBOARD.summary": { + "message": "Leds alternatius il·luminats en un patró d'escacs.", + "description": "Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.DIAMOND": { + "message": "diamant", + "description": "(field name) Diamond image." + }, + "microbit.Image.DIAMOND.summary": { + "message": "Imatge d'un diamant", + "description": "Diamond image." + }, + "microbit.Image.DIAMOND_SMALL": { + "message": "diamant petit", + "description": "(field name) Small diamond image." + }, + "microbit.Image.DIAMOND_SMALL.summary": { + "message": "Imatge d'un diamant petit", + "description": "Small diamond image." + }, + "microbit.Image.SQUARE": { + "message": "quadrat", + "description": "(field name) Square image." + }, + "microbit.Image.SQUARE.summary": { + "message": "Imatge d'un quadrat", + "description": "Square image." + }, + "microbit.Image.SQUARE_SMALL": { + "message": "quadrat petit", + "description": "(field name) Small square image." + }, + "microbit.Image.SQUARE_SMALL.summary": { + "message": "Imatge d'un quadrat petit", + "description": "Small square image." + }, + "microbit.Image.RABBIT": { + "message": "conill", + "description": "(field name) Rabbit image." + }, + "microbit.Image.RABBIT.summary": { + "message": "Imatge d'un conill.", + "description": "Rabbit image." + }, + "microbit.Image.COW": { + "message": "vaca", + "description": "(field name) Cow image." + }, + "microbit.Image.COW.summary": { + "message": "Imatge d'una vaca.", + "description": "Cow image." + }, + "microbit.Image.MUSIC_CROTCHET": { + "message": "nota musical negra", + "description": "(field name) Crotchet note image." + }, + "microbit.Image.MUSIC_CROTCHET.summary": { + "message": "Imatge de la nota musical negra", + "description": "Crotchet note image." + }, + "microbit.Image.MUSIC_QUAVER": { + "message": "nota musical corxera", + "description": "(field name) Quaver note image." + }, + "microbit.Image.MUSIC_QUAVER.summary": { + "message": "Imatge de la nota musical corxera", + "description": "Quaver note image." + }, + "microbit.Image.MUSIC_QUAVERS": { + "message": " nota musical corxera", + "description": "(field name) Pair of quavers note image." + }, + "microbit.Image.MUSIC_QUAVERS.summary": { + "message": "Imatge d'un parell de notes musicals corxeres", + "description": "Pair of quavers note image." + }, + "microbit.Image.PITCHFORK": { + "message": "forca", + "description": "(field name) Pitchfork image." + }, + "microbit.Image.PITCHFORK.summary": { + "message": "Imatge d'una forca.", + "description": "Pitchfork image." + }, + "microbit.Image.XMAS": { + "message": "nadal ", + "description": "(field name) Christmas tree image." + }, + "microbit.Image.XMAS.summary": { + "message": "Imatge d'un arbre de Nadal", + "description": "Christmas tree image." + }, + "microbit.Image.PACMAN": { + "message": "pacman", + "description": "(field name) Pac-Man arcade character image." + }, + "microbit.Image.PACMAN.summary": { + "message": "Imatge del personatge de Pac-man a arcade", + "description": "Pac-Man arcade character image." + }, + "microbit.Image.TARGET": { + "message": "diana", + "description": "(field name) Target image." + }, + "microbit.Image.TARGET.summary": { + "message": "Imatge d'objectiu.", + "description": "Target image." + }, + "microbit.Image.TSHIRT": { + "message": "Imatge d'una samarreta T-shirt", + "description": "(field name) T-shirt image." + }, + "microbit.Image.TSHIRT.summary": { + "message": "Imatge de samarreta.", + "description": "T-shirt image." + }, + "microbit.Image.ROLLERSKATE": { + "message": "patinet", + "description": "(field name) Rollerskate image." + }, + "microbit.Image.ROLLERSKATE.summary": { + "message": "Imatge d'un patinet.", + "description": "Rollerskate image." + }, + "microbit.Image.DUCK": { + "message": "ànec", + "description": "(field name) Duck image." + }, + "microbit.Image.DUCK.summary": { + "message": "Imatge d'un ànec.", + "description": "Duck image." + }, + "microbit.Image.HOUSE": { + "message": "casa", + "description": "(field name) House image." + }, + "microbit.Image.HOUSE.summary": { + "message": "Imatge d'una casa.", + "description": "House image." + }, + "microbit.Image.TORTOISE": { + "message": "tortuga", + "description": "(field name) Tortoise image." + }, + "microbit.Image.TORTOISE.summary": { + "message": "Imatge d'una tortuga.", + "description": "Tortoise image." + }, + "microbit.Image.BUTTERFLY": { + "message": "papallona", + "description": "(field name) Butterfly image." + }, + "microbit.Image.BUTTERFLY.summary": { + "message": "Imatge d'una papallona.", + "description": "Butterfly image." + }, + "microbit.Image.STICKFIGURE": { + "message": "imatge d'un pal ", + "description": "(field name) Stick figure image." + }, + "microbit.Image.STICKFIGURE.summary": { + "message": "Imatge de figura d'un pal.", + "description": "Stick figure image." + }, + "microbit.Image.GHOST": { + "message": "fantasma", + "description": "(field name) Ghost image." + }, + "microbit.Image.GHOST.summary": { + "message": "Imatge d'un fantasma.", + "description": "Ghost image." + }, + "microbit.Image.SWORD": { + "message": "espasa", + "description": "(field name) Sword image." + }, + "microbit.Image.SWORD.summary": { + "message": "Imatge d'una espasa", + "description": "Sword image." + }, + "microbit.Image.GIRAFFE": { + "message": "girafa", + "description": "(field name) Giraffe image." + }, + "microbit.Image.GIRAFFE.summary": { + "message": "Imatge d'una girafa.", + "description": "Giraffe image." + }, + "microbit.Image.SKULL": { + "message": "crani", + "description": "(field name) Skull image." + }, + "microbit.Image.SKULL.summary": { + "message": "Imatge d'un crani.", + "description": "Skull image." + }, + "microbit.Image.UMBRELLA": { + "message": "paraigua", + "description": "(field name) Umbrella image." + }, + "microbit.Image.UMBRELLA.summary": { + "message": "Imatge d'un paraigua,", + "description": "Umbrella image." + }, + "microbit.Image.SNAKE": { + "message": "serp", + "description": "(field name) Snake image." + }, + "microbit.Image.SNAKE.summary": { + "message": "Imatge d'una serp.", + "description": "Snake image." + }, + "microbit.Image.SCISSORS": { + "message": "tisores", + "description": "(field name) Scissors image." + }, + "microbit.Image.SCISSORS.summary": { + "message": "Imatge d'unes tisores.", + "description": "Scissors image." + }, + "microbit.Image.ALL_CLOCKS": { + "message": "tots els rellotges", + "description": "(field name) A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_CLOCKS.summary": { + "message": "Una llista que conté totes les imatges CLOCK_ en seqüència.", + "description": "A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_ARROWS": { + "message": "totes les fletxes", + "description": "(field name) A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.ALL_ARROWS.summary": { + "message": "Una llista que conté totes les ARROW_images en seqüència.", + "description": "A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.__init__-1": { + "message": "init", + "description": "(function name) Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.summary": { + "message": "Crea una imatge a partir d'una cadena que descrigui quins leds estan encesos.", + "description": "Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.param-name.string": { + "message": "cadena", + "description": "(parameter name) The string describing the image." + }, + "microbit.Image.__init__-1.param-doc.string": { + "message": "La cadena descrivint la imatge.", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2": { + "message": "init", + "description": "(function name) Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.summary": { + "message": "Crea una imatge buida amb {{width}} columnes i {{height}} files.", + "description": "Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.param-name.buffer": { + "message": "memòria intermèdia", + "description": "(parameter name) Optional array or bytes of ``width``×``height`` integers in range 0-9 to initialize the image" + }, + "microbit.Image.__init__-2.param-doc.buffer": { + "message": "Llistes o bytes opcionals d'enters de {{width}}×{{height}} dins l'interval de 0 a 9 per inicialitzar la imatge ", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.height": { + "message": "alçària", + "description": "(parameter name) Optional height of the image" + }, + "microbit.Image.__init__-2.param-doc.height": { + "message": "Alçària opcional de la imatge\n", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.width": { + "message": "amplada", + "description": "(parameter name) Optional width of the image" + }, + "microbit.Image.__init__-2.param-doc.width": { + "message": "Amplada opcional de la imatge", + "description": "Parameter docs" + }, + "microbit.Image.width": { + "message": "amplada", + "description": "(function name) Get the number of columns." + }, + "microbit.Image.width.summary": { + "message": "Obté el nombre de columnes", + "description": "Get the number of columns." + }, + "microbit.Image.height": { + "message": "alçària", + "description": "(function name) Get the number of rows." + }, + "microbit.Image.height.summary": { + "message": "Obté el nombre de files.", + "description": "Get the number of rows." + }, + "microbit.Image.set_pixel": { + "message": "estableix píxel", + "description": "(function name) Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.summary": { + "message": "Estableix la brillantor d'un píxel.", + "description": "Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.param-name.value": { + "message": "valor", + "description": "(parameter name) The brightness as an integer between 0 (dark) and 9 (bright)" + }, + "microbit.Image.set_pixel.param-doc.value": { + "message": "La brillantor com a nombre enter entre 0 (fosc) i 9 (brillant)", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.set_pixel.param-doc.x": { + "message": "El nombre de la columna", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.set_pixel.param-doc.y": { + "message": "El nombre de la fila", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel": { + "message": "obté píxel", + "description": "(function name) Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.summary": { + "message": "Obté la brillantor d'un píxel.", + "description": "Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.get_pixel.param-doc.x": { + "message": "El nombre de la columna", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.get_pixel.param-doc.y": { + "message": "El nombre de la fila", + "description": "Parameter docs" + }, + "microbit.Image.shift_left": { + "message": "desplaça a l'esquerra", + "description": "(function name) Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.summary": { + "message": "Crea una imatge nova movent-la cap a l'esquerra.", + "description": "Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_left.param-doc.n": { + "message": "El nombre de columnes per desplaçar-se", + "description": "Parameter docs" + }, + "microbit.Image.shift_right": { + "message": "desplaça a la dreta", + "description": "(function name) Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.summary": { + "message": "Crea una imatge nova movent-la cap a la dreta.", + "description": "Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_right.param-doc.n": { + "message": "El nombre de columnes per desplaçar-se", + "description": "Parameter docs" + }, + "microbit.Image.shift_up": { + "message": "desplaça cap amunt", + "description": "(function name) Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.summary": { + "message": "Crea una imatge nova desplaçant la imatge cap amunt.", + "description": "Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_up.param-doc.n": { + "message": "El nombre de files per desplaçar-se", + "description": "Parameter docs" + }, + "microbit.Image.shift_down": { + "message": "desplaça cap avall", + "description": "(function name) Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.summary": { + "message": "Crea una imatge nova desplaçant-la cap avall.", + "description": "Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_down.param-doc.n": { + "message": "El nombre de files per desplaçar-se", + "description": "Parameter docs" + }, + "microbit.Image.crop": { + "message": "retalla", + "description": "(function name) Create a new image by cropping the picture." + }, + "microbit.Image.crop.summary": { + "message": "Crea una imatge nova retallant la imatge.", + "description": "Create a new image by cropping the picture." + }, + "microbit.Image.crop.param-name.h": { + "message": "h", + "description": "(parameter name) The crop height" + }, + "microbit.Image.crop.param-doc.h": { + "message": "L'alçària del retall", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.w": { + "message": "w", + "description": "(parameter name) The crop width" + }, + "microbit.Image.crop.param-doc.w": { + "message": "L'amplada del retall", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.x": { + "message": "x", + "description": "(parameter name) The crop offset column" + }, + "microbit.Image.crop.param-doc.x": { + "message": "La columna de desplaçament del retall", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.y": { + "message": "y", + "description": "(parameter name) The crop offset row" + }, + "microbit.Image.crop.param-doc.y": { + "message": "La fila de desplaçament del retall", + "description": "Parameter docs" + }, + "microbit.Image.copy": { + "message": "còpia ", + "description": "(function name) Create an exact copy of the image." + }, + "microbit.Image.copy.summary": { + "message": "Crea una còpia exacta de la imatge", + "description": "Create an exact copy of the image." + }, + "microbit.Image.invert": { + "message": "inverteix", + "description": "(function name) Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.invert.summary": { + "message": "Crea una imatge nova invertint la brillantor dels píxels de la imatge\nfont.", + "description": "Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.fill": { + "message": "omple", + "description": "(function name) Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.summary": { + "message": "Assigna la brillantor de tots els píxels de la imatge", + "description": "Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.param-name.value": { + "message": "valor", + "description": "(parameter name) The new brightness as a number between 0 (dark) and 9 (bright)." + }, + "microbit.Image.fill.param-doc.value": { + "message": "La nova brillantor com a nombre entre 0 (fosc) i 9 (brillant).", + "description": "Parameter docs" + }, + "microbit.Image.blit": { + "message": "blit ", + "description": "(function name) Copy an area from another image into this image." + }, + "microbit.Image.blit.summary": { + "message": "Copia una àrea d'una altra imatge a aquesta imatge.", + "description": "Copy an area from another image into this image." + }, + "microbit.Image.blit.param-name.h": { + "message": "h", + "description": "(parameter name) The number of rows to copy" + }, + "microbit.Image.blit.param-doc.h": { + "message": "El nombre de files a copiar", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.src": { + "message": "font ", + "description": "(parameter name) The source image" + }, + "microbit.Image.blit.param-doc.src": { + "message": "La imatge font", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.w": { + "message": "w", + "description": "(parameter name) The number of columns to copy" + }, + "microbit.Image.blit.param-doc.w": { + "message": "El nombre de columnes a copiar", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.x": { + "message": "x", + "description": "(parameter name) The starting column offset in the source image" + }, + "microbit.Image.blit.param-doc.x": { + "message": "Desplaçament de la columna inicial a la imatge d'origen", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.xdest": { + "message": "xdest", + "description": "(parameter name) The column offset to modify in this image" + }, + "microbit.Image.blit.param-doc.xdest": { + "message": "El desplaçament de columna a modificar en aquesta imatge", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.y": { + "message": "y", + "description": "(parameter name) The starting row offset in the source image" + }, + "microbit.Image.blit.param-doc.y": { + "message": "Desplaçament de la fila inicial a la imatge d'origen", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.ydest": { + "message": "ydest", + "description": "(parameter name) The row offset to modify in this image" + }, + "microbit.Image.blit.param-doc.ydest": { + "message": "El desplaçament de fila que cal modificar en aquesta imatge", + "description": "Parameter docs" + }, + "microbit.Image.__repr__": { + "message": "repr - Obté una representació de cadena compacta de la imatge.", + "description": "(function name) Get a compact string representation of the image." + }, + "microbit.Image.__repr__.summary": { + "message": "Obté una representació de cadena compacta de la imatge.", + "description": "Get a compact string representation of the image." + }, + "microbit.Image.__str__": { + "message": "str", + "description": "(function name) Get a readable string representation of the image." + }, + "microbit.Image.__str__.summary": { + "message": "Obté una representació de cadena llegible de la imatge.", + "description": "Get a readable string representation of the image." + }, + "microbit.Image.__add__": { + "message": "afegeix", + "description": "(function name) Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.summary": { + "message": "Crea una imatge nova afegint els valors de brillantor de les dues\nimatges per a cada píxel.", + "description": "Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.param-name.other": { + "message": "altre", + "description": "(parameter name) The image to add." + }, + "microbit.Image.__add__.param-doc.other": { + "message": "La imatge a afegir.", + "description": "Parameter docs" + }, + "microbit.Image.__sub__": { + "message": "sub", + "description": "(function name) Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.summary": { + "message": "Crea una imatge nova restant els valors de brillantor d'una altra imatge d'aquesta imatge.", + "description": "Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.param-name.other": { + "message": "altre", + "description": "(parameter name) The image to subtract." + }, + "microbit.Image.__sub__.param-doc.other": { + "message": "La imatge a restar.", + "description": "Parameter docs" + }, + "microbit.Image.__mul__": { + "message": "mul", + "description": "(function name) Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.summary": { + "message": "Crea una imatge nova multiplicant la brillantor de cada píxel per\n{{n}}.", + "description": "Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to multiply by." + }, + "microbit.Image.__mul__.param-doc.n": { + "message": "El valor per multiplicar.", + "description": "Parameter docs" + }, + "microbit.Image.__truediv__": { + "message": "truediv", + "description": "(function name) Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.summary": { + "message": "Crea una imatge nova dividint la brillantor de cada píxel per\n{{n}}.", + "description": "Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to divide by." + }, + "microbit.Image.__truediv__.param-doc.n": { + "message": "El valor del divisor.", + "description": "Parameter docs" + }, + "microbit.SoundEvent.LOUD": { + "message": "so fort", + "description": "(field name) Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.LOUD.summary": { + "message": "Representa la transició dels esdeveniments de so, des de {{quiet}} a {{loud}} com picant de mans o cridant.", + "description": "Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.QUIET": { + "message": "so fluix", + "description": "(field name) Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.SoundEvent.QUIET.summary": { + "message": "Representa la transició dels esdeveniments de so, des de {{loud}} a {{quiet}} com parlant o música de fons.", + "description": "Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.Sound": { + "message": "so", + "description": "(class name) The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.summary": { + "message": "Els sons integrats es poden reproduir mitjançant {{audio.play(Sound.NAME)}}.", + "description": "The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.GIGGLE": { + "message": "riure", + "description": "(field name) Giggling sound." + }, + "microbit.Sound.GIGGLE.summary": { + "message": "So de riure", + "description": "Giggling sound." + }, + "microbit.Sound.HAPPY": { + "message": "feliç", + "description": "(field name) Happy sound." + }, + "microbit.Sound.HAPPY.summary": { + "message": "So feliç.", + "description": "Happy sound." + }, + "microbit.Sound.HELLO": { + "message": "hola", + "description": "(field name) Greeting sound." + }, + "microbit.Sound.HELLO.summary": { + "message": "So de salutació.", + "description": "Greeting sound." + }, + "microbit.Sound.MYSTERIOUS": { + "message": "misteriós", + "description": "(field name) Mysterious sound." + }, + "microbit.Sound.MYSTERIOUS.summary": { + "message": "So misteriós.", + "description": "Mysterious sound." + }, + "microbit.Sound.SAD": { + "message": "tristesa", + "description": "(field name) Sad sound." + }, + "microbit.Sound.SAD.summary": { + "message": "So trist.", + "description": "Sad sound." + }, + "microbit.Sound.SLIDE": { + "message": "so lliscant", + "description": "(field name) Sliding sound." + }, + "microbit.Sound.SLIDE.summary": { + "message": "So lliscant", + "description": "Sliding sound." + }, + "microbit.Sound.SOARING": { + "message": "creixent", + "description": "(field name) Soaring sound." + }, + "microbit.Sound.SOARING.summary": { + "message": "So creixent.", + "description": "Soaring sound." + }, + "microbit.Sound.SPRING": { + "message": "primaveral", + "description": "(field name) Spring sound." + }, + "microbit.Sound.SPRING.summary": { + "message": "So primaveral.", + "description": "Spring sound." + }, + "microbit.Sound.TWINKLE": { + "message": "centelleig", + "description": "(field name) Twinkling sound." + }, + "microbit.Sound.TWINKLE.summary": { + "message": "So de centelleig.", + "description": "Twinkling sound." + }, + "microbit.Sound.YAWN": { + "message": "badall", + "description": "(field name) Yawning sound." + }, + "microbit.Sound.YAWN.summary": { + "message": "So de badall.", + "description": "Yawning sound." + }, + "microbit.accelerometer": { + "message": "acceleròmetre", + "description": "(module name) Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.summary": { + "message": "Mesura l'acceleració de la micro:bit i reconeix els gestos.", + "description": "Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.get_x": { + "message": "obté x", + "description": "(function name) Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_x.summary": { + "message": "Obté la mesura de l'acceleració a l'eix {{x}} en mili-g.", + "description": "Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_y": { + "message": "obté y", + "description": "(function name) Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_y.summary": { + "message": "Obté la mesura de l'acceleració a l'eix {{y}} en mili-g.", + "description": "Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_z": { + "message": "obté z", + "description": "(function name) Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_z.summary": { + "message": "Obté la mesura de l'acceleració a l'eix {{z}} en mili-g.", + "description": "Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_values": { + "message": "obté valors", + "description": "(function name) Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_values.summary": { + "message": "Obté les mesures d'acceleració en tots els eixos alhora com una tupla.", + "description": "Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_strength": { + "message": "obté la força", + "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.get_strength.summary": { + "message": "Obté la mesura de l'acceleració de tots els eixos combinats, com un nombre enter positiu. Aquest serà la suma Pitagòrica dels eixos X, Y i Z.", + "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.current_gesture": { + "message": "El gest actual", + "description": "(function name) Get the name of the current gesture." + }, + "microbit.accelerometer.current_gesture.summary": { + "message": "Obté el nom del gest actual.", + "description": "Get the name of the current gesture." + }, + "microbit.accelerometer.is_gesture": { + "message": "is gesture", + "description": "(function name) Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.summary": { + "message": "Comprova si el gest nomenat està actiu actualment.", + "description": "Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.param-name.name": { + "message": "nom", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.is_gesture.param-doc.name": { + "message": "El nom del gest", + "description": "Parameter docs" + }, + "microbit.accelerometer.was_gesture": { + "message": "was gesture", + "description": "(function name) Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.summary": { + "message": "Comprova si el gest nomenat ha estat actiu des de l'última crida.", + "description": "Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.param-name.name": { + "message": "nom", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.was_gesture.param-doc.name": { + "message": "El nom del gest", + "description": "Parameter docs" + }, + "microbit.accelerometer.get_gestures": { + "message": "obté gestos", + "description": "(function name) Return a tuple of the gesture history." + }, + "microbit.accelerometer.get_gestures.summary": { + "message": "Retorna una tupla de l'historial de gestos.", + "description": "Return a tuple of the gesture history." + }, + "microbit.accelerometer.set_range": { + "message": "set range", + "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.summary": { + "message": "Estableix l'interval de la sensibilitat de l'acceleròmetre, en g (gravetat estàndard), al valor més proper acceptat pel maquinari, arrodonit a {{2}}, {{4}}, o {{8}}", + "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.param-name.value": { + "message": "valor", + "description": "(parameter name) New range for the accelerometer, an integer in ``g``." + }, + "microbit.accelerometer.set_range.param-doc.value": { + "message": "Nou interval per a l'acceleròmetre, un nombre enter a {{g}}.", + "description": "Parameter docs" + }, + "microbit.audio": { + "message": "àudio", + "description": "(module name) Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.summary": { + "message": "Reprodueix sons amb la micro:bit (importa {{audio}} per a la compatibilitat amb V1).", + "description": "Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.play": { + "message": "play", + "description": "(function name) Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.summary": { + "message": "Reprodueix un so incorporat, un efecte de só o marcs d'àudio personalitzats.", + "description": "Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.param-name.pin": { + "message": "pin", + "description": "(parameter name) An optional argument to specify the output pin can be used to override the default of ``pin0``. If we do not want any sound to play we can use ``pin=None``." + }, + "microbit.audio.play.param-doc.pin": { + "message": "Es pot utilitzar un argument opcional per especificar el pin de sortida per anul·lar el valor predeterminat de {{pin0}}. Si no vols que es reprodueixi cap so, pots utilitzar {{pin=None}}.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.return_pin": { + "message": "retorna el pin", + "description": "(parameter name) Specifies a differential edge connector pin to connect to an external speaker instead of ground. This is ignored for the **V2** revision." + }, + "microbit.audio.play.param-doc.return_pin": { + "message": "Especifica un pin diferent del connector d'expansió per connectar-lo a un altaveu extern en lloc de posar a terra. Això s'ignora per a la revisió **V2**.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.source": { + "message": "origen", + "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." + }, + "microbit.audio.play.param-doc.source": { + "message": "Un objecte de {{Sound}} incorporat com {{Sound.GIGGLE}}, un {{SoundEffect}} o una data de mostra com un iterable de {{AudioFrame}} .", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.wait": { + "message": "espera", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the sound is complete." + }, + "microbit.audio.play.param-doc.wait": { + "message": "Si {{wait}} és {{True}}, aquesta funció es bloquejarà fins que s'acabi el so.", + "description": "Parameter docs" + }, + "microbit.audio.is_playing": { + "message": "està reproduint", + "description": "(function name) Check whether a sound is playing." + }, + "microbit.audio.is_playing.summary": { + "message": "Verifica si s'està reproduint un so.", + "description": "Check whether a sound is playing." + }, + "microbit.audio.stop": { + "message": "atura", + "description": "(function name) Stop all audio playback." + }, + "microbit.audio.stop.summary": { + "message": "Atura tota la reproducció d'àudio.", + "description": "Stop all audio playback." + }, + "microbit.audio.SoundEffect": { + "message": "soundeffect", + "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.summary": { + "message": "Un efecte sonor, compost per un conjunt de paràmetres configurats via el constructor o atributs.", + "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE": { + "message": "forma d'ona sinusoidal", + "description": "(field name) Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { + "message": "Opció d'ona sinusoidal pel paràmetre {{waveform}}.", + "description": "Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { + "message": "forma d'ona de dent de serra", + "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { + "message": "Opció d'ona de dent de serra pel paràmetre {{waveform}}.", + "description": "Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE": { + "message": "forma d'ona triangular", + "description": "(field name) Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE.summary": { + "message": "Opció d'ona triangular pel paràmetre {{waveform}}.", + "description": "Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE": { + "message": "forma d'ona quadrada", + "description": "(field name) Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { + "message": "Opció d'ona quadrada pel paràmetre {{waveform}}.", + "description": "Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE": { + "message": "forma d'ona de soroll", + "description": "(field name) Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE.summary": { + "message": "Opció d'ona de soroll pel paràmetre {{waveform}}.", + "description": "Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR": { + "message": "forma lineal", + "description": "(field name) Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR.summary": { + "message": "Opció d'ona lineal pel paràmetre {{shape}}.", + "description": "Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE": { + "message": "forma de corba", + "description": "(field name) Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE.summary": { + "message": "Opció d'interpolació de corba usada pel paràmetre {{shape}}.", + "description": "Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG": { + "message": "forma logarítmica", + "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG.summary": { + "message": "Opció d'interpolació logarítmica utilitzada pel paràmetre {{shape}}.", + "description": "Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE": { + "message": "fx cap", + "description": "(field name) No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE.summary": { + "message": "Opció de cap efecte utilitzat pel paràmetre {{fx}}.", + "description": "No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO": { + "message": "fx trémolo", + "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO.summary": { + "message": "Opció d'efecte trèmolo utilitzat pel paràmetre {{fx}}.", + "description": "Tremelo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO": { + "message": "fx vibrato", + "description": "(field name) Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO.summary": { + "message": "Opció d'efecte vibrato utilitzat pel paràmetre {{fx}}.", + "description": "Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE": { + "message": "Efecte gorjeu", + "description": "(field name) Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE.summary": { + "message": "Opció d'efecte gorjeu utilitzat pel paràmetre {{fx}}.", + "description": "Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.freq_start": { + "message": "freqüència inicial", + "description": "(field name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_start.summary": { + "message": "Freqüència inicial en Hertz (Hz), un nombre entre {{0}} i {{9999}}", + "description": "Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end": { + "message": "frequència final", + "description": "(field name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end.summary": { + "message": "Freqüència final en Hertz (Hz), un nombre entre {{0}} i {{9999}}", + "description": "End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration": { + "message": "Durada - duració", + "description": "(field name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration.summary": { + "message": "Durada del so en mil·lisegons, un nombre entre {{0}} and {{9999}}", + "description": "Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.vol_start": { + "message": "volum inicial ", + "description": "(field name) Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_start.summary": { + "message": "Volum inicial, un nombre entre {{0}} and {{255}}", + "description": "Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end": { + "message": "volum final ", + "description": "(field name) End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end.summary": { + "message": "Valor del volum final, un nombre entre {{0}} and {{255}}", + "description": "End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.waveform": { + "message": "forma d'ona", + "description": "(field name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.waveform.summary": { + "message": "Tipus de forma d'ona, un d'aquest valors: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (randomly generated noise)", + "description": "Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.fx": { + "message": "efecte", + "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.fx.summary": { + "message": "Efecte a afegir al so, un dels següents valors: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, or {{FX_NONE}}", + "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.shape": { + "message": "forma", + "description": "(field name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.shape.summary": { + "message": "El tipus de corba d'interpolació entre les freqüències inicial i final, diferents formes d'ona tenen diferents ràtios de canvi en la freqüència. Un dels següents valors: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", + "description": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.__init__": { + "message": "inicial", + "description": "(function name) Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.summary": { + "message": "Crea un efecte de so nou.", + "description": "Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.param-name.duration": { + "message": "Durada - duració", + "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.duration": { + "message": "Duració del so en mil·lisegons, un nombre entre {{0}} i {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_end": { + "message": "frequència final", + "description": "(parameter name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_end": { + "message": "Freqüència final en Hertz (Hz), un nombre entre {{0}} i {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_start": { + "message": "freqüència inicial", + "description": "(parameter name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_start": { + "message": "Freqüència inicial en Hertz (Hz), un nombre entre {{0}} i {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.fx": { + "message": "efecte", + "description": "(parameter name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.fx": { + "message": "Efecte a afegir al so, un del següents valors: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, or {{FX_NONE}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.shape": { + "message": "forma", + "description": "(parameter name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.shape": { + "message": "El tipus de corba d'interpolació entre les freqüències inicial i final, diferents formes d'ona tenen diferents ràtios de canvi en la freqüència. Un dels següents valors: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_end": { + "message": "volum final ", + "description": "(parameter name) End volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_end": { + "message": "Valor del volum final, un nombre entre {{0}} i {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_start": { + "message": "volum inicial ", + "description": "(parameter name) Start volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_start": { + "message": "Valor del volum inicial, un nombre entre {{0}} i {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.waveform": { + "message": "forma d'ona", + "description": "(parameter name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)." + }, + "microbit.audio.SoundEffect.__init__.param-doc.waveform": { + "message": "Tipus de forma d'ona, un d'aquests valors: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (soroll generat aleatòriament).", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.copy": { + "message": "còpia ", + "description": "(function name) Create a copy of this ``SoundEffect``." + }, + "microbit.audio.SoundEffect.copy.summary": { + "message": "Crea una còpia d'aquest {{SoundEffect}}.", + "description": "Create a copy of this ``SoundEffect``." + }, + "microbit.audio.AudioFrame": { + "message": "audioframe", + "description": "(class name) An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.summary": { + "message": "Un objecte {{AudioFrame}} és una llista de 32 mostres cadascuna de les quals és un byte sense signar\n(nombre enter entre 0 i 255).", + "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.copyfrom": { + "message": "copia desde", + "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.summary": { + "message": "Sobreposa les dades d'aquest {{AudioFrame}} amb les dades d'una altra instància {{AudioFrame}} .", + "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.param-name.other": { + "message": "altre", + "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." + }, + "microbit.audio.AudioFrame.copyfrom.param-doc.other": { + "message": "{{AudioFrame}} instància de la qual copiar les dades.", + "description": "Parameter docs" + }, + "microbit.compass": { + "message": "brúixola", + "description": "(module name) Use the built-in compass." + }, + "microbit.compass.summary": { + "message": "Utilitza la brúixola integrada.", + "description": "Use the built-in compass." + }, + "microbit.compass.calibrate": { + "message": "calibrar", + "description": "(function name) Starts the calibration process." + }, + "microbit.compass.calibrate.summary": { + "message": "Comença el procés de calibració", + "description": "Starts the calibration process." + }, + "microbit.compass.is_calibrated": { + "message": "s'ha calibrat", + "description": "(function name) Check is the compass is calibrated." + }, + "microbit.compass.is_calibrated.summary": { + "message": "Verifica si la brúixola està calibrada.", + "description": "Check is the compass is calibrated." + }, + "microbit.compass.clear_calibration": { + "message": "esborra la calibració", + "description": "(function name) Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.clear_calibration.summary": { + "message": "Desfà el calibratge, fent que la brúixola torni a estar sense calibració.", + "description": "Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.get_x": { + "message": "obté x\n", + "description": "(function name) Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_x.summary": { + "message": "Obté la intensitat del camp magnètic de l'eix {{x}} .", + "description": "Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_y": { + "message": "obté y", + "description": "(function name) Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_y.summary": { + "message": "Obté la intensitat del camp magnètic de l'eix {{y}} .", + "description": "Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_z": { + "message": "obté z", + "description": "(function name) Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.get_z.summary": { + "message": "Obté la intensitat del camp magnètic a l'eix {{z}}.", + "description": "Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.heading": { + "message": "heading", + "description": "(function name) Get the compass heading." + }, + "microbit.compass.heading.summary": { + "message": "Obté l'orientació de la brúixola.", + "description": "Get the compass heading." + }, + "microbit.compass.get_field_strength": { + "message": "obté la intensitat del camp", + "description": "(function name) Get the magnitude of the magnetic field around the device." + }, + "microbit.compass.get_field_strength.summary": { + "message": "Obté la magnitud del camp magnètic al voltant del dispositiu.", + "description": "Get the magnitude of the magnetic field around the device." + }, + "microbit.display": { + "message": "pantalla", + "description": "(module name) Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.summary": { + "message": "Mostra text, imatges i animacions a la pantalla LED 5×5.", + "description": "Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.get_pixel": { + "message": "obté píxel", + "description": "(function name) Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.summary": { + "message": "Obté la brillantor del LED a la columna {{x}} i la fila {{y}}.", + "description": "Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.get_pixel.param-doc.x": { + "message": "La columna de la pantalla (0...4)", + "description": "Parameter docs" + }, + "microbit.display.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.get_pixel.param-doc.y": { + "message": "La fila de la pantalla (0...4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel": { + "message": "estableix píxel", + "description": "(function name) Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.summary": { + "message": "Estableix la brillantor del LED a la columna {{x}} i la fila {{y}}.", + "description": "Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.param-name.value": { + "message": "valor", + "description": "(parameter name) The brightness between 0 (off) and 9 (bright)" + }, + "microbit.display.set_pixel.param-doc.value": { + "message": "La brillantor entre 0 (apagat) i 9 (brillant)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.set_pixel.param-doc.x": { + "message": "La columna de la pantalla (0...4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.set_pixel.param-doc.y": { + "message": "La fila de la pantalla (0...4)", + "description": "Parameter docs" + }, + "microbit.display.clear": { + "message": "clear", + "description": "(function name) Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.clear.summary": { + "message": "Estableix la brillantor de tots els leds a 0 (apagat).", + "description": "Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.show": { + "message": "mostra", + "description": "(function name) Shows images, letters or digits on the LED display." + }, + "microbit.display.show.summary": { + "message": "Mostra imatges, lletres o dígits en la pantalla LED.", + "description": "Shows images, letters or digits on the LED display." + }, + "microbit.display.show.param-name.clear": { + "message": "clear", + "description": "(parameter name) If ``clear`` is ``True``, the display will be cleared after the sequence has finished." + }, + "microbit.display.show.param-doc.clear": { + "message": "Si {{clear}} és {{True}}, la pantalla s'esborrarà un cop finalitzada la seqüència.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.delay": { + "message": "retard", + "description": "(parameter name) Each letter, digit or image is shown with ``delay`` milliseconds between them." + }, + "microbit.display.show.param-doc.delay": { + "message": "Cada lletra, dígit o imatge es mostra amb un {{delay}} mil·lisegons entre ells.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.image": { + "message": "imatge", + "description": "(parameter name) A string, number, image or list of images to show." + }, + "microbit.display.show.param-doc.image": { + "message": "Una cadena, un nombre, una imatge o una llista d'imatges per mostrar.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.loop": { + "message": "bucle", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.show.param-doc.loop": { + "message": "Si el {{loop}} és {{True}}, l'animació es repetirà per sempre.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.wait": { + "message": "espera", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.show.param-doc.wait": { + "message": "Si {{wait}} és {{True}}, aquesta funció es bloquejarà fins que s'acabi l'animació, en cas contrari, l'animació passarà en segon pla.", + "description": "Parameter docs" + }, + "microbit.display.scroll": { + "message": "scroll", + "description": "(function name) Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.summary": { + "message": "Desplaça un número o text per la pantalla LED.", + "description": "Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.param-name.delay": { + "message": "retard", + "description": "(parameter name) The ``delay`` parameter controls how fast the text is scrolling." + }, + "microbit.display.scroll.param-doc.delay": { + "message": "El paràmetre {{delay}} controla la rapidesa amb què es desplaça el text.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.loop": { + "message": "bucle", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.scroll.param-doc.loop": { + "message": "Si el {{loop}} és {{True}}, l'animació es repetirà per sempre.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.monospace": { + "message": "monospace", + "description": "(parameter name) If ``monospace`` is ``True``, the characters will all take up 5 pixel-columns in width, otherwise there will be exactly 1 blank pixel-column between each character as they scroll." + }, + "microbit.display.scroll.param-doc.monospace": { + "message": "Si {{monospace}} és {{True}}, tots els caràcters ocuparan 5 columnes de píxels d'amplada, en cas contrari, hi haurà exactament 1 columna de píxels en blanc entre cada caràcter mentre es desplacen.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.text": { + "message": "text", + "description": "(parameter name) The string to scroll. If ``text`` is an integer or float it is first converted to a string using ``str()``." + }, + "microbit.display.scroll.param-doc.text": { + "message": "La cadena per a desplaçar. Si {{text}} és un nombre enter o flotant, primer es converteix en una cadena mitjançant {{str()}}.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.wait": { + "message": "espera", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.scroll.param-doc.wait": { + "message": "Si {{wait}} és {{True}}, aquesta funció es bloquejarà fins que s'acabi l'animació, en cas contrari, l'animació passarà en segon pla.", + "description": "Parameter docs" + }, + "microbit.display.on": { + "message": "on", + "description": "(function name) Turn on the LED display." + }, + "microbit.display.on.summary": { + "message": "Encén la pantalla LED.", + "description": "Turn on the LED display." + }, + "microbit.display.off": { + "message": "off", + "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.off.summary": { + "message": "Apaga la pantalla LED (desactivar la pantalla et permet reutilitzar els pins GPIO per a altres finalitats).", + "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.is_on": { + "message": "is on", + "description": "(function name) Check whether the LED display is enabled." + }, + "microbit.display.is_on.summary": { + "message": "Comprova si la pantalla LED està habilitada.", + "description": "Check whether the LED display is enabled." + }, + "microbit.display.read_light_level": { + "message": "llegir el nivell de llum", + "description": "(function name) Read the light level." + }, + "microbit.display.read_light_level.summary": { + "message": "Llegeix el nivell de llum.", + "description": "Read the light level." + }, + "microbit.i2c": { + "message": "i2c", + "description": "(module name) Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.summary": { + "message": "Comunicar-se amb dispositius mitjançant el protocol de bus I²C.", + "description": "Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.init": { + "message": "init", + "description": "(function name) Re-initialize a peripheral." + }, + "microbit.i2c.init.summary": { + "message": "Reinicialitzar un perifèric.", + "description": "Re-initialize a peripheral." + }, + "microbit.i2c.init.param-name.freq": { + "message": "freq", + "description": "(parameter name) clock frequency" + }, + "microbit.i2c.init.param-doc.freq": { + "message": "freqüència del rellotge", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.scl": { + "message": "scl", + "description": "(parameter name) ``scl`` pin (default 19)" + }, + "microbit.i2c.init.param-doc.scl": { + "message": "pin {{scl}} (per defecte 19)", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.sda": { + "message": "sda", + "description": "(parameter name) ``sda`` pin (default 20)" + }, + "microbit.i2c.init.param-doc.sda": { + "message": "Pin {{sda}} (per defecte 20)", + "description": "Parameter docs" + }, + "microbit.i2c.scan": { + "message": "scan", + "description": "(function name) Scan the bus for devices." + }, + "microbit.i2c.scan.summary": { + "message": "Escaneja el bus dels dispositius", + "description": "Scan the bus for devices." + }, + "microbit.i2c.read": { + "message": "llegeix", + "description": "(function name) Read bytes from a device.." + }, + "microbit.i2c.read.summary": { + "message": "Llegeix bytes des d'un dispositiu..", + "description": "Read bytes from a device.." + }, + "microbit.i2c.read.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.read.param-doc.addr": { + "message": "L'adreça de 7-bit del dispositiu", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.n": { + "message": "n", + "description": "(parameter name) The number of bytes to read" + }, + "microbit.i2c.read.param-doc.n": { + "message": "El nombre de bytes a llegir", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.repeat": { + "message": "repeteix", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.read.param-doc.repeat": { + "message": "Si {{True}}, no s'enviarà cap bit d'aturada", + "description": "Parameter docs" + }, + "microbit.i2c.write": { + "message": "escriu", + "description": "(function name) Write bytes to a device." + }, + "microbit.i2c.write.summary": { + "message": "Escriu bytes en un dispositiu", + "description": "Write bytes to a device." + }, + "microbit.i2c.write.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.write.param-doc.addr": { + "message": "L'adreça de 7-bit del dispositiu", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A buffer containing the bytes to write" + }, + "microbit.i2c.write.param-doc.buf": { + "message": "Una memòria intermèdia que conté els bytes per escriure", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.repeat": { + "message": "repeteix", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.write.param-doc.repeat": { + "message": "Si {{True}}, no s'enviarà cap bit d'aturada", + "description": "Parameter docs" + }, + "microbit.microphone": { + "message": "micròfon", + "description": "(module name) Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.summary": { + "message": "Respon al so fent servir el micròfon integrat (només V2).", + "description": "Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.current_event": { + "message": "esdeveniment actual", + "description": "(function name) Get the last recorded sound event" + }, + "microbit.microphone.current_event.summary": { + "message": "Obté l'últim esdeveniment de sonor gravat", + "description": "Get the last recorded sound event" + }, + "microbit.microphone.was_event": { + "message": "va ser un esdeveniment", + "description": "(function name) Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.summary": { + "message": "Comprova si s'ha sentit un so almenys una vegada des de l'última crida.", + "description": "Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.param-name.event": { + "message": "esdeveniment", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.was_event.param-doc.event": { + "message": "L'esdeveniment per comprovar, com ara {{SoundEvent.LOUD}} o {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.is_event": { + "message": "és un esdeveniment", + "description": "(function name) Check the most recent sound event detected." + }, + "microbit.microphone.is_event.summary": { + "message": "Comprova l'esdeveniment sonor més recent detectat.", + "description": "Check the most recent sound event detected." + }, + "microbit.microphone.is_event.param-name.event": { + "message": "esdeveniment", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.is_event.param-doc.event": { + "message": "L'esdeveniment per comprovar, com ara {{SoundEvent.LOUD}} o {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.get_events": { + "message": "obté esdeveniments", + "description": "(function name) Get the sound event history as a tuple." + }, + "microbit.microphone.get_events.summary": { + "message": "Obté l'historial d'esdeveniments sonors com una tupla.", + "description": "Get the sound event history as a tuple." + }, + "microbit.microphone.set_threshold": { + "message": "estableix llindar", + "description": "(function name) Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.summary": { + "message": "Assigna el llinar per un esdeveniment sonor", + "description": "Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.param-name.event": { + "message": "esdeveniment", + "description": "(parameter name) A sound event, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``." + }, + "microbit.microphone.set_threshold.param-doc.event": { + "message": "Un esdeveniment sonor, com ara {{SoundEvent.LOUD}} o {{SoundEvent.QUIET}}.", + "description": "Parameter docs" + }, + "microbit.microphone.set_threshold.param-name.value": { + "message": "valor", + "description": "(parameter name) The threshold level in the range 0-255." + }, + "microbit.microphone.set_threshold.param-doc.value": { + "message": "El llindar en l'interval 0-255.", + "description": "Parameter docs" + }, + "microbit.microphone.sound_level": { + "message": "nivell de so", + "description": "(function name) Get the sound pressure level." + }, + "microbit.microphone.sound_level.summary": { + "message": "Obté el nivell de pressió sonora.", + "description": "Get the sound pressure level." + }, + "microbit.speaker": { + "message": "altaveu", + "description": "(module name) Control the built-in speaker (V2 only)." + }, + "microbit.speaker.summary": { + "message": "Controla l'altaveu integrat (només V2).", + "description": "Control the built-in speaker (V2 only)." + }, + "microbit.speaker.off": { + "message": "off", + "description": "(function name) Turn the speaker off." + }, + "microbit.speaker.off.summary": { + "message": "Apaga l'altaveu.", + "description": "Turn the speaker off." + }, + "microbit.speaker.on": { + "message": "on", + "description": "(function name) Turn the speaker on." + }, + "microbit.speaker.on.summary": { + "message": "Encén l'altaveu.", + "description": "Turn the speaker on." + }, + "microbit.spi": { + "message": "spi", + "description": "(module name) Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.summary": { + "message": "Comunica amb dispositius mitjançant el bus d'interfície perifèrica sèrie (SPI).", + "description": "Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.init": { + "message": "init", + "description": "(function name) Initialize SPI communication." + }, + "microbit.spi.init.summary": { + "message": "Inicialitzar la comunicació SPI.", + "description": "Initialize SPI communication." + }, + "microbit.spi.init.param-name.baudrate": { + "message": "Velocitat de bauds", + "description": "(parameter name) The speed of communication." + }, + "microbit.spi.init.param-doc.baudrate": { + "message": "La velocitat de comunicació.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.bits": { + "message": "bits", + "description": "(parameter name) The width in bits of each transfer. Currently only ``bits=8`` is supported. However, this may change in the future." + }, + "microbit.spi.init.param-doc.bits": { + "message": "L'amplada en bits de cada transferència. Actualment només {{bits=8}} és acceptada . Tot i que això pot canviar en el futur", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.miso": { + "message": "miso", + "description": "(parameter name) miso pin (default 14)" + }, + "microbit.spi.init.param-doc.miso": { + "message": "miso pin (per defecte 14)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mode": { + "message": "mode", + "description": "(parameter name) Determines the combination of clock polarity and phase - `see online table `_." + }, + "microbit.spi.init.param-doc.mode": { + "message": "Determina la combinació de polaritat i fase del rellotge: `consulta la taula en línia `_.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mosi": { + "message": "mosi", + "description": "(parameter name) mosi pin (default 15)" + }, + "microbit.spi.init.param-doc.mosi": { + "message": "mosi pin (per defecte 15)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.sclk": { + "message": "sclk", + "description": "(parameter name) sclk pin (default 13)" + }, + "microbit.spi.init.param-doc.sclk": { + "message": "pin sclk (per defecte 13)", + "description": "Parameter docs" + }, + "microbit.spi.read": { + "message": "llegeix", + "description": "(function name) Read bytes." + }, + "microbit.spi.read.summary": { + "message": "Llegeix bytes", + "description": "Read bytes." + }, + "microbit.spi.read.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) Maximum number of bytes to read." + }, + "microbit.spi.read.param-doc.nbytes": { + "message": "Nombre màxim de bytes per llegir.", + "description": "Parameter docs" + }, + "microbit.spi.write": { + "message": "escriu", + "description": "(function name) Write bytes to the bus." + }, + "microbit.spi.write.summary": { + "message": "Escriu bytes al bus.", + "description": "Write bytes to the bus." + }, + "microbit.spi.write.param-name.buffer": { + "message": "memòria intermèdia", + "description": "(parameter name) A buffer to read data from." + }, + "microbit.spi.write.param-doc.buffer": { + "message": "Una memòria intermèdia per a llegir dades.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto": { + "message": "write readinto", + "description": "(function name) Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.summary": { + "message": "Escriu la memòria intermèdia {{out}} al bus i llegeix qualsevol resposta a la memòria intermèdia {{in_}}.", + "description": "Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.param-name.in_": { + "message": "in", + "description": "(parameter name) The buffer to read data from." + }, + "microbit.spi.write_readinto.param-doc.in_": { + "message": "La memòria intermèdia per a llegir dades.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto.param-name.out": { + "message": "out", + "description": "(parameter name) The buffer to write any response to." + }, + "microbit.spi.write_readinto.param-doc.out": { + "message": "La memòria intermèdia per a escriure qualsevol resposta.", + "description": "Parameter docs" + }, + "microbit.uart": { + "message": "uart", + "description": "(module name) Communicate with a device using a serial interface." + }, + "microbit.uart.summary": { + "message": "Comunica amb un dispositiu mitjançant una interfície sèrie.", + "description": "Communicate with a device using a serial interface." + }, + "microbit.uart.ODD": { + "message": "senar ", + "description": "(field name) Odd parity" + }, + "microbit.uart.ODD.summary": { + "message": "Paritat senar", + "description": "Odd parity" + }, + "microbit.uart.EVEN": { + "message": "parell", + "description": "(field name) Even parity" + }, + "microbit.uart.EVEN.summary": { + "message": "Paritat parella", + "description": "Even parity" + }, + "microbit.uart.init": { + "message": "init", + "description": "(function name) Initialize serial communication." + }, + "microbit.uart.init.summary": { + "message": "Inicialitzar la comunicació en sèrie.", + "description": "Initialize serial communication." + }, + "microbit.uart.init.param-name.baudrate": { + "message": "Velocitat de bauds", + "description": "(parameter name) The speed of communication." + }, + "microbit.uart.init.param-doc.baudrate": { + "message": "La velocitat de comunicació.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.bits": { + "message": "bits", + "description": "(parameter name) The size of bytes being transmitted. micro:bit only supports 8." + }, + "microbit.uart.init.param-doc.bits": { + "message": "La mida dels bytes que es transmeten. micro:bit només n'admet 8.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.parity": { + "message": "paritat", + "description": "(parameter name) How parity is checked, ``None``, ``uart.ODD`` or ``uart.EVEN``." + }, + "microbit.uart.init.param-doc.parity": { + "message": "Com es verifica la paritat, {{None}}, {{uart.ODD}} o {{uart.EVEN}}.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.rx": { + "message": "rx", + "description": "(parameter name) Receiving pin." + }, + "microbit.uart.init.param-doc.rx": { + "message": "Receiving pin.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.stop": { + "message": "atura", + "description": "(parameter name) The number of stop bits, has to be 1 for micro:bit." + }, + "microbit.uart.init.param-doc.stop": { + "message": "El nombre de bits de parada ha de ser 1 per micro:bit.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.tx": { + "message": "tx", + "description": "(parameter name) Transmitting pin." + }, + "microbit.uart.init.param-doc.tx": { + "message": "Pin transmissor.", + "description": "Parameter docs" + }, + "microbit.uart.any": { + "message": "any", + "description": "(function name) Check if any data is waiting." + }, + "microbit.uart.any.summary": { + "message": "Verifica si hi ha alguna data esperant.", + "description": "Check if any data is waiting." + }, + "microbit.uart.read": { + "message": "llegeix", + "description": "(function name) Read bytes." + }, + "microbit.uart.read.summary": { + "message": "Llegeix bytes", + "description": "Read bytes." + }, + "microbit.uart.read.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read as many bytes as possible" + }, + "microbit.uart.read.param-doc.nbytes": { + "message": "Si s'especifica {{nbytes}}, llegeix com a màxim tants bytes, en cas contrari llegeix tants bytes com sigui possible", + "description": "Parameter docs" + }, + "microbit.uart.readinto": { + "message": "readinto", + "description": "(function name) Read bytes into the ``buf``." + }, + "microbit.uart.readinto.summary": { + "message": "Llegeix bytes al {{buf}}.", + "description": "Read bytes into the ``buf``." + }, + "microbit.uart.readinto.param-name.buf": { + "message": "buf", + "description": "(parameter name) The buffer to write to." + }, + "microbit.uart.readinto.param-doc.buf": { + "message": "La memòria intermèdia a on escriure.", + "description": "Parameter docs" + }, + "microbit.uart.readinto.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read ``len(buf)`` bytes." + }, + "microbit.uart.readinto.param-doc.nbytes": { + "message": "Si s'especifica {{nbytes}}, llegeix com a màxim aquests bytes, en cas contrari llegeix {{len(buf)}} bytes.", + "description": "Parameter docs" + }, + "microbit.uart.readline": { + "message": "readline", + "description": "(function name) Read a line, ending in a newline character." + }, + "microbit.uart.readline.summary": { + "message": "Llegir una línia que acaba en un caràcter de nova línia.", + "description": "Read a line, ending in a newline character." + }, + "microbit.uart.write": { + "message": "escriu", + "description": "(function name) Write a buffer to the bus." + }, + "microbit.uart.write.summary": { + "message": "Escriu una memòria intermèdia al bus", + "description": "Write a buffer to the bus." + }, + "microbit.uart.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A bytes object or a string." + }, + "microbit.uart.write.param-doc.buf": { + "message": "Un objecte bytes o una cadena.", + "description": "Parameter docs" + }, + "micropython": { + "message": "micropython", + "description": "(module name) MicroPython internals." + }, + "micropython.summary": { + "message": "Components interns de MicroPython.", + "description": "MicroPython internals." + }, + "micropython.const": { + "message": "const", + "description": "(function name) Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.summary": { + "message": "S'utilitza per declarar que l'expressió és una constant perquè el compilador pugui\noptimitzar-la.", + "description": "Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.param-name.expr": { + "message": "expr", + "description": "(parameter name) A constant expression." + }, + "micropython.const.param-doc.expr": { + "message": "Una expressió constant", + "description": "Parameter docs" + }, + "micropython.opt_level-1": { + "message": "opt level", + "description": "(function name) Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-1.summary": { + "message": "Obté el nivell d'optimització actual per a la compilació d'scripts.", + "description": "Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-2": { + "message": "opt level", + "description": "(function name) Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.summary": { + "message": "Estableix el nivell d'optimització per a la compilació posterior dels scripts.", + "description": "Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.param-name.level": { + "message": "level", + "description": "(parameter name) An integer optimisation level." + }, + "micropython.opt_level-2.param-doc.level": { + "message": "Un nivell d'optimització enter.", + "description": "Parameter docs" + }, + "micropython.mem_info": { + "message": "informació de la memòria", + "description": "(function name) Print information about currently used memory." + }, + "micropython.mem_info.summary": { + "message": "Imprimeix informació sobre la memòria utilitzada actualment.", + "description": "Print information about currently used memory." + }, + "micropython.mem_info.param-name.verbose": { + "message": "verbose", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.mem_info.param-doc.verbose": { + "message": "Si es dona l'argument {{verbose}}, s'imprimeix informació addicional.", + "description": "Parameter docs" + }, + "micropython.qstr_info": { + "message": "qstr info", + "description": "(function name) Print information about currently interned strings." + }, + "micropython.qstr_info.summary": { + "message": "Imprimeix informació sobre les cadenes internades actualment.", + "description": "Print information about currently interned strings." + }, + "micropython.qstr_info.param-name.verbose": { + "message": "verbose", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.qstr_info.param-doc.verbose": { + "message": "Si es dona l'argument {{verbose}}, s'imprimeix informació addicional.", + "description": "Parameter docs" + }, + "micropython.stack_use": { + "message": "stack use", + "description": "(function name) Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.stack_use.summary": { + "message": "Retorna un nombre enter que representa la quantitat actual de pila que està sent\nutilitzada.", + "description": "Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.heap_lock": { + "message": "heap lock", + "description": "(function name) Lock the heap." + }, + "micropython.heap_lock.summary": { + "message": "Bloqueja el munt.", + "description": "Lock the heap." + }, + "micropython.heap_unlock": { + "message": "heap unlock", + "description": "(function name) Unlock the heap." + }, + "micropython.heap_unlock.summary": { + "message": "Desbloqueja el munt.", + "description": "Unlock the heap." + }, + "micropython.kbd_intr": { + "message": "kbd intr", + "description": "(function name) Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.summary": { + "message": "Estableix el caràcter que generarà una excepció {{KeyboardInterrupt}}.", + "description": "Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.param-name.chr": { + "message": "chr", + "description": "(parameter name) Character code to raise the interrupt or -1 to disable capture of Ctrl-C." + }, + "micropython.kbd_intr.param-doc.chr": { + "message": "Codi de caràcter per augmentar la interrupció o -1 per desactivar la captura de Ctrl-C.", + "description": "Parameter docs" + }, + "music": { + "message": "música", + "description": "(module name) Create and play melodies." + }, + "music.summary": { + "message": "Crea i toca melodies.", + "description": "Create and play melodies." + }, + "music.DADADADUM": { + "message": "dadadadum", + "description": "(field name) Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.DADADADUM.summary": { + "message": "Melodia: l'obertura de la cinquena simfonia de Beethoven en Do menor.", + "description": "Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.ENTERTAINER": { + "message": "entertainer", + "description": "(field name) Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.ENTERTAINER.summary": { + "message": "Melodia: el fragment inicial del clàssic Ragtime de Scott Joplin \"The Entertainer\".", + "description": "Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.PRELUDE": { + "message": "preludi", + "description": "(field name) Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.PRELUDE.summary": { + "message": "Melodia: obertura del primer Preludi en Do Major dels 48 Preludis i Fugues de J.S. Bach.", + "description": "Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.ODE": { + "message": "oda", + "description": "(field name) Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.ODE.summary": { + "message": "Melodia: el tema \"Oda a l'alegria\" de la 9a simfonia en Re menor de Beethoven.", + "description": "Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.NYAN": { + "message": "nyan", + "description": "(field name) Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.NYAN.summary": { + "message": "Melodia: el tema Nyan Cat (http://www.nyan.cat/).", + "description": "Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.RINGTONE": { + "message": "to de trucada", + "description": "(field name) Melody: something that sounds like a mobile phone ringtone." + }, + "music.RINGTONE.summary": { + "message": "Melodia: quelcom que sona com un to de trucada de telèfon mòbil.", + "description": "Melody: something that sounds like a mobile phone ringtone." + }, + "music.FUNK": { + "message": "funk", + "description": "(field name) Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.FUNK.summary": { + "message": "Melodia: una línia de baix funky per a agents secrets i cervells criminals.", + "description": "Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.BLUES": { + "message": "blues", + "description": "(field name) Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BLUES.summary": { + "message": "Melodia: un blues walking bass boogie-woogie de dotze compassos.", + "description": "Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BIRTHDAY": { + "message": "aniversari", + "description": "(field name) Melody: “Happy Birthday to You…”" + }, + "music.BIRTHDAY.summary": { + "message": "Melodia: “Feliç aniversari…”", + "description": "Melody: “Happy Birthday to You…”" + }, + "music.WEDDING": { + "message": "casament", + "description": "(field name) Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.WEDDING.summary": { + "message": "Melodia: el cor nupcial de l'òpera Lohengrin de Wagner.", + "description": "Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.FUNERAL": { + "message": "funeral", + "description": "(field name) Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.FUNERAL.summary": { + "message": "Melodia: la “marxa fúnebre” com es coneix la Sonata per a piano No 2. en Si bemoll menor Op. 35 de Frédéric Chopin .", + "description": "Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.PUNCHLINE": { + "message": "punchline", + "description": "(field name) Melody: a fun fragment that signifies a joke has been made." + }, + "music.PUNCHLINE.summary": { + "message": "Melodia: un fragment divertit que significa que s'ha fet una broma.", + "description": "Melody: a fun fragment that signifies a joke has been made." + }, + "music.PYTHON": { + "message": "python", + "description": "(field name) Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.PYTHON.summary": { + "message": "Melodia: la marxa de John Philip Sousa \"Liberty Bell\", també conegut com, el tema de \"Monty Python's Flying Circus\" (a partir de la qual s'anomena el llenguatge de programació Python).", + "description": "Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.BADDY": { + "message": "dolent", + "description": "(field name) Melody: silent movie era entrance of a baddy." + }, + "music.BADDY.summary": { + "message": "Melodia: entrada d'un dolent a l'era del cinema mut.", + "description": "Melody: silent movie era entrance of a baddy." + }, + "music.CHASE": { + "message": "persecució", + "description": "(field name) Melody: silent movie era chase scene." + }, + "music.CHASE.summary": { + "message": "Melodia: escena de persecució de l'era del cinema mut.", + "description": "Melody: silent movie era chase scene." + }, + "music.BA_DING": { + "message": "ba ding", + "description": "(field name) Melody: a short signal to indicate something has happened." + }, + "music.BA_DING.summary": { + "message": "Melodia: senyal breu per indicar que alguna cosa ha passat.", + "description": "Melody: a short signal to indicate something has happened." + }, + "music.WAWAWAWAA": { + "message": "wawawawaa", + "description": "(field name) Melody: a very sad trombone." + }, + "music.WAWAWAWAA.summary": { + "message": "Melodia: un trombó molt trist.", + "description": "Melody: a very sad trombone." + }, + "music.JUMP_UP": { + "message": "saltar cap amunt\n", + "description": "(field name) Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_UP.summary": { + "message": "Melodia: per utilitzar-se en un joc, indicant moviment cap amunt.", + "description": "Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_DOWN": { + "message": "saltar cap avall", + "description": "(field name) Melody: for use in a game, indicating downward movement." + }, + "music.JUMP_DOWN.summary": { + "message": "Melodia: per utilitzar en un joc, que indica moviment cap avall.", + "description": "Melody: for use in a game, indicating downward movement." + }, + "music.POWER_UP": { + "message": "engegar", + "description": "(field name) Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_UP.summary": { + "message": "Melodia: una fanfàrria per indicar un assoliment desbloquejat.", + "description": "Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_DOWN": { + "message": "apagar", + "description": "(field name) Melody: a sad fanfare to indicate an achievement lost." + }, + "music.POWER_DOWN.summary": { + "message": "Melodia: una trista fanfàrria per indicar un assoliment perdut.", + "description": "Melody: a sad fanfare to indicate an achievement lost." + }, + "music.set_tempo": { + "message": "set tempo", + "description": "(function name) Sets the approximate tempo for playback." + }, + "music.set_tempo.summary": { + "message": "Estableix el tempo aproximat per la reproducció.", + "description": "Sets the approximate tempo for playback." + }, + "music.set_tempo.param-name.bpm": { + "message": "bpm", + "description": "(parameter name) An integer determining how many beats per minute." + }, + "music.set_tempo.param-doc.bpm": { + "message": "Un nombre enter determinant quantes pulsacions per minut.", + "description": "Parameter docs" + }, + "music.set_tempo.param-name.ticks": { + "message": "ticks", + "description": "(parameter name) The number of ticks constituting a beat." + }, + "music.set_tempo.param-doc.ticks": { + "message": "El nombre de tics que constitueixen un ritme.", + "description": "Parameter docs" + }, + "music.get_tempo": { + "message": "obté el tempo", + "description": "(function name) Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.get_tempo.summary": { + "message": "Obté el tempo actual com una tupla d'enters:{{(ticks, bpm)}}.", + "description": "Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.play": { + "message": "play", + "description": "(function name) Plays music." + }, + "music.play.summary": { + "message": "Tocar música", + "description": "Plays music." + }, + "music.play.param-name.loop": { + "message": "bucle", + "description": "(parameter name) If ``loop`` is set to ``True``, the tune repeats until ``stop`` is called or the blocking call is interrupted." + }, + "music.play.param-doc.loop": { + "message": "Si el {{loop}} s'estableix en {{True}}, la melodia es repeteix fins que es crida {{stop}} o s'interromp la trucada de bloqueig.", + "description": "Parameter docs" + }, + "music.play.param-name.music": { + "message": "música", + "description": "(parameter name) music specified in `a special notation `_" + }, + "music.play.param-doc.music": { + "message": "música especificada en `una notació especial `_", + "description": "Parameter docs" + }, + "music.play.param-name.pin": { + "message": "pin", + "description": "(parameter name) the output pin for use with an external speaker (default ``pin0``), ``None`` for no sound." + }, + "music.play.param-doc.pin": { + "message": "el pin de sortida per utilitzar-lo amb un altaveu extern ({{pin0}} per defecte), {{None}} per no fer so.", + "description": "Parameter docs" + }, + "music.play.param-name.wait": { + "message": "espera", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.play.param-doc.wait": { + "message": "Si {{wait}} s'estableix en {{True}}, aquesta funció està bloquejant.", + "description": "Parameter docs" + }, + "music.pitch": { + "message": "altura del to", + "description": "(function name) Play a note." + }, + "music.pitch.summary": { + "message": "Toca una nota.", + "description": "Play a note." + }, + "music.pitch.param-name.duration": { + "message": "Durada - duració", + "description": "(parameter name) A millisecond duration. If negative then sound is continuous until the next call or a call to ``stop``." + }, + "music.pitch.param-doc.duration": { + "message": "Una duració d'un mil·lisegon. Si és negativa, el so és continu fins a la nova crida o una crida a {{stop}}.", + "description": "Parameter docs" + }, + "music.pitch.param-name.frequency": { + "message": "freqüència", + "description": "(parameter name) An integer frequency" + }, + "music.pitch.param-doc.frequency": { + "message": "Una freqüència de nombre enter", + "description": "Parameter docs" + }, + "music.pitch.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional output pin (default ``pin0``)." + }, + "music.pitch.param-doc.pin": { + "message": "Pin de sortida opcional ({{pin0}} per defecte).", + "description": "Parameter docs" + }, + "music.pitch.param-name.wait": { + "message": "espera", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.pitch.param-doc.wait": { + "message": "Si {{wait}} s'estableix en {{True}}, aquesta funció està bloquejant.", + "description": "Parameter docs" + }, + "music.stop": { + "message": "atura", + "description": "(function name) Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.summary": { + "message": "Atura tota la reproducció de música a l'altaveu integrat i qualsevol so de sortida de pin.", + "description": "Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.param-name.pin": { + "message": "pin", + "description": "(parameter name) An optional argument can be provided to specify a pin, e.g. ``music.stop(pin1)``." + }, + "music.stop.param-doc.pin": { + "message": "Es pot proporcionar un argument opcional per especificar un pin, per exemple {{music.stop(pin1)}}.", + "description": "Parameter docs" + }, + "music.reset": { + "message": "reiniciar", + "description": "(function name) Resets ticks, bpm, duration and octave to their default values." + }, + "music.reset.summary": { + "message": "Restableix els tics, ppm, duració i octava al seu valor per defecte.", + "description": "Resets ticks, bpm, duration and octave to their default values." + }, + "neopixel": { + "message": "neopixel", + "description": "(module name) Individually addressable RGB and RGBW LED strips." + }, + "neopixel.summary": { + "message": "Cintes LED RGB i RGBW adreçables individualment.", + "description": "Individually addressable RGB and RGBW LED strips." + }, + "neopixel.NeoPixel.__init__": { + "message": "init", + "description": "(function name) Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.summary": { + "message": "Inicialitza una nova tira de LED de neopixel controlada mitjançant un pin.", + "description": "Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.param-name.bpp": { + "message": "bpp", + "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + }, + "neopixel.NeoPixel.__init__.param-doc.bpp": { + "message": "Bytes per píxel. Per al suport de micro:bit V2 RGBW neopixel, passa 4 en lloc de 3 per defecte per a RGB i GRB.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.n": { + "message": "n", + "description": "(parameter name) The number of neopixels in the strip." + }, + "neopixel.NeoPixel.__init__.param-doc.n": { + "message": "El nombre de neopíxels de la tira.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.pin": { + "message": "pin", + "description": "(parameter name) The pin controlling the neopixel strip." + }, + "neopixel.NeoPixel.__init__.param-doc.pin": { + "message": "El pin que controla la tira de neopíxels.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.clear": { + "message": "clear", + "description": "(function name) Clear all the pixels." + }, + "neopixel.NeoPixel.clear.summary": { + "message": "Esborra tots els píxels.", + "description": "Clear all the pixels." + }, + "neopixel.NeoPixel.show": { + "message": "show", + "description": "(function name) Show the pixels." + }, + "neopixel.NeoPixel.show.summary": { + "message": "mostra els píxels.\n", + "description": "Show the pixels." + }, + "neopixel.NeoPixel.write": { + "message": "escriu", + "description": "(function name) Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.write.summary": { + "message": "Mostra els píxels (només micro:bit V2)", + "description": "Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill": { + "message": "omple", + "description": "(function name) Colour all pixels a given RGB/RGBW value." + }, + "neopixel.NeoPixel.fill.summary": { + "message": "Acoloreix tots els píxels amb un valor RGB/RGBW determinat.", + "description": "Colour all pixels a given RGB/RGBW value." + }, + "neopixel.NeoPixel.fill.param-name.colour": { + "message": "color", + "description": "(parameter name) A tuple of the same length as the number of bytes per pixel (bpp)." + }, + "neopixel.NeoPixel.fill.param-doc.colour": { + "message": "Una tupla de la mateixa longitud que el nombre de bytes per píxel (bpp).", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__": { + "message": "setitem", + "description": "(function name) Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.summary": { + "message": "Estableix un color de píxel.", + "description": "Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.param-name.key": { + "message": "key", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__setitem__.param-doc.key": { + "message": "El nombre de píxels.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__.param-name.value": { + "message": "valor", + "description": "(parameter name) The colour." + }, + "neopixel.NeoPixel.__setitem__.param-doc.value": { + "message": "El color.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__getitem__": { + "message": "getitem", + "description": "(function name) Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.summary": { + "message": "Obté un color de píxel.", + "description": "Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.param-name.key": { + "message": "key", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__getitem__.param-doc.key": { + "message": "El nombre de píxels.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__len__": { + "message": "len", + "description": "(function name) Get length of this pixel strip." + }, + "neopixel.NeoPixel.__len__.summary": { + "message": "Obté la longitud d'aquesta cinta de píxels.", + "description": "Get length of this pixel strip." + }, + "os": { + "message": "os", + "description": "(module name) Access the file system." + }, + "os.summary": { + "message": "Accedeix al sistema de fitxers.", + "description": "Access the file system." + }, + "os.listdir": { + "message": "listdir", + "description": "(function name) List files." + }, + "os.listdir.summary": { + "message": "Llista dels fitxers.", + "description": "List files." + }, + "os.remove": { + "message": "eliminar", + "description": "(function name) Remove (delete) a file." + }, + "os.remove.summary": { + "message": "Eliminar (suprimir) un fitxer.", + "description": "Remove (delete) a file." + }, + "os.remove.param-name.filename": { + "message": "nom del fitxer", + "description": "(parameter name) The file to delete." + }, + "os.remove.param-doc.filename": { + "message": "El fitxer a suprimir.", + "description": "Parameter docs" + }, + "os.size": { + "message": "mida", + "description": "(function name) Returns the size of a file." + }, + "os.size.summary": { + "message": "Retorna la mida d'un fitxer", + "description": "Returns the size of a file." + }, + "os.size.param-name.filename": { + "message": "nom del fitxer", + "description": "(parameter name) The file" + }, + "os.size.param-doc.filename": { + "message": "El fitxer", + "description": "Parameter docs" + }, + "os.uname_result": { + "message": "uname result", + "description": "(class name) Result of ``os.uname()``" + }, + "os.uname_result.summary": { + "message": "Resultat de {{os.uname()}}", + "description": "Result of ``os.uname()``" + }, + "os.uname_result.sysname": { + "message": "sysname", + "description": "(field name) Operating system name." + }, + "os.uname_result.sysname.summary": { + "message": "Nom del sistema operatiu.", + "description": "Operating system name." + }, + "os.uname_result.nodename": { + "message": "nodename", + "description": "(field name) Name of machine on network (implementation-defined)." + }, + "os.uname_result.nodename.summary": { + "message": "Nom de la màquina a la xarxa (definida per la implementació).", + "description": "Name of machine on network (implementation-defined)." + }, + "os.uname_result.release": { + "message": "versió", + "description": "(field name) Operating system release." + }, + "os.uname_result.release.summary": { + "message": "Versió del sistema operatiu.", + "description": "Operating system release." + }, + "os.uname_result.version": { + "message": "versió", + "description": "(field name) Operating system version." + }, + "os.uname_result.version.summary": { + "message": "Versió del sistema operatiu.", + "description": "Operating system version." + }, + "os.uname_result.machine": { + "message": "màquina", + "description": "(field name) Hardware identifier." + }, + "os.uname_result.machine.summary": { + "message": "Identificador del maquinari.", + "description": "Hardware identifier." + }, + "os.uname": { + "message": "uname", + "description": "(function name) Returns information identifying the current operating system." + }, + "os.uname.summary": { + "message": "Retorna informació que identifica el sistema operatiu actual.", + "description": "Returns information identifying the current operating system." + }, + "radio": { + "message": "ràdio", + "description": "(module name) Communicate between micro:bits with the built-in radio." + }, + "radio.summary": { + "message": "Comunicar-se entre micro:bits amb la ràdio integrada.", + "description": "Communicate between micro:bits with the built-in radio." + }, + "radio.RATE_1MBIT": { + "message": "velocitat de transmissió 1mbit ", + "description": "(field name) Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_1MBIT.summary": { + "message": "La constant utilitzada per indicar un rendiment d'1 Mbit per segon.", + "description": "Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_2MBIT": { + "message": "velocitat de transmissió 2mbit", + "description": "(field name) Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.RATE_2MBIT.summary": { + "message": "La constant utilitzada per indicar un rendiment de 2 Mbit per segon.", + "description": "Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.on": { + "message": "on", + "description": "(function name) Turns the radio on." + }, + "radio.on.summary": { + "message": "Encén la ràdio.", + "description": "Turns the radio on." + }, + "radio.off": { + "message": "off", + "description": "(function name) Turns off the radio, saving power and memory." + }, + "radio.off.summary": { + "message": "Apaga la ràdio, estalviant energia i memòria.", + "description": "Turns off the radio, saving power and memory." + }, + "radio.config": { + "message": "config", + "description": "(function name) Configures the radio." + }, + "radio.config.summary": { + "message": "Configura la ràdio.", + "description": "Configures the radio." + }, + "radio.config.param-name.address": { + "message": "adreça", + "description": "(parameter name) (default=0x75626974) an arbitrary name, expressed as a 32-bit address, that's used to filter incoming packets at the hardware level, keeping only those that match the address you set.\nThe default used by other micro:bit related platforms is the default setting used here." + }, + "radio.config.param-doc.address": { + "message": "(per defecte=0x75626974) un nom arbitrari, expressat com una adreça de 32 bits, que s'utilitza per filtrar els paquets entrants a nivell de maquinari, conservant només els que coincideixen amb l'adreça que has establert.\nLa configuració predeterminada utilitzada per altres plataformes relacionades amb micro:bit és la configuració predeterminada que s'utilitza aquí.", + "description": "Parameter docs" + }, + "radio.config.param-name.channel": { + "message": "canal", + "description": "(parameter name) (default=7) an integer value from 0 to 83 (inclusive) that defines an arbitrary \"channel\" to which the radio is tuned.\nMessages will be sent via this channel and only messages received via this channel will be put onto the incoming message queue. Each step is 1MHz wide, based at 2400MHz." + }, + "radio.config.param-doc.channel": { + "message": "(per defecte=7) un valor enter de 0 a 83 (inclosos) que defineix un \"canal\" arbitrari al qual està sintonitzada la ràdio.\nEls missatges s'enviaran a través d'aquest canal i només els missatges rebuts per aquest canal es posaran a la cua de missatges entrants. Cada pas té una amplada d'1MHz, basat en 2400MHz.", + "description": "Parameter docs" + }, + "radio.config.param-name.data_rate": { + "message": "velocitat de dades", + "description": "(parameter name) (default=``radio.RATE_1MBIT``) indicates the speed at which data throughput takes place.\nCan be one of the following constants defined in the ``radio`` module: ``RATE_250KBIT``, ``RATE_1MBIT`` or ``RATE_2MBIT``." + }, + "radio.config.param-doc.data_rate": { + "message": "(per defecte={{radio.RATE_1MBIT}}) indica la velocitat a la qual es produeix la transmissió de les dades.\nPot ser una de les constants següents definides al mòdul {{radio}}: {{RATE_250KBIT}}, {{RATE_1MBIT}} o {{RATE_2MBIT}}.", + "description": "Parameter docs" + }, + "radio.config.param-name.group": { + "message": "grup", + "description": "(parameter name) (default=0) an 8-bit value (0-255) used with the ``address`` when filtering messages.\nConceptually, \"address\" is like a house/office address and \"group\" is like the person at that address to which you want to send your message." + }, + "radio.config.param-doc.group": { + "message": "(per defecte=0) un valor de 8 bits (0-255) utilitzat amb l'{{address}} (adreça) en filtrar missatges.\nConceptualment, \"adreça\" és com una adreça de casa/oficina i \"grup\" és com la persona a aquesta adreça a la qual vols enviar el teu missatge.", + "description": "Parameter docs" + }, + "radio.config.param-name.length": { + "message": "llargada", + "description": "(parameter name) (default=32) defines the maximum length, in bytes, of a message sent via the radio.\nIt can be up to 251 bytes long (254 - 3 bytes for S0, LENGTH and S1 preamble)." + }, + "radio.config.param-doc.length": { + "message": "(per defecte=32) defineix la longitud màxima, en bytes, d'un missatge enviat a través de la ràdio.\nPot tenir una longitud de fins a 251 bytes (254 - 3 bytes per al preàmbul S0, LENGTH i S1).", + "description": "Parameter docs" + }, + "radio.config.param-name.power": { + "message": "power", + "description": "(parameter name) (default=6) is an integer value from 0 to 7 (inclusive) to indicate the strength of signal used when broadcasting a message.\nThe higher the value the stronger the signal, but the more power is consumed by the device. The numbering translates to positions in the following list of dBm (decibel milliwatt) values: -30, -20, -16, -12, -8, -4, 0, 4." + }, + "radio.config.param-doc.power": { + "message": "(per defecte=6) és un valor enter de 0 a 7 (inclosos) per indicar la intensitat del senyal utilitzat quan s'emet un missatge.\nCom més alt sigui el valor, més fort és el senyal, però més potència consumeix el dispositiu. La numeració es tradueix en posicions a la llista següent de valors en dBm (decibels mil·liwatts): -30, -20, -16, -12, -8, -4, 0, 4.", + "description": "Parameter docs" + }, + "radio.config.param-name.queue": { + "message": "cua", + "description": "(parameter name) (default=3) specifies the number of messages that can be stored on the incoming message queue.\nIf there are no spaces left on the queue for incoming messages, then the incoming message is dropped." + }, + "radio.config.param-doc.queue": { + "message": "(per defecte=3) especifica el nombre de missatges que es poden emmagatzemar a la cua de missatges entrants.\nSi no queden espais a la cua per als missatges entrants, s'elimina el missatge entrant.", + "description": "Parameter docs" + }, + "radio.reset": { + "message": "reiniciar", + "description": "(function name) Reset the settings to their default values." + }, + "radio.reset.summary": { + "message": "Restableix la configuració als seus valors predeterminats.", + "description": "Reset the settings to their default values." + }, + "radio.send_bytes": { + "message": "enviar bytes", + "description": "(function name) Sends a message containing bytes." + }, + "radio.send_bytes.summary": { + "message": "Envia un missatge que conté bytes.", + "description": "Sends a message containing bytes." + }, + "radio.send_bytes.param-name.message": { + "message": "missatge", + "description": "(parameter name) The bytes to send." + }, + "radio.send_bytes.param-doc.message": { + "message": "Els bytes a ser enviats.", + "description": "Parameter docs" + }, + "radio.receive_bytes": { + "message": "rebre bytes", + "description": "(function name) Receive the next incoming message on the message queue." + }, + "radio.receive_bytes.summary": { + "message": "Rebràs el següent missatge entrant a la cua de missatges.", + "description": "Receive the next incoming message on the message queue." + }, + "radio.receive_bytes_into": { + "message": "rebre bytes a", + "description": "(function name) Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.summary": { + "message": "Copia el següent missatge entrant de la cua de missatges a una memòria intermèdia.", + "description": "Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.param-name.buffer": { + "message": "memòria intermèdia", + "description": "(parameter name) The target buffer. The message is truncated if larger than the buffer." + }, + "radio.receive_bytes_into.param-doc.buffer": { + "message": "La memòria intermèdia objectiu. El missatge es trunca si és més gran que la memòria intermèdia.", + "description": "Parameter docs" + }, + "radio.send": { + "message": "envia", + "description": "(function name) Sends a message string." + }, + "radio.send.summary": { + "message": "Envia una cadena de missatge.", + "description": "Sends a message string." + }, + "radio.send.param-name.message": { + "message": "missatge", + "description": "(parameter name) The string to send." + }, + "radio.send.param-doc.message": { + "message": "La cadena a enviar.", + "description": "Parameter docs" + }, + "radio.receive": { + "message": "receive", + "description": "(function name) Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive.summary": { + "message": "Funciona exactament de la mateixa manera que {{receive_bytes}} però retorna el que s'ha enviat.", + "description": "Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive_full": { + "message": "rebre ple", + "description": "(function name) Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "radio.receive_full.summary": { + "message": "Retorna una tupla que conté tres valors que representen el següent missatge entrant a la cua de missatges.", + "description": "Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "random": { + "message": "aleatori", + "description": "(module name) Generate random numbers." + }, + "random.summary": { + "message": "Genera nombres aleatoris.", + "description": "Generate random numbers." + }, + "random.getrandbits": { + "message": "getrandbits", + "description": "(function name) Generate an integer with ``n`` random bits." + }, + "random.getrandbits.summary": { + "message": "Genera un nombre enter amb {{n}} bits aleatoris.", + "description": "Generate an integer with ``n`` random bits." + }, + "random.getrandbits.param-name.n": { + "message": "n", + "description": "(parameter name) A value between 1-30 (inclusive)." + }, + "random.getrandbits.param-doc.n": { + "message": "Un valor entre 1-30 (inclusiu).", + "description": "Parameter docs" + }, + "random.seed": { + "message": "llavor", + "description": "(function name) Initialize the random number generator." + }, + "random.seed.summary": { + "message": "Inicialitza el generador de nombres aleatoris.", + "description": "Initialize the random number generator." + }, + "random.seed.param-name.n": { + "message": "n", + "description": "(parameter name) The integer seed" + }, + "random.seed.param-doc.n": { + "message": "The integer seed", + "description": "Parameter docs" + }, + "random.randint": { + "message": "randint", + "description": "(function name) Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.summary": { + "message": "Tria un nombre enter aleatori entre {{a}} i {{b}} inclosos.", + "description": "Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.randint.param-doc.a": { + "message": "Valor inicial de l'interval (inclòs)", + "description": "Parameter docs" + }, + "random.randint.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.randint.param-doc.b": { + "message": "Valor final de l'interval (inclòs)", + "description": "Parameter docs" + }, + "random.randrange-1": { + "message": "randrange", + "description": "(function name) Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.summary": { + "message": "Tria un nombre enter seleccionat aleatòriament entre zero i fins a (però no\ninclòs) {{stop}}.", + "description": "Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.param-name.stop": { + "message": "atura", + "description": "(parameter name) End value for the range (exclusive)" + }, + "random.randrange-1.param-doc.stop": { + "message": "Valor final de l'interval (exclòs)", + "description": "Parameter docs" + }, + "random.randrange-2": { + "message": "randrange", + "description": "(function name) Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.summary": { + "message": "Tria un element seleccionat aleatòriament de {{range(start, stop, step)}}.", + "description": "Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.param-name.start": { + "message": "start", + "description": "(parameter name) The start of the range (inclusive)" + }, + "random.randrange-2.param-doc.start": { + "message": "L'inici de l'interval (inclòs)", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.step": { + "message": "step", + "description": "(parameter name) The step." + }, + "random.randrange-2.param-doc.step": { + "message": "El pas.", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.stop": { + "message": "atura", + "description": "(parameter name) The end of the range (exclusive)" + }, + "random.randrange-2.param-doc.stop": { + "message": "El final de l'interval (exclusiu)", + "description": "Parameter docs" + }, + "random.choice": { + "message": "choice", + "description": "(function name) Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.summary": { + "message": "Tria un element aleatori de la seqüència no buida {{seq}}.", + "description": "Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.param-name.seq": { + "message": "seq", + "description": "(parameter name) A sequence." + }, + "random.choice.param-doc.seq": { + "message": "Una seqüència.", + "description": "Parameter docs" + }, + "random.random": { + "message": "aleatori", + "description": "(function name) Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.random.summary": { + "message": "Genera un nombre aleatori de coma flotant en l'interval [0.0, 1.0).", + "description": "Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.uniform": { + "message": "uniforme", + "description": "(function name) Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.summary": { + "message": "Retorna un nombre de coma flotant aleatori entre {{a}} i {{b}} inclosos.", + "description": "Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.uniform.param-doc.a": { + "message": "Valor inicial de l'interval (inclòs)", + "description": "Parameter docs" + }, + "random.uniform.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.uniform.param-doc.b": { + "message": "Valor final de l'interval (inclòs)", + "description": "Parameter docs" + }, + "speech": { + "message": "speech", + "description": "(module name) Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.summary": { + "message": "Fes que la micro:bit parli, canti i fer altres expressions com els sons.", + "description": "Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.translate": { + "message": "tradueix", + "description": "(function name) Translate English words to phonemes." + }, + "speech.translate.summary": { + "message": "Tradueix paraules angleses a fonemes.", + "description": "Translate English words to phonemes." + }, + "speech.translate.param-name.words": { + "message": "paraules", + "description": "(parameter name) A string of English words." + }, + "speech.translate.param-doc.words": { + "message": "Una cadena de paraules angleses.", + "description": "Parameter docs" + }, + "speech.pronounce": { + "message": "pronuncia", + "description": "(function name) Pronounce phonemes." + }, + "speech.pronounce.summary": { + "message": "Pronuncia fonemes.", + "description": "Pronounce phonemes." + }, + "speech.pronounce.param-name.mouth": { + "message": "boca", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.pronounce.param-doc.mouth": { + "message": "Un nombre que representa la boca de la veu", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.phonemes": { + "message": "fonemes", + "description": "(parameter name) The string of phonemes to pronounce" + }, + "speech.pronounce.param-doc.phonemes": { + "message": "La cadena de fonemes a pronunciar", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.pronounce.param-doc.pin": { + "message": "L'argument opcional per especificar el pin de sortida es pot utilitzar per anul·lar el valor predeterminat de {{pin0}}.\nSi no vols que es reprodueixi cap so en els pins, podts utilitzar {{pin=None}}. Només micro:bit V2.", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pitch": { + "message": "to", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.pronounce.param-doc.pitch": { + "message": "Un nombre que representa la freqüència de la veu", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.speed": { + "message": "velocitat", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.pronounce.param-doc.speed": { + "message": "Un nombre que representa la velocitat de la veu", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.throat": { + "message": "throat", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.pronounce.param-doc.throat": { + "message": "Un nombre que representa la gola de la veu", + "description": "Parameter docs" + }, + "speech.say": { + "message": "say", + "description": "(function name) Say English words." + }, + "speech.say.summary": { + "message": "Digues paraules en anglès.", + "description": "Say English words." + }, + "speech.say.param-name.mouth": { + "message": "boca", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.say.param-doc.mouth": { + "message": "Un nombre que representa la boca de la veu", + "description": "Parameter docs" + }, + "speech.say.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.say.param-doc.pin": { + "message": "L'argument opcional per especificar el pin de sortida es pot utilitzar per anul·lar el valor predeterminat del {{pin0}}.\nSi no vols que es reprodueixi cap so en els pins, pots utilitzar {{pin=None}}. Només micro:bit V2.", + "description": "Parameter docs" + }, + "speech.say.param-name.pitch": { + "message": "to", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.say.param-doc.pitch": { + "message": "Un nombre que representa la freqüència de la veu", + "description": "Parameter docs" + }, + "speech.say.param-name.speed": { + "message": "velocitat", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.say.param-doc.speed": { + "message": "Un nombre que representa la velocitat de la veu", + "description": "Parameter docs" + }, + "speech.say.param-name.throat": { + "message": "throat", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.say.param-doc.throat": { + "message": "Un nombre que representa la gola de la veu", + "description": "Parameter docs" + }, + "speech.say.param-name.words": { + "message": "paraules", + "description": "(parameter name) The string of words to say." + }, + "speech.say.param-doc.words": { + "message": "La cadena de paraules a dir.", + "description": "Parameter docs" + }, + "speech.sing": { + "message": "sing", + "description": "(function name) Sing phonemes." + }, + "speech.sing.summary": { + "message": "Cantar fonemes.", + "description": "Sing phonemes." + }, + "speech.sing.param-name.mouth": { + "message": "boca", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.sing.param-doc.mouth": { + "message": "Un nombre que representa la boca de la veu", + "description": "Parameter docs" + }, + "speech.sing.param-name.phonemes": { + "message": "fonemes", + "description": "(parameter name) The string of words to sing." + }, + "speech.sing.param-doc.phonemes": { + "message": "La cadena de paraules a cantar.", + "description": "Parameter docs" + }, + "speech.sing.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.sing.param-doc.pin": { + "message": "L'argument opcional per especificar el pin de sortida es pot utilitzar per anul·lar el valor predeterminat de {{pin0}}.\nSi no vols que es reprodueixi cap so en els pins, podts utilitzar {{pin=None}}. Només micro:bit V2.", + "description": "Parameter docs" + }, + "speech.sing.param-name.pitch": { + "message": "to", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.sing.param-doc.pitch": { + "message": "Un nombre que representa la freqüència de la veu", + "description": "Parameter docs" + }, + "speech.sing.param-name.speed": { + "message": "velocitat", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.sing.param-doc.speed": { + "message": "Un nombre que representa la velocitat de la veu", + "description": "Parameter docs" + }, + "speech.sing.param-name.throat": { + "message": "throat", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.sing.param-doc.throat": { + "message": "Un nombre que representa la gola de la veu", + "description": "Parameter docs" + }, + "struct": { + "message": "struct", + "description": "(module name) Pack and unpack primitive data types." + }, + "struct.summary": { + "message": "Empaquetar i desempaquetar tipus de dades primitius.", + "description": "Pack and unpack primitive data types." + }, + "struct.calcsize": { + "message": "calcsize", + "description": "(function name) Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.summary": { + "message": "Obté el nombre de bytes necessaris per emmagatzemar el {{fmt}} donat.", + "description": "Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) A format string." + }, + "struct.calcsize.param-doc.fmt": { + "message": "Una cadena de format.", + "description": "Parameter docs" + }, + "struct.pack": { + "message": "pack", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack.summary": { + "message": "Empaqueta els valors segons una cadena de format.", + "description": "Pack values according to a format string." + }, + "struct.pack.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack.param-doc.*vn": { + "message": "La resta de valors.", + "description": "Parameter docs" + }, + "struct.pack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack.param-doc.fmt": { + "message": "La cadena de format.", + "description": "Parameter docs" + }, + "struct.pack.param-name.v1": { + "message": "v1", + "description": "(parameter name) The first value." + }, + "struct.pack.param-doc.v1": { + "message": "El primer valor.", + "description": "Parameter docs" + }, + "struct.pack_into": { + "message": "pack into", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack_into.summary": { + "message": "Empaqueta els valors segons una cadena de format.", + "description": "Pack values according to a format string." + }, + "struct.pack_into.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack_into.param-doc.*vn": { + "message": "La resta de valors.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.buffer": { + "message": "memòria intermèdia", + "description": "(parameter name) The target buffer to write into." + }, + "struct.pack_into.param-doc.buffer": { + "message": "La memòria intermèdia de destinació on escriure.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack_into.param-doc.fmt": { + "message": "La cadena de format.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.offset": { + "message": "offset", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.pack_into.param-doc.offset": { + "message": "El desplaçament a la memòria intermèdia. Pot ser negatiu per comptar des del final de la memòria intermèdia.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.v1": { + "message": "v1", + "description": "(parameter name) The first value." + }, + "struct.pack_into.param-doc.v1": { + "message": "El primer valor.", + "description": "Parameter docs" + }, + "struct.unpack": { + "message": "unpack", + "description": "(function name) Unpack data according to a format string." + }, + "struct.unpack.summary": { + "message": "Desempaqueta les dades segons una cadena de format.", + "description": "Unpack data according to a format string." + }, + "struct.unpack.param-name.data": { + "message": "data", + "description": "(parameter name) The data." + }, + "struct.unpack.param-doc.data": { + "message": "Les dades.", + "description": "Parameter docs" + }, + "struct.unpack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack.param-doc.fmt": { + "message": "La cadena de format.", + "description": "Parameter docs" + }, + "struct.unpack_from": { + "message": "desempaqueta des de", + "description": "(function name) Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.summary": { + "message": "Desempaqueta les dades d'una memòria intermèdia segons una cadena de format.", + "description": "Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.param-name.buffer": { + "message": "memòria intermèdia", + "description": "(parameter name) The source buffer to read from." + }, + "struct.unpack_from.param-doc.buffer": { + "message": "La memòria intermèdia d'origen d'on llegir.", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack_from.param-doc.fmt": { + "message": "La cadena de format.", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.offset": { + "message": "offset", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.unpack_from.param-doc.offset": { + "message": "El desplaçament a la memòria intermèdia. Pot ser negatiu per comptar des del final de la memòria intermèdia.", + "description": "Parameter docs" + }, + "sys": { + "message": "sys", + "description": "(module name) System specific functions" + }, + "sys.summary": { + "message": "Funcions específiques del sistema", + "description": "System specific functions" + }, + "sys.exit": { + "message": "exit", + "description": "(function name) Terminate current program with a given exit code." + }, + "sys.exit.summary": { + "message": "Finalitza el programa actual amb un codi de sortida determinat.", + "description": "Terminate current program with a given exit code." + }, + "sys.exit.param-name.retval": { + "message": "retval", + "description": "(parameter name) The exit code or message." + }, + "sys.exit.param-doc.retval": { + "message": "El codi o missatge de sortida.", + "description": "Parameter docs" + }, + "sys.print_exception": { + "message": "print exception", + "description": "(function name) Print an exception with a traceback." + }, + "sys.print_exception.summary": { + "message": "Imprimeix una excepció amb un rastreig.", + "description": "Print an exception with a traceback." + }, + "sys.print_exception.param-name.exc": { + "message": "exc", + "description": "(parameter name) The exception to print" + }, + "sys.print_exception.param-doc.exc": { + "message": "L'excepció a imprimir", + "description": "Parameter docs" + }, + "sys.argv": { + "message": "argv", + "description": "(field name) A mutable list of arguments the current program was started with." + }, + "sys.argv.summary": { + "message": "Una llista mutable d'arguments amb què s'ha iniciat el programa actual.", + "description": "A mutable list of arguments the current program was started with." + }, + "sys.byteorder": { + "message": "byteorder", + "description": "(field name) The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.byteorder.summary": { + "message": "L'ordre dels bytes del sistema ({{\"little\"}} o {{\"big\"}}).", + "description": "The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.implementation": { + "message": "implementació", + "description": "(field name) Object with information about the current Python implementation." + }, + "sys.implementation.summary": { + "message": "Objecte amb informació sobre la implementació actual de Python.", + "description": "Object with information about the current Python implementation." + }, + "sys.maxsize": { + "message": "maxsize", + "description": "(field name) \nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.maxsize.summary": { + "message": "Valor màxim que pot tenir un tipus d'enter natiu a la plataforma actual,\no valor màxim representable pel tipus d'enter MicroPython, si és més petit\nque el valor màxim de la plataforma (és el cas dels ports MicroPython sense\nsuport d'enter llarg - long int support).", + "description": "\nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.modules": { + "message": "mòduls", + "description": "(field name) Dictionary of loaded modules. " + }, + "sys.modules.summary": { + "message": "Diccionari de mòduls carregats.", + "description": "Dictionary of loaded modules. " + }, + "sys.path": { + "message": "path", + "description": "(field name) A mutable list of directories to search for imported modules." + }, + "sys.path.summary": { + "message": "Una llista mutable de directoris per cercar mòduls importats.", + "description": "A mutable list of directories to search for imported modules." + }, + "sys.platform": { + "message": "plataforma", + "description": "(field name) The platform that MicroPython is running on. " + }, + "sys.platform.summary": { + "message": "La plataforma en què s'executa MicroPython.", + "description": "The platform that MicroPython is running on. " + }, + "sys.version": { + "message": "versió", + "description": "(field name) Python language version that this implementation conforms to, as a string." + }, + "sys.version.summary": { + "message": "Versió del llenguatge Python a la qual s'ajusta aquesta implementació, com a cadena.", + "description": "Python language version that this implementation conforms to, as a string." + }, + "sys.version_info": { + "message": "informació de la versió", + "description": "(field name) Python language version that this implementation conforms to, as a tuple of ints." + }, + "sys.version_info.summary": { + "message": "Versió del llenguatge Python a la qual s'ajusta aquesta implementació, com una tupla d'enters.", + "description": "Python language version that this implementation conforms to, as a tuple of ints." + }, + "time": { + "message": "temps", + "description": "(module name) Measure time and add delays to programs." + }, + "time.summary": { + "message": "Mesura el temps i afegeix retards als programes.", + "description": "Measure time and add delays to programs." + }, + "time.sleep": { + "message": "dormir", + "description": "(function name) Delay a number of seconds." + }, + "time.sleep.summary": { + "message": "Retarda uns segons.", + "description": "Delay a number of seconds." + }, + "time.sleep.param-name.seconds": { + "message": "segons", + "description": "(parameter name) The number of seconds to sleep for.\nUse a floating-point number to sleep for a fractional number of seconds." + }, + "time.sleep.param-doc.seconds": { + "message": "El nombre de segons per posar en pausa.\nUtilitza un nombre de coma flotant per posar en pausa durant una fracció de segons.", + "description": "Parameter docs" + }, + "time.sleep_ms": { + "message": "retard en mil·lisegons", + "description": "(function name) Delay for given number of milliseconds." + }, + "time.sleep_ms.summary": { + "message": "Retard per a un nombre determinat de mil·lisegons.", + "description": "Delay for given number of milliseconds." + }, + "time.sleep_ms.param-name.ms": { + "message": "ms", + "description": "(parameter name) The number of milliseconds delay (>= 0)." + }, + "time.sleep_ms.param-doc.ms": { + "message": "El nombre de mil·lisegons de retard (>= 0).", + "description": "Parameter docs" + }, + "time.sleep_us": { + "message": "sleep us", + "description": "(function name) Delay for given number of microseconds." + }, + "time.sleep_us.summary": { + "message": "Retard per a un nombre determinat de microsegons.", + "description": "Delay for given number of microseconds." + }, + "time.sleep_us.param-name.us": { + "message": "us", + "description": "(parameter name) The number of microseconds delay (>= 0)." + }, + "time.sleep_us.param-doc.us": { + "message": "El nombre de microsegons de retard (>= 0).", + "description": "Parameter docs" + }, + "time.ticks_ms": { + "message": "tics mil·lisegons", + "description": "(function name) Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_ms.summary": { + "message": "Obté un comptador creixent de mil·lisegons amb un punt de referència arbitrari,\nque es desborda després d'algun valor.", + "description": "Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us": { + "message": "tics microsegons", + "description": "(function name) Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us.summary": { + "message": "Obté un comptador creixent de microsegons amb un punt de referència arbitrari,\nque es desborda després d'algun valor.", + "description": "Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_add": { + "message": "tics compensa", + "description": "(function name) Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.summary": { + "message": "Afegeix al valor de tics un desplaçament determinat, que pot ser positiu o\nnegatiu.", + "description": "Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.param-name.delta": { + "message": "delta", + "description": "(parameter name) An integer offset" + }, + "time.ticks_add.param-doc.delta": { + "message": "Un desplaçament enter", + "description": "Parameter docs" + }, + "time.ticks_add.param-name.ticks": { + "message": "ticks", + "description": "(parameter name) A ticks value" + }, + "time.ticks_add.param-doc.ticks": { + "message": "Un valor de tics", + "description": "Parameter docs" + }, + "time.ticks_diff": { + "message": "ticks diff", + "description": "(function name) Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.summary": { + "message": "Mesura la diferència dels tics entre els valors retornats\n{{time.ticks_ms()}} o {{ticks_us()}}, com a valor amb signe\nque pot desbordar-se.", + "description": "Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.param-name.ticks1": { + "message": "ticks1", + "description": "(parameter name) The value to subtract from" + }, + "time.ticks_diff.param-doc.ticks1": { + "message": "El valor a restar de", + "description": "Parameter docs" + }, + "time.ticks_diff.param-name.ticks2": { + "message": "ticks2", + "description": "(parameter name) The value to subtract" + }, + "time.ticks_diff.param-doc.ticks2": { + "message": "El valor a restar", + "description": "Parameter docs" + } +} \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/VERSIONS b/lang/ca/typeshed/stdlib/VERSIONS new file mode 100644 index 0000000..67b710f --- /dev/null +++ b/lang/ca/typeshed/stdlib/VERSIONS @@ -0,0 +1,50 @@ +# The structure of this file is as follows: +# - Blank lines and comments starting with `#` are ignored. +# - Lines contain the name of a module, followed by a colon, +# a space, and a version range (for example: `symbol: 2.7-3.9`). +# +# Version ranges may be of the form "X.Y-A.B" or "X.Y-". The +# first form means that a module was introduced in version X.Y and last +# available in version A.B. The second form means that the module was +# introduced in version X.Y and is still available in the latest +# version of Python. +# +# If a submodule is not listed separately, it has the same lifetime as +# its parent module. +# +# Python versions before 2.7 are ignored, so any module that was already +# present in 2.7 will have "2.7" as its minimum version. Version ranges +# for unsupported versions of Python 3 (currently 3.5 and lower) are +# generally accurate but we do not guarantee their correctness. + +antigravity: 3.0- +array: 3.0- +audio: 3.0- +builtins: 3.0- +errno: 3.0- +gc: 3.0- +love: 3.0- +machine: 3.0- +math: 3.0- +microbit: 3.0- +micropython: 3.0- +music: 3.0- +neopixel: 3.0- +os: 3.0- +radio: 3.0- +random: 3.0- +speech: 3.0- +struct: 3.0- +sys: 3.0- +this: 3.0- +time: 3.0- +typing_extensions: 3.0- +typing: 3.0- +uarray: 3.0- +ucollections: 3.0- +uerrno: 3.0- +uos: 3.0- +urandom: 3.0- +ustruct: 3.0- +usys: 3.0- +utime: 3.0- \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/_typeshed/__init__.pyi b/lang/ca/typeshed/stdlib/_typeshed/__init__.pyi new file mode 100644 index 0000000..7bf6e72 --- /dev/null +++ b/lang/ca/typeshed/stdlib/_typeshed/__init__.pyi @@ -0,0 +1,168 @@ +# Utility types for typeshed +# +# See the README.md file in this directory for more information. + +import array +import sys +from os import PathLike +from typing import AbstractSet, Any, Container, Iterable, Protocol, Tuple, TypeVar, Union +from typing_extensions import Literal, final + +_KT = TypeVar("_KT") +_KT_co = TypeVar("_KT_co", covariant=True) +_KT_contra = TypeVar("_KT_contra", contravariant=True) +_VT = TypeVar("_VT") +_VT_co = TypeVar("_VT_co", covariant=True) +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) + +# Use for "self" annotations: +# def __enter__(self: Self) -> Self: ... +Self = TypeVar("Self") # noqa Y001 + +# stable +class IdentityFunction(Protocol): + def __call__(self, __x: _T) -> _T: ... + +class SupportsLessThan(Protocol): + def __lt__(self, __other: Any) -> bool: ... + +SupportsLessThanT = TypeVar("SupportsLessThanT", bound=SupportsLessThan) # noqa: Y001 + +class SupportsDivMod(Protocol[_T_contra, _T_co]): + def __divmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsRDivMod(Protocol[_T_contra, _T_co]): + def __rdivmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsLenAndGetItem(Protocol[_T_co]): + def __len__(self) -> int: ... + def __getitem__(self, __k: int) -> _T_co: ... + +# Mapping-like protocols + +# stable +class SupportsItems(Protocol[_KT_co, _VT_co]): + def items(self) -> AbstractSet[Tuple[_KT_co, _VT_co]]: ... + +# stable +class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]): + def keys(self) -> Iterable[_KT]: ... + def __getitem__(self, __k: _KT) -> _VT_co: ... + +# stable +class SupportsGetItem(Container[_KT_contra], Protocol[_KT_contra, _VT_co]): + def __getitem__(self, __k: _KT_contra) -> _VT_co: ... + +# stable +class SupportsItemAccess(SupportsGetItem[_KT_contra, _VT], Protocol[_KT_contra, _VT]): + def __setitem__(self, __k: _KT_contra, __v: _VT) -> None: ... + def __delitem__(self, __v: _KT_contra) -> None: ... + +# These aliases are simple strings in Python 2. +StrPath = Union[str, PathLike[str]] # stable +BytesPath = Union[bytes, PathLike[bytes]] # stable +StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable + +OpenTextModeUpdating = Literal[ + "r+", + "+r", + "rt+", + "r+t", + "+rt", + "tr+", + "t+r", + "+tr", + "w+", + "+w", + "wt+", + "w+t", + "+wt", + "tw+", + "t+w", + "+tw", + "a+", + "+a", + "at+", + "a+t", + "+at", + "ta+", + "t+a", + "+ta", + "x+", + "+x", + "xt+", + "x+t", + "+xt", + "tx+", + "t+x", + "+tx", +] +OpenTextModeWriting = Literal["w", "wt", "tw", "a", "at", "ta", "x", "xt", "tx"] +OpenTextModeReading = Literal["r", "rt", "tr", "U", "rU", "Ur", "rtU", "rUt", "Urt", "trU", "tUr", "Utr"] +OpenTextMode = Union[OpenTextModeUpdating, OpenTextModeWriting, OpenTextModeReading] +OpenBinaryModeUpdating = Literal[ + "rb+", + "r+b", + "+rb", + "br+", + "b+r", + "+br", + "wb+", + "w+b", + "+wb", + "bw+", + "b+w", + "+bw", + "ab+", + "a+b", + "+ab", + "ba+", + "b+a", + "+ba", + "xb+", + "x+b", + "+xb", + "bx+", + "b+x", + "+bx", +] +OpenBinaryModeWriting = Literal["wb", "bw", "ab", "ba", "xb", "bx"] +OpenBinaryModeReading = Literal["rb", "br", "rbU", "rUb", "Urb", "brU", "bUr", "Ubr"] +OpenBinaryMode = Union[OpenBinaryModeUpdating, OpenBinaryModeReading, OpenBinaryModeWriting] + +# stable +class HasFileno(Protocol): + def fileno(self) -> int: ... + +FileDescriptor = int # stable +FileDescriptorLike = Union[int, HasFileno] # stable + +# stable +class SupportsRead(Protocol[_T_co]): + def read(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsReadline(Protocol[_T_co]): + def readline(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsNoArgReadline(Protocol[_T_co]): + def readline(self) -> _T_co: ... + +# stable +class SupportsWrite(Protocol[_T_contra]): + def write(self, __s: _T_contra) -> Any: ... + +ReadableBuffer = Union[bytes, bytearray, memoryview, array.array[Any]] # stable +WriteableBuffer = Union[bytearray, memoryview, array.array[Any]] # stable + +# stable +if sys.version_info >= (3, 10): + from types import NoneType as NoneType +else: + # Used by type checkers for checks involving None (does not exist at runtime) + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... diff --git a/lang/ca/typeshed/stdlib/abc.pyi b/lang/ca/typeshed/stdlib/abc.pyi new file mode 100644 index 0000000..18bb090 --- /dev/null +++ b/lang/ca/typeshed/stdlib/abc.pyi @@ -0,0 +1,28 @@ +from _typeshed import SupportsWrite +from typing import Any, Callable, Tuple, Type, TypeVar + +_T = TypeVar("_T") +_FuncT = TypeVar("_FuncT", bound=Callable[..., Any]) + +# These definitions have special processing in mypy +class ABCMeta(type): + __abstractmethods__: frozenset[str] + def __init__( + self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any] + ) -> None: ... + def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ... + def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ... + def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ... + def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ... + +def abstractmethod(funcobj: _FuncT) -> _FuncT: ... + +class abstractproperty(property): ... + +# These two are deprecated and not supported by mypy +def abstractstaticmethod(callable: _FuncT) -> _FuncT: ... +def abstractclassmethod(callable: _FuncT) -> _FuncT: ... + +class ABC(metaclass=ABCMeta): ... + +def get_cache_token() -> object: ... diff --git a/lang/ca/typeshed/stdlib/antigravity.pyi b/lang/ca/typeshed/stdlib/antigravity.pyi new file mode 100644 index 0000000..e69de29 diff --git a/lang/ca/typeshed/stdlib/array.pyi b/lang/ca/typeshed/stdlib/array.pyi new file mode 100644 index 0000000..1e4e630 --- /dev/null +++ b/lang/ca/typeshed/stdlib/array.pyi @@ -0,0 +1,42 @@ +from typing import Generic, Iterable, MutableSequence, TypeVar, Union, overload +from typing_extensions import Literal + +_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"] +_FloatTypeCode = Literal["f", "d"] +_TypeCode = Union[_IntTypeCode, _FloatTypeCode] + +_T = TypeVar("_T", int, float) + +class array(MutableSequence[_T], Generic[_T]): + @overload + def __init__( + self: array[int], + typecode: _IntTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self: array[float], + typecode: _FloatTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self, typecode: str, __initializer: Union[bytes, Iterable[_T]] = ... + ) -> None: ... + def append(self, __v: _T) -> None: ... + def decode(self) -> str: ... + def extend(self, __bb: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> _T: ... + @overload + def __getitem__(self, s: slice) -> array[_T]: ... + @overload # type: ignore # Overrides MutableSequence + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: array[_T]) -> None: ... + def __add__(self, x: array[_T]) -> array[_T]: ... + def __iadd__(self, x: array[_T]) -> array[_T]: ... # type: ignore # Overrides MutableSequence + +ArrayType = array diff --git a/lang/ca/typeshed/stdlib/audio.pyi b/lang/ca/typeshed/stdlib/audio.pyi new file mode 100644 index 0000000..b1d39c7 --- /dev/null +++ b/lang/ca/typeshed/stdlib/audio.pyi @@ -0,0 +1,11 @@ +"""Play sounds using the micro:bit (import ``audio`` for V1 compatibility). +""" + +# Re-export for V1 compatibility. +from .microbit.audio import ( + is_playing as is_playing, + play as play, + stop as stop, + AudioFrame as AudioFrame, + SoundEffect as SoundEffect, +) diff --git a/lang/ca/typeshed/stdlib/builtins.pyi b/lang/ca/typeshed/stdlib/builtins.pyi new file mode 100644 index 0000000..8b7dfb9 --- /dev/null +++ b/lang/ca/typeshed/stdlib/builtins.pyi @@ -0,0 +1,1334 @@ +import sys +import types +from _typeshed import ( + OpenBinaryMode, + OpenTextMode, + ReadableBuffer, + Self, + StrOrBytesPath, + SupportsDivMod, + SupportsKeysAndGetItem, + SupportsLenAndGetItem, + SupportsLessThan, + SupportsLessThanT, + SupportsRDivMod, + SupportsWrite, +) +from types import CodeType, TracebackType +from typing import ( + IO, + AbstractSet, + Any, + AsyncIterable, + AsyncIterator, + BinaryIO, + ByteString, + Callable, + FrozenSet, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + MutableMapping, + MutableSequence, + MutableSet, + NoReturn, + Protocol, + Reversible, + Sequence, + Set, + Sized, + SupportsAbs, + SupportsBytes, + SupportsComplex, + SupportsFloat, + SupportsInt, + SupportsRound, + TextIO, + Tuple, + Type, + TypeVar, + Union, + ValuesView, + overload, +) +from typing_extensions import Literal, SupportsIndex, final + +if sys.version_info >= (3, 9): + from types import GenericAlias + +class _SupportsTrunc(Protocol): + def __trunc__(self) -> int: ... + +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") +_S = TypeVar("_S") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T3 = TypeVar("_T3") +_T4 = TypeVar("_T4") +_T5 = TypeVar("_T5") +_TT = TypeVar("_TT", bound="type") +_TBE = TypeVar("_TBE", bound="BaseException") + +class object: + __doc__: str | None + __dict__: dict[str, Any] + __slots__: str | Iterable[str] + __module__: str + __annotations__: dict[str, Any] + @property + def __class__(self: _T) -> Type[_T]: ... + # Ignore errors about type mismatch between property getter and setter + @__class__.setter + def __class__(self, __type: Type[object]) -> None: ... # type: ignore # noqa: F811 + def __init__(self) -> None: ... + def __new__(cls: Type[_T]) -> _T: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __eq__(self, o: object) -> bool: ... + def __ne__(self, o: object) -> bool: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + def __format__(self, format_spec: str) -> str: ... + def __getattribute__(self, name: str) -> Any: ... + def __delattr__(self, name: str) -> None: ... + def __sizeof__(self) -> int: ... + def __reduce__(self) -> str | Tuple[Any, ...]: ... + if sys.version_info >= (3, 8): + def __reduce_ex__(self, protocol: SupportsIndex) -> str | Tuple[Any, ...]: ... + else: + def __reduce_ex__(self, protocol: int) -> str | Tuple[Any, ...]: ... + def __dir__(self) -> Iterable[str]: ... + def __init_subclass__(cls) -> None: ... + +class staticmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class classmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class type(object): + __base__: type + __bases__: Tuple[type, ...] + __basicsize__: int + __dict__: dict[str, Any] + __dictoffset__: int + __flags__: int + __itemsize__: int + __module__: str + __name__: str + __qualname__: str + __text_signature__: str | None + __weakrefoffset__: int + @overload + def __init__(self, o: object) -> None: ... + @overload + def __init__( + self, name: str, bases: Tuple[type, ...], dict: dict[str, Any], **kwds: Any + ) -> None: ... + @overload + def __new__(cls, o: object) -> type: ... + @overload + def __new__( + cls: Type[_TT], + name: str, + bases: Tuple[type, ...], + namespace: dict[str, Any], + **kwds: Any, + ) -> _TT: ... + def __call__(self, *args: Any, **kwds: Any) -> Any: ... + def __subclasses__(self: _TT) -> list[_TT]: ... + def __instancecheck__(self, instance: Any) -> bool: ... + def __subclasscheck__(self, subclass: type) -> bool: ... + @classmethod + def __prepare__( + metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any + ) -> Mapping[str, Any]: ... + if sys.version_info >= (3, 10): + def __or__(self, t: Any) -> types.UnionType: ... + def __ror__(self, t: Any) -> types.UnionType: ... + +class super(object): + @overload + def __init__(self, t: Any, obj: Any) -> None: ... + @overload + def __init__(self, t: Any) -> None: ... + @overload + def __init__(self) -> None: ... + +class int: + @overload + def __new__( + cls: Type[_T], + x: str | bytes | SupportsInt | SupportsIndex | _SupportsTrunc = ..., + ) -> _T: ... + @overload + def __new__( + cls: Type[_T], x: str | bytes | bytearray, base: SupportsIndex + ) -> _T: ... + def to_bytes( + self, + length: SupportsIndex, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> bytes: ... + @classmethod + def from_bytes( + cls, + bytes: Iterable[SupportsIndex] | SupportsBytes, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> int: ... # TODO buffer object argument + def __add__(self, x: int) -> int: ... + def __sub__(self, x: int) -> int: ... + def __mul__(self, x: int) -> int: ... + def __floordiv__(self, x: int) -> int: ... + def __truediv__(self, x: int) -> float: ... + def __mod__(self, x: int) -> int: ... + def __divmod__(self, x: int) -> Tuple[int, int]: ... + def __radd__(self, x: int) -> int: ... + def __rsub__(self, x: int) -> int: ... + def __rmul__(self, x: int) -> int: ... + def __rfloordiv__(self, x: int) -> int: ... + def __rtruediv__(self, x: int) -> float: ... + def __rmod__(self, x: int) -> int: ... + def __rdivmod__(self, x: int) -> Tuple[int, int]: ... + @overload + def __pow__(self, __x: Literal[2], __modulo: int | None = ...) -> int: ... + @overload + def __pow__( + self, __x: int, __modulo: int | None = ... + ) -> Any: ... # Return type can be int or float, depending on x. + def __rpow__(self, x: int, mod: int | None = ...) -> Any: ... + def __and__(self, n: int) -> int: ... + def __or__(self, n: int) -> int: ... + def __xor__(self, n: int) -> int: ... + def __lshift__(self, n: int) -> int: ... + def __rshift__(self, n: int) -> int: ... + def __rand__(self, n: int) -> int: ... + def __ror__(self, n: int) -> int: ... + def __rxor__(self, n: int) -> int: ... + def __rlshift__(self, n: int) -> int: ... + def __rrshift__(self, n: int) -> int: ... + def __neg__(self) -> int: ... + def __pos__(self) -> int: ... + def __invert__(self) -> int: ... + def __trunc__(self) -> int: ... + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + def __round__(self, ndigits: SupportsIndex = ...) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: int) -> bool: ... + def __le__(self, x: int) -> bool: ... + def __gt__(self, x: int) -> bool: ... + def __ge__(self, x: int) -> bool: ... + def __str__(self) -> str: ... + def __float__(self) -> float: ... + def __int__(self) -> int: ... + def __abs__(self) -> int: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + def __index__(self) -> int: ... + +class float: + def __new__( + cls: Type[_T], x: SupportsFloat | SupportsIndex | str | bytes | bytearray = ... + ) -> _T: ... + def __add__(self, x: float) -> float: ... + def __sub__(self, x: float) -> float: ... + def __mul__(self, x: float) -> float: ... + def __floordiv__(self, x: float) -> float: ... + def __truediv__(self, x: float) -> float: ... + def __mod__(self, x: float) -> float: ... + def __divmod__(self, x: float) -> Tuple[float, float]: ... + def __pow__( + self, x: float, mod: None = ... + ) -> float: ... # In Python 3, returns complex if self is negative and x is not whole + def __radd__(self, x: float) -> float: ... + def __rsub__(self, x: float) -> float: ... + def __rmul__(self, x: float) -> float: ... + def __rfloordiv__(self, x: float) -> float: ... + def __rtruediv__(self, x: float) -> float: ... + def __rmod__(self, x: float) -> float: ... + def __rdivmod__(self, x: float) -> Tuple[float, float]: ... + def __rpow__(self, x: float, mod: None = ...) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... + def __trunc__(self) -> int: ... + if sys.version_info >= (3, 9): + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + @overload + def __round__(self, ndigits: None = ...) -> int: ... + @overload + def __round__(self, ndigits: SupportsIndex) -> float: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: float) -> bool: ... + def __le__(self, x: float) -> bool: ... + def __gt__(self, x: float) -> bool: ... + def __ge__(self, x: float) -> bool: ... + def __neg__(self) -> float: ... + def __pos__(self) -> float: ... + def __str__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class complex: + @overload + def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], real: str | SupportsComplex | SupportsIndex | complex + ) -> _T: ... + @property + def real(self) -> float: ... + @property + def imag(self) -> float: ... + def __add__(self, x: complex) -> complex: ... + def __sub__(self, x: complex) -> complex: ... + def __mul__(self, x: complex) -> complex: ... + def __pow__(self, x: complex, mod: None = ...) -> complex: ... + def __truediv__(self, x: complex) -> complex: ... + def __radd__(self, x: complex) -> complex: ... + def __rsub__(self, x: complex) -> complex: ... + def __rmul__(self, x: complex) -> complex: ... + def __rpow__(self, x: complex, mod: None = ...) -> complex: ... + def __rtruediv__(self, x: complex) -> complex: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __neg__(self) -> complex: ... + def __pos__(self) -> complex: ... + def __str__(self) -> str: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class str(Sequence[str]): + @overload + def __new__(cls: Type[_T], o: object = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], o: bytes, encoding: str = ..., errors: str = ... + ) -> _T: ... + def count( + self, + x: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ... + def endswith( + self, + __suffix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def format(self, *args: object, **kwargs: object) -> str: ... + def index( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable: Iterable[str]) -> str: ... + def lower(self) -> str: ... + def lstrip(self, __chars: str | None = ...) -> str: ... + def replace(self, __old: str, __new: str, __count: SupportsIndex = ...) -> str: ... + def rfind( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def rstrip(self, __chars: str | None = ...) -> str: ... + def split( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def startswith( + self, + __prefix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __chars: str | None = ...) -> str: ... + def upper(self) -> str: ... + def __add__(self, s: str) -> str: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: str) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ge__(self, x: str) -> bool: ... + def __getitem__(self, i: int | slice) -> str: ... + def __gt__(self, x: str) -> bool: ... + def __hash__(self) -> int: ... + def __iter__(self) -> Iterator[str]: ... + def __le__(self, x: str) -> bool: ... + def __len__(self) -> int: ... + def __lt__(self, x: str) -> bool: ... + def __mod__(self, x: Any) -> str: ... + def __mul__(self, n: SupportsIndex) -> str: ... + def __ne__(self, x: object) -> bool: ... + def __repr__(self) -> str: ... + def __rmul__(self, n: SupportsIndex) -> str: ... + def __str__(self) -> str: ... + def __getnewargs__(self) -> Tuple[str]: ... + +class bytes(ByteString): + @overload + def __new__(cls: Type[_T], ints: Iterable[SupportsIndex]) -> _T: ... + @overload + def __new__(cls: Type[_T], string: str, encoding: str, errors: str = ...) -> _T: ... + @overload + def __new__(cls: Type[_T], length: SupportsIndex) -> _T: ... + @overload + def __new__(cls: Type[_T]) -> _T: ... + @overload + def __new__(cls: Type[_T], o: SupportsBytes) -> _T: ... + def count( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def endswith( + self, + __suffix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def index( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable_of_bytes: Iterable[ByteString | memoryview]) -> bytes: ... + def lower(self) -> bytes: ... + def lstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def replace( + self, __old: bytes, __new: bytes, __count: SupportsIndex = ... + ) -> bytes: ... + def rfind( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def rstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def split( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def startswith( + self, + __prefix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __bytes: bytes | None = ...) -> bytes: ... + def upper(self) -> bytes: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytes: ... + def __add__(self, s: bytes) -> bytes: ... + def __mul__(self, n: SupportsIndex) -> bytes: ... + def __rmul__(self, n: SupportsIndex) -> bytes: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + def __getnewargs__(self) -> Tuple[bytes]: ... + +class bytearray: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, ints: Iterable[SupportsIndex]) -> None: ... + @overload + def __init__(self, string: str, encoding: str, errors: str = ...) -> None: ... + @overload + def __init__(self, length: SupportsIndex) -> None: ... + def append(self, __item: SupportsIndex) -> None: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def extend(self, __iterable_of_ints: Iterable[SupportsIndex]) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytearray: ... + @overload + def __setitem__(self, i: SupportsIndex, x: SupportsIndex) -> None: ... + @overload + def __setitem__(self, s: slice, x: Iterable[SupportsIndex] | bytes) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, s: bytes) -> bytearray: ... + def __iadd__(self, s: Iterable[int]) -> bytearray: ... + def __mul__(self, n: SupportsIndex) -> bytearray: ... + def __rmul__(self, n: SupportsIndex) -> bytearray: ... + def __imul__(self, n: SupportsIndex) -> bytearray: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + +class memoryview(Sized, Sequence[int]): + def __init__(self, obj: ReadableBuffer) -> None: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> memoryview: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + def __len__(self) -> int: ... + @overload + def __setitem__(self, s: slice, o: bytes) -> None: ... + @overload + def __setitem__(self, i: SupportsIndex, o: SupportsIndex) -> None: ... + +@final +class bool(int): + def __new__(cls: Type[_T], __o: object = ...) -> _T: ... + @overload + def __and__(self, x: bool) -> bool: ... + @overload + def __and__(self, x: int) -> int: ... + @overload + def __or__(self, x: bool) -> bool: ... + @overload + def __or__(self, x: int) -> int: ... + @overload + def __xor__(self, x: bool) -> bool: ... + @overload + def __xor__(self, x: int) -> int: ... + @overload + def __rand__(self, x: bool) -> bool: ... + @overload + def __rand__(self, x: int) -> int: ... + @overload + def __ror__(self, x: bool) -> bool: ... + @overload + def __ror__(self, x: int) -> int: ... + @overload + def __rxor__(self, x: bool) -> bool: ... + @overload + def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + +class slice(object): + start: Any + step: Any + stop: Any + __hash__: None # type: ignore + def indices(self, len: SupportsIndex) -> Tuple[int, int, int]: ... + +class tuple(Sequence[_T_co], Generic[_T_co]): + def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ... + def __len__(self) -> int: ... + def __contains__(self, x: object) -> bool: ... + @overload + def __getitem__(self, x: int) -> _T_co: ... + @overload + def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __le__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ... + @overload + def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ... + @overload + def __add__(self, x: Tuple[_T, ...]) -> Tuple[_T_co | _T, ...]: ... + def __mul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def __rmul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def count(self, __value: Any) -> int: ... + def index( + self, __value: Any, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + +# Can we remove this? +class function: + # TODO not defined in builtins! + __name__: str + __module__: str + __code__: CodeType + __qualname__: str + __annotations__: dict[str, Any] + +class frozenset(AbstractSet[_T_co], Generic[_T_co]): + @overload + def __new__(cls: type[Self]) -> Self: ... + @overload + def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ... + def copy(self) -> FrozenSet[_T_co]: ... + def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def isdisjoint(self, s: Iterable[_T_co]) -> bool: ... + def issubset(self, s: Iterable[object]) -> bool: ... + def issuperset(self, s: Iterable[object]) -> bool: ... + def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class list(MutableSequence[_T], Generic[_T]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, iterable: Iterable[_T]) -> None: ... + def clear(self) -> None: ... + def copy(self) -> list[_T]: ... + def append(self, __object: _T) -> None: ... + def extend(self, __iterable: Iterable[_T]) -> None: ... + def pop(self, __index: SupportsIndex = ...) -> _T: ... + def index( + self, __value: _T, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + def count(self, __value: _T) -> int: ... + def insert(self, __index: SupportsIndex, __object: _T) -> None: ... + def remove(self, __value: _T) -> None: ... + def reverse(self) -> None: ... + @overload + def sort( + self: list[SupportsLessThanT], *, key: None = ..., reverse: bool = ... + ) -> None: ... + @overload + def sort( + self, *, key: Callable[[_T], SupportsLessThan], reverse: bool = ... + ) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> _T: ... + @overload + def __getitem__(self, s: slice) -> list[_T]: ... + @overload + def __setitem__(self, i: SupportsIndex, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, x: list[_T]) -> list[_T]: ... + def __iadd__(self: _S, x: Iterable[_T]) -> _S: ... + def __mul__(self, n: SupportsIndex) -> list[_T]: ... + def __rmul__(self, n: SupportsIndex) -> list[_T]: ... + def __imul__(self: _S, n: SupportsIndex) -> _S: ... + def __contains__(self, o: object) -> bool: ... + def __reversed__(self) -> Iterator[_T]: ... + def __gt__(self, x: list[_T]) -> bool: ... + def __ge__(self, x: list[_T]) -> bool: ... + def __lt__(self, x: list[_T]) -> bool: ... + def __le__(self, x: list[_T]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): + @overload + def __init__(self: dict[_KT, _VT]) -> None: ... + @overload + def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ... + @overload + def __init__( + self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT + ) -> None: ... + @overload + def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ... + def clear(self) -> None: ... + def copy(self) -> dict[_KT, _VT]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ... + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT]: ... + def items(self) -> ItemsView[_KT, _VT]: ... + @classmethod + @overload + def fromkeys( + cls, __iterable: Iterable[_T], __value: None = ... + ) -> dict[_T, Any | None]: ... + @classmethod + @overload + def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ... + def __len__(self) -> int: ... + def __getitem__(self, k: _KT) -> _VT: ... + def __setitem__(self, k: _KT, v: _VT) -> None: ... + def __delitem__(self, v: _KT) -> None: ... + def __iter__(self) -> Iterator[_KT]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __or__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ror__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ior__(self, __value: Mapping[_KT, _VT]) -> dict[_KT, _VT]: ... # type: ignore + +class set(MutableSet[_T], Generic[_T]): + def __init__(self, iterable: Iterable[_T] = ...) -> None: ... + def add(self, element: _T) -> None: ... + def clear(self) -> None: ... + def copy(self) -> Set[_T]: ... + def difference(self, *s: Iterable[Any]) -> Set[_T]: ... + def difference_update(self, *s: Iterable[Any]) -> None: ... + def discard(self, element: _T) -> None: ... + def intersection(self, *s: Iterable[Any]) -> Set[_T]: ... + def intersection_update(self, *s: Iterable[Any]) -> None: ... + def isdisjoint(self, s: Iterable[Any]) -> bool: ... + def issubset(self, s: Iterable[Any]) -> bool: ... + def issuperset(self, s: Iterable[Any]) -> bool: ... + def pop(self) -> _T: ... + def remove(self, element: _T) -> None: ... + def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ... + def symmetric_difference_update(self, s: Iterable[_T]) -> None: ... + def union(self, *s: Iterable[_T]) -> Set[_T]: ... + def update(self, *s: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __or__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ior__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __sub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __isub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __xor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ixor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): + def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ... + def __iter__(self) -> Iterator[Tuple[int, _T]]: ... + def __next__(self) -> Tuple[int, _T]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class range(Sequence[int]): + start: int + stop: int + step: int + @overload + def __init__(self, stop: SupportsIndex) -> None: ... + @overload + def __init__( + self, start: SupportsIndex, stop: SupportsIndex, step: SupportsIndex = ... + ) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> range: ... + def __repr__(self) -> str: ... + def __reversed__(self) -> Iterator[int]: ... + +class property(object): + fget: Callable[[Any], Any] | None + fset: Callable[[Any, Any], None] | None + fdel: Callable[[Any], None] | None + def __init__( + self, + fget: Callable[[Any], Any] | None = ..., + fset: Callable[[Any, Any], None] | None = ..., + fdel: Callable[[Any], None] | None = ..., + doc: str | None = ..., + ) -> None: ... + def getter(self, fget: Callable[[Any], Any]) -> property: ... + def setter(self, fset: Callable[[Any, Any], None]) -> property: ... + def deleter(self, fdel: Callable[[Any], None]) -> property: ... + def __get__(self, obj: Any, type: type | None = ...) -> Any: ... + def __set__(self, obj: Any, value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +class _NotImplementedType(Any): # type: ignore + # A little weird, but typing the __call__ as NotImplemented makes the error message + # for NotImplemented() much better + __call__: NotImplemented # type: ignore + +NotImplemented: _NotImplementedType + +def abs(__x: SupportsAbs[_T]) -> _T: ... +def all(__iterable: Iterable[object]) -> bool: ... +def any(__iterable: Iterable[object]) -> bool: ... +def bin(__number: int | SupportsIndex) -> str: ... + +if sys.version_info >= (3, 7): + def breakpoint(*args: Any, **kws: Any) -> None: ... + +def callable(__obj: object) -> bool: ... +def chr(__i: int) -> str: ... + +# We define this here instead of using os.PathLike to avoid import cycle issues. +# See https://github.com/python/typeshed/pull/991#issuecomment-288160993 +_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True) + +class _PathLike(Protocol[_AnyStr_co]): + def __fspath__(self) -> _AnyStr_co: ... + +if sys.version_info >= (3, 10): + def aiter(__iterable: AsyncIterable[_T]) -> AsyncIterator[_T]: ... + @overload + async def anext(__i: AsyncIterator[_T]) -> _T: ... + @overload + async def anext(__i: AsyncIterator[_T], default: _VT) -> _T | _VT: ... + +def delattr(__obj: Any, __name: str) -> None: ... +def dir(__o: object = ...) -> list[str]: ... +@overload +def divmod(__x: SupportsDivMod[_T_contra, _T_co], __y: _T_contra) -> _T_co: ... +@overload +def divmod(__x: _T_contra, __y: SupportsRDivMod[_T_contra, _T_co]) -> _T_co: ... +def eval( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... +def exec( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... + +class filter(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __function: None, __iterable: Iterable[_T | None]) -> None: ... + @overload + def __init__( + self, __function: Callable[[_T], Any], __iterable: Iterable[_T] + ) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +@overload +def getattr(__o: object, name: str) -> Any: ... + +# While technically covered by the last overload, spelling out the types for None and bool +# help mypy out in some tricky situations involving type context (aka bidirectional inference) +@overload +def getattr(__o: object, name: str, __default: None) -> Any | None: ... +@overload +def getattr(__o: object, name: str, __default: bool) -> Any | bool: ... +@overload +def getattr(__o: object, name: str, __default: _T) -> Any | _T: ... +def globals() -> dict[str, Any]: ... +def hasattr(__obj: object, __name: str) -> bool: ... +def hash(__obj: object) -> int: ... +def help(*args: Any, **kwds: Any) -> None: ... +def hex(__number: int | SupportsIndex) -> str: ... +def id(__obj: object) -> int: ... +def input(__prompt: Any = ...) -> str: ... +@overload +def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T | None], __sentinel: None) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ... + +if sys.version_info >= (3, 10): + def isinstance( + __obj: object, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + def issubclass( + __cls: type, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + +else: + def isinstance( + __obj: object, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + def issubclass( + __cls: type, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + +def len(__obj: Sized) -> int: ... +def locals() -> dict[str, Any]: ... + +class map(Iterator[_S], Generic[_S]): + @overload + def __init__(self, __func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[..., _S], + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> None: ... + def __iter__(self) -> Iterator[_S]: ... + def __next__(self) -> _S: ... + +@overload +def max( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def max( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def max(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def max( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def min( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def min( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def min(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def min( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def next(__i: Iterator[_T]) -> _T: ... +@overload +def next(__i: Iterator[_T], default: _VT) -> _T | _VT: ... +def oct(__number: int | SupportsIndex) -> str: ... + +_OpenFile = Union[StrOrBytesPath, int] +_Opener = Callable[[str, int], int] + +# Text mode: always returns a TextIOWrapper +@overload +def open( + file: _OpenFile, + mode: OpenTextMode = ..., + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> TextIO: ... + +# Unbuffered binary mode: returns a FileIO +@overload +def open( + file: _OpenFile, + mode: OpenBinaryMode, + buffering: int = ..., + encoding: None = ..., + errors: None = ..., + newline: None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> BinaryIO: ... + +# Fallback if mode is not specified +@overload +def open( + file: _OpenFile, + mode: str, + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> IO[Any]: ... +def ord(__c: str | bytes) -> int: ... +def print( + *values: object, + sep: str | None = ..., + end: str | None = ..., + file: SupportsWrite[str] | None = ..., + flush: bool = ..., +) -> None: ... + +_E = TypeVar("_E", contravariant=True) +_M = TypeVar("_M", contravariant=True) + +class _SupportsPow2(Protocol[_E, _T_co]): + def __pow__(self, __other: _E) -> _T_co: ... + +class _SupportsPow3(Protocol[_E, _M, _T_co]): + def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ... + +if sys.version_info >= (3, 8): + @overload + def pow( + base: int, exp: int, mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(base: int, exp: int, mod: int) -> int: ... + @overload + def pow(base: float, exp: float, mod: None = ...) -> float: ... + @overload + def pow(base: _SupportsPow2[_E, _T_co], exp: _E) -> _T_co: ... + @overload + def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ... + +else: + @overload + def pow( + __base: int, __exp: int, __mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(__base: int, __exp: int, __mod: int) -> int: ... + @overload + def pow(__base: float, __exp: float, __mod: None = ...) -> float: ... + @overload + def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ... + @overload + def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ... + +class reversed(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __sequence: Reversible[_T]) -> None: ... + @overload + def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +def repr(__obj: object) -> str: ... +@overload +def round(number: SupportsRound[Any]) -> int: ... +@overload +def round(number: SupportsRound[Any], ndigits: None) -> int: ... +@overload +def round(number: SupportsRound[_T], ndigits: SupportsIndex) -> _T: ... +def setattr(__obj: object, __name: str, __value: Any) -> None: ... +@overload +def sorted( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., reverse: bool = ... +) -> list[SupportsLessThanT]: ... +@overload +def sorted( + __iterable: Iterable[_T], + *, + key: Callable[[_T], SupportsLessThan], + reverse: bool = ..., +) -> list[_T]: ... + +if sys.version_info >= (3, 8): + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], start: _S) -> _T | _S: ... + +else: + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], __start: _S) -> _T | _S: ... + +class zip(Iterator[_T_co], Generic[_T_co]): + @overload + def __new__(cls, __iter1: Iterable[_T1]) -> zip[Tuple[_T1]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2] + ) -> zip[Tuple[_T1, _T2]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3] + ) -> zip[Tuple[_T1, _T2, _T3]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> zip[Tuple[_T1, _T2, _T3, _T4]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> zip[Tuple[Any, ...]]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __next__(self) -> _T_co: ... + +def __import__( + name: str, + globals: Mapping[str, Any] | None = ..., + locals: Mapping[str, Any] | None = ..., + fromlist: Sequence[str] = ..., + level: int = ..., +) -> Any: ... + +# Actually the type of Ellipsis is , but since it's +# not exposed anywhere under that name, we make it private here. +class ellipsis: ... + +Ellipsis: ellipsis + +class BaseException(object): + args: Tuple[Any, ...] + __cause__: BaseException | None + __context__: BaseException | None + __suppress_context__: bool + __traceback__: TracebackType | None + def __init__(self, *args: object) -> None: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def with_traceback(self: _TBE, tb: TracebackType | None) -> _TBE: ... + +class GeneratorExit(BaseException): ... +class KeyboardInterrupt(BaseException): ... + +class SystemExit(BaseException): + code: int + +class Exception(BaseException): ... + +class StopIteration(Exception): + value: Any + +_StandardError = Exception + +class OSError(Exception): + errno: int + strerror: str + # filename, filename2 are actually str | bytes | None + filename: Any + filename2: Any + if sys.platform == "win32": + winerror: int + +if sys.platform == "win32": + WindowsError = OSError + +class ArithmeticError(_StandardError): ... +class AssertionError(_StandardError): ... + +class AttributeError(_StandardError): + if sys.version_info >= (3, 10): + name: str + obj: object + +class EOFError(_StandardError): ... + +class ImportError(_StandardError): + def __init__( + self, *args: object, name: str | None = ..., path: str | None = ... + ) -> None: ... + name: str | None + path: str | None + msg: str # undocumented + +class LookupError(_StandardError): ... +class MemoryError(_StandardError): ... + +class NameError(_StandardError): + if sys.version_info >= (3, 10): + name: str + +class RuntimeError(_StandardError): ... + +class StopAsyncIteration(Exception): + value: Any + +class SyntaxError(_StandardError): + msg: str + lineno: int | None + offset: int | None + text: str | None + filename: str | None + if sys.version_info >= (3, 10): + end_lineno: int | None + end_offset: int | None + +class TypeError(_StandardError): ... +class ValueError(_StandardError): ... +class FloatingPointError(ArithmeticError): ... +class OverflowError(ArithmeticError): ... +class ZeroDivisionError(ArithmeticError): ... +class IndexError(LookupError): ... +class KeyError(LookupError): ... +class NotImplementedError(RuntimeError): ... +class IndentationError(SyntaxError): ... +class TabError(IndentationError): ... diff --git a/lang/ca/typeshed/stdlib/collections/__init__.pyi b/lang/ca/typeshed/stdlib/collections/__init__.pyi new file mode 100644 index 0000000..8815a4b --- /dev/null +++ b/lang/ca/typeshed/stdlib/collections/__init__.pyi @@ -0,0 +1,60 @@ +import sys +from typing import ( + Any, + Dict, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Optional, + Reversible, + Tuple, + Type, + TypeVar, + Union, + ValuesView, +) + +_S = TypeVar("_S") +_T = TypeVar("_T") +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") + +if sys.version_info >= (3, 7): + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + rename: bool = ..., + module: Optional[str] = ..., + defaults: Optional[Iterable[Any]] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +else: + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + verbose: bool = ..., + rename: bool = ..., + module: Optional[str] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +class _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]): + def __reversed__(self) -> Iterator[_KT]: ... + +class _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]): + def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ... + +class _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]): + def __reversed__(self) -> Iterator[_VT]: ... + +class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]): + def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ... + def move_to_end(self, key: _KT, last: bool = ...) -> None: ... + def copy(self: _S) -> _S: ... + def __reversed__(self) -> Iterator[_KT]: ... + def keys(self) -> _OrderedDictKeysView[_KT]: ... + def items(self) -> _OrderedDictItemsView[_KT, _VT]: ... + def values(self) -> _OrderedDictValuesView[_VT]: ... diff --git a/lang/ca/typeshed/stdlib/errno.pyi b/lang/ca/typeshed/stdlib/errno.pyi new file mode 100644 index 0000000..6ff1c70 --- /dev/null +++ b/lang/ca/typeshed/stdlib/errno.pyi @@ -0,0 +1,26 @@ +from typing import Mapping + +errorcode: Mapping[int, str] + +EACCES: int +EADDRINUSE: int +EAGAIN: int +EALREADY: int +EBADF: int +ECONNABORTED: int +ECONNREFUSED: int +ECONNRESET: int +EEXIST: int +EHOSTUNREACH: int +EINPROGRESS: int +EINVAL: int +EIO: int +EISDIR: int +ENOBUFS: int +ENODEV: int +ENOENT: int +ENOMEM: int +ENOTCONN: int +EOPNOTSUPP: int +EPERM: int +ETIMEDOUT: int diff --git a/lang/ca/typeshed/stdlib/gc.pyi b/lang/ca/typeshed/stdlib/gc.pyi new file mode 100644 index 0000000..e12aaf9 --- /dev/null +++ b/lang/ca/typeshed/stdlib/gc.pyi @@ -0,0 +1,68 @@ +"""Controla el recol·lector de memòria brossa""" +from typing import overload + +def enable() -> None: + """Habilita la recol·lecció automàtica de la memòria brossa (habilita)""" + ... + +def disable() -> None: + """Inhabilita la recol·lecció automàtica de la memòria brossa (desactiva) + +Heap memory can still be allocated, +and garbage collection can still be initiated manually using ``gc.collect``.""" + +def collect() -> None: + """Executa la recol·lecció automàtica de la memòria brossa (Recull)""" + ... + +def mem_alloc() -> int: + """Obté el nombre de bytes assignats a la memòria dinàmica. (espai de memòria) + +:return: The number of bytes allocated. + +This function is MicroPython extension.""" + ... + +def mem_free() -> int: + """Obté el nombre disponible de bytes de la memòria dinàmica, o -1 si no es coneix la quantitat. (memòria lliure) + +:return: The number of bytes free. + +This function is MicroPython extension.""" + ... + +@overload +def threshold() -> int: + """Consulta l'assignació del llindar del col·lector d'escombraries. (llindar) + +:return: The GC allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different.""" + ... + +@overload +def threshold(amount: int) -> None: + """Assigna un espai adicional al llindar del col·lector d'escombraries. (llindar) + +Normally, a collection is triggered only when a new allocation +cannot be satisfied, i.e. on an out-of-memory (OOM) condition. +If this function is called, in addition to OOM, a collection +will be triggered each time after ``amount`` bytes have been +allocated (in total, since the previous time such an amount of bytes +have been allocated). ``amount`` is usually specified as less than the +full heap size, with the intention to trigger a collection earlier than when the +heap becomes exhausted, and in the hope that an early collection will prevent +excessive memory fragmentation. This is a heuristic measure, the effect +of which will vary from application to application, as well as +the optimal value of the ``amount`` parameter. + +A value of -1 means a disabled allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different. + +:param amount: (quantitat) El nombre de bytes després del qual s'activarà la recol·lecció de la memòria brossa.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/log.pyi b/lang/ca/typeshed/stdlib/log.pyi new file mode 100644 index 0000000..50e425d --- /dev/null +++ b/lang/ca/typeshed/stdlib/log.pyi @@ -0,0 +1,89 @@ +"""Registre dades en la micro:bit V2 (registre)""" +from typing import Literal, Mapping, Optional, Union, overload +MILLISECONDS = 1 +"""Format de marca de temps de mil·lisegons. (mil·lisegons)""" +SECONDS = 10 +"""Format de marca de temps de segons. (segons)""" +MINUTES = 600 +"""Format de marca de temps de minuts. (minuts)""" +HOURS = 36000 +"""Format de marca de temps d'hores. (hores)""" +DAYS = 864000 +"""Format de marca de temps de dies. (dies)""" + +def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None: + """Defineix la capçalera del fitxer de registre. (Defineix l'etiqueta) + +Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)`` + +Ideally this function should be called a single time, before any data is +logged, to configure the data table header once. + +If a log file already exists when the program starts, or if this function +is called multiple times, it will check the labels already defined in the +log file. If this function call contains any new labels not already +present, it will generate a new header row with the additional columns. + +By default the first column contains a timestamp for each row. The time +unit can be selected via the timestamp argument. + +:param *labels: Qualsevol nombre d'arguments posicionals, corresponent cadascun a una entrada en la capçalera del registre. +:param timestamp: (marca horària) Selecciona la unitat de la marca del temps que serà automaticament afegida com a primera columna de cada fila. Els valors de la marca del temps pot ser un de ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` o ``None`` per desactivar la marca del temps. El valor per defecte es ``log.SECONDS``.""" + ... + +@overload +def add(data_dictionary: Optional[Mapping[str, Union[str, int, float]]]) -> None: + """Afegeix una fila de dades al registre passant un diccionari de capçaleres i valors. (afegeix) + +Example: ``log.add({ 'temp': temperature() })`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row. + +:param data_dictionary: (diccionari de dades) Les dades a ser registrades com un diccionari amb una clau per cada capçalera.""" + ... + +@overload +def add(**kwargs: Union[str, int, float]) -> None: + """Afegeix una fila de dades al registre fent servir arguments de paraula clau. (afegeix) + +Example: ``log.add(temp=temperature())`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row.""" + ... + +def delete(full=False): + """Suprimeix el contingut del registre, incloses les capçaleres. (suprimeix) + +Example: ``log.delete()`` + +To add the log headers again the ``set_labels`` function should to be called after this function. + +There are two erase modes; “full” completely removes the data from the physical storage, +and “fast” invalidates the data without removing it. + +:param full: (ple) ``True`` selecciona un esborrat "total" ``False`` selecciona un mètode d'esborrat "ràpid".""" + ... + +def set_mirroring(serial: bool): + """Configura la duplicació de l'activitat de registre de dades a la sortida en sèrie. (estableix mirall) + +Example: ``log.set_mirroring(True)`` + +Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. + +:param serial: ``True`` permet la duplicació de les dades a la sortida sèrie.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/love.pyi b/lang/ca/typeshed/stdlib/love.pyi new file mode 100644 index 0000000..9018624 --- /dev/null +++ b/lang/ca/typeshed/stdlib/love.pyi @@ -0,0 +1 @@ +def badaboom() -> None: ... diff --git a/lang/ca/typeshed/stdlib/machine.pyi b/lang/ca/typeshed/stdlib/machine.pyi new file mode 100644 index 0000000..d40f465 --- /dev/null +++ b/lang/ca/typeshed/stdlib/machine.pyi @@ -0,0 +1,84 @@ +"""Utilitats de baix nivell. (màquina)""" +from typing import Any +from .microbit import MicroBitDigitalPin + +def unique_id() -> bytes: + """Obté una cadena de bytes amb un identificador únic d'una placa. + +Example: ``machine.unique_id()`` + +:return: An identifier that varies from one board instance to another.""" + ... + +def reset() -> None: + """Reinicia el dispositiu d'una manera semblant a la de prémer el botó extern de REINICI. (reiniciar) + +Example: ``machine.reset()``""" + ... + +def freq() -> int: + """Obté la freqüència en Hertz de la CPU + +Example: ``machine.freq()`` + +:return: The CPU frequency.""" + ... + +def disable_irq() -> Any: + """Desactiva les sol·licituds d'interrupció. (desabilita irq) + +Example: ``interrupt_state = machine.disable_irq()`` + +:return: the previous IRQ state which should be considered an opaque value + +The return value should be passed to the ``enable_irq`` function to restore +interrupts to their original state.""" + ... + +def enable_irq(state: Any) -> None: + """Torna a habilitar les sol·licituds d'interrupció. (habilita irq) + +Example: ``machine.enable_irq(interrupt_state)`` + +:param state: (estat) El valor retornat per la crida més recent a la funció ``disable_irq``.""" + ... + +def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int: + """Cronometra una pulsació en un pin. (mesura la durada d'una pulsació en un pin) + +Example: ``time_pulse_us(pin0, 1)`` + +If the current input value of the pin is different to ``pulse_level``, the +function first waits until the pin input becomes equal to +``pulse_level``, then times the duration that the pin is equal to +``pulse_level``. If the pin is already equal to ``pulse_level`` then timing +starts straight away. + +:param pin: El pin a utilitzar +:param pulse_level: (nivell de pulsació) 0 per cronometrar la durada de l'estat baix o 1 per cronometrar la durada de l'estat alt +:param timeout_us: (temps d'espera a la resposta excedit en microsegons) Temps d'espera d'un microsegon +:return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end""" + ... + +class mem: + """La classe per a les vistes de la memòria ``mem8``, ``mem16`` i ``mem32``.""" + + def __getitem__(self, address: int) -> int: + """Accedeix a un valor de la memòria + +:param address: (adreça) L'adreça de la memòria +:return: The value at that address as an integer.""" + ... + + def __setitem__(self, address: int, value: int) -> None: + """Assigna un valor a l'adreça donada + +:param address: (adreça) L'adreça de la memòria +:param value: (valor) El valor enter que cal assignar.""" + ... +mem8: mem +"""vista de la memòria 8-bit (byte)""" +mem16: mem +"""vista de la memòria 16-bit""" +mem32: mem +"""vista de la memòria 32-bit""" \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/math.pyi b/lang/ca/typeshed/stdlib/math.pyi new file mode 100644 index 0000000..0ec2a6a --- /dev/null +++ b/lang/ca/typeshed/stdlib/math.pyi @@ -0,0 +1,246 @@ +"""Funcions matemàtiques (matemàtiques)""" +from typing import Tuple + +def acos(x: float) -> float: + """Calcula l'invers del cosinus (arc cosinus) + +Example: ``math.acos(1)`` + +:param x: Un nombre +:return: The inverse cosine of ``x``""" + ... + +def asin(x: float) -> float: + """Calcula l'invers del sinus (arc sinus) + +Example: ``math.asin(0)`` + +:param x: Un nombre +:return: The inverse sine of ``x``""" + ... + +def atan(x: float) -> float: + """Calcula l'invers de la tangent (arc tangent) + +Example: ``math.atan(0)`` + +:param x: Un nombre +:return: The inverse tangent of ``x``""" + ... + +def atan2(y: float, x: float) -> float: + """Calcula el valor principal de l'invers de la tangent de ``y/x``. (arc tangent 2) + +Example: ``math.atan2(0, -1)`` + +:param y: Un nombre +:param x: Un nombre +:return: The principal value of the inverse tangent of ``y/x``""" + ... + +def ceil(x: float) -> float: + """Arrodoneix un nombre cap a l'infinit positiu. (arrodoniment per excés) + +Example: ``math.ceil(0.1)`` + +:param x: Un nombre +:return: ``x`` rounded towards positive infinity.""" + ... + +def copysign(x: float, y: float) -> float: + """Calcula ``x`` amb el signe de ``y``. + +Example: ``math.copysign(1, -1)`` + +:param x: Un nombre +:param y: L'origen del signe pel valor retornat. +:return: ``x`` with the sign of ``y``""" + ... + +def cos(x: float) -> float: + """Calcula el cosinus de ``x``. (cosinus) + +Example: ``math.cos(0)`` + +:param x: Un nombre +:return: The cosine of ``x``""" + ... + +def degrees(x: float) -> float: + """Convertir radiants a graus (graus) + +Example: ``math.degrees(2 * math.pi)`` + +:param x: Un valor en radians +:return: The value converted to degrees""" + ... + +def exp(x: float) -> float: + """Calcula l'exponencial de ``x``. + +Example: ``math.exp(1)`` + +:param x: Un nombre +:return: The exponential of ``x``.""" + ... + +def fabs(x: float) -> float: + """Retorna el valor absolut de ``x``. + +Example: ``math.fabs(-0.1)`` + +:param x: Un nombre +:return: The absolute value of ``x``""" + ... + +def floor(x: float) -> int: + """Arrodoneix un nombre cap a l'infinit negatiu. (arrodoniment per defecte) + +Example: ``math.floor(0.9)`` + +:param x: Un nombre +:return: ``x`` rounded towards negative infinity.""" + ... + +def fmod(x: float, y: float) -> float: + """Calcula el residu de ``x/y``. + +Example: ``math.fmod(10, 3)`` + +:param x: El numerador +:param y: El denominador""" + ... + +def frexp(x: float) -> Tuple[float, int]: + """Descompon un nombre de coma flotant en la seva mantissa i el seu exponent. + +Example: ``mantissa, exponent = math.frexp(2)`` + +The returned value is the tuple ``(m, e)`` such that ``x == m * 2**e`` +exactly. If ``x == 0`` then the function returns ``(0.0, 0)``, otherwise +the relation ``0.5 <= abs(m) < 1`` holds. + +:param x: Un nombre de coma flotant +:return: A tuple of length two containing its mantissa then exponent""" + ... + +def isfinite(x: float) -> bool: + """Verifica si un valor és finit. + +Example: ``math.isfinite(float('inf'))`` + +:param x: Un nombre. +:return: ``True`` if ``x`` is finite, ``False`` otherwise.""" + ... + +def isinf(x: float) -> bool: + """Verifica si un valor és infinit. + +Example: ``math.isinf(float('-inf'))`` + +:param x: Un nombre. +:return: ``True`` if ``x`` is infinite, ``False`` otherwise.""" + ... + +def isnan(x: float) -> bool: + """Verifica si un valor és un "no nombre" (NaN) + +Example: ``math.isnan(float('nan'))`` + +:param x: Un nombre +:return: ``True`` if ``x`` is not-a-number (NaN), ``False`` otherwise.""" + ... + +def ldexp(x: float, exp: int) -> float: + """Calcula ``x * (2**exp)``. (ldexp (Calcula ``x * (2**exp)``)) + +Example: ``math.ldexp(0.5, 2)`` + +:param x: Un nombre +:param exp: Exponent enter +:return: ``x * (2**exp)``""" + ... + +def log(x: float, base: float=e) -> float: + """Calcula el logaritme ``x`` d'una base donada (per defecte al logaritme natural). (registre) + +Example: ``math.log(math.e)`` + +With one argument, return the natural logarithm of x (to base e). + +With two arguments, return the logarithm of x to the given base, calculated as ``log(x)/log(base)``. + +:param x: Un nombre +:param base: La base a utilitzar +:return: The natural logarithm of ``x``""" + ... + +def modf(x: float) -> Tuple[float, float]: + """Calcula les parts fraccionàries i integrals de ``x``. + +Example: ``fractional, integral = math.modf(1.5)`` + +:param x: Un nombre +:return: A tuple of two floats representing the fractional then integral parts of ``x``. + +Both the fractional and integral values have the same sign as ``x``.""" + ... + +def pow(x: float, y: float) -> float: + """Retorna ``x`` a la potència de ``y``. + +Example: ``math.pow(4, 0.5)`` + +:param x: Un nombre +:param y: L'exponent +:return: ``x`` to the power of ``y``""" + ... + +def radians(x: float) -> float: + """Converteix graus a radians + +Example: ``math.radians(360)`` + +:param x: Un valor en graus +:return: The value converted to radians""" + ... + +def sin(x: float) -> float: + """Calcula el sinus de ``x``. (sinus) + +Example: ``math.sin(math.pi/2)`` + +:param x: Un nombre +:return: The sine of ``x``""" + ... + +def sqrt(x: float) -> float: + """Calcula l'arrel quadrada de ``x``. + +Example: ``math.sqrt(4)`` + +:param x: Un nombre +:return: The square root of ``x``""" + ... + +def tan(x: float) -> float: + """Calcula la tangent de ``x``. + +Example: ``math.tan(0)`` + +:param x: Un nombre +:return: The tangent of ``x``.""" + ... + +def trunc(x: float) -> int: + """Arrodoneix un nombre cap al 0. (trunca) + +Example: ``math.trunc(-0.9)`` + +:param x: Un nombre +:return: ``x`` rounded towards zero.""" + ... +e: float +"""Base del logaritme natural""" +pi: float +"""La relació entre la circumferència d'un cercle i el seu diàmetre""" \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/__init__.pyi b/lang/ca/typeshed/stdlib/microbit/__init__.pyi new file mode 100644 index 0000000..cff2992 --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/__init__.pyi @@ -0,0 +1,711 @@ +"""Pins, imatges, sons, temperatura i volum.""" +from typing import Any, Callable, List, Optional, Tuple, Union, overload +from _typeshed import ReadableBuffer +from . import accelerometer as accelerometer +from . import audio as audio +from . import compass as compass +from . import display as display +from . import i2c as i2c +from . import microphone as microphone +from . import speaker as speaker +from . import spi as spi +from . import uart as uart + +def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: + """Programa l'execució d'una funció a cada interval especificat pels arguments de temps **només V2**. + +Example: ``run_every(my_logging, min=5)`` + +``run_every`` can be used in two ways: + +As a Decorator - placed on top of the function to schedule. For example:: + + @run_every(h=1, min=20, s=30, ms=50) + def my_function(): + # Do something here + +As a Function - passing the callback as a positional argument. For example:: + + def my_function(): + # Do something here + run_every(my_function, s=30) + +Each argument corresponds to a different time unit and they are additive. +So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. + +When an exception is thrown inside the callback function it deschedules the +function. To avoid this you can catch exceptions with ``try/except``. + +:param callback: Funció a cridar a l'interval previst. Omet quan el fas servir com decorador. +:param days: (dies) Estableix la marca del dia per la programació +:param h: Estableix la marca de l'hora per la programació +:param min: Estableix la marca del minut per la programació +:param s: Estableix la marca del segon per la programació +:param ms: Estableix la marca del mil·lisegon per la programació""" + +def panic(n: int) -> None: + """Entrar en mode pànic. (pànic) + +Example: ``panic(127)`` + +:param n: Un nombre enter arbitrari <= 255 per indicar un estat. + +Requires restart.""" + +def reset() -> None: + """Reinicialitza la placa. (reiniciar)""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[int, int]) -> int: + """Converteix un valor d'un interval a un interval de nombre enter. (escala) + +Example: ``volume = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255))`` + +For example, to convert an accelerometer X value to a speaker volume. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. + + temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) + +:param value: (valor) Un nombre a convertir. +:param from_: (des de) Una tupla des d'on definir l'interval a convertir +:param to: (a) Una tupla que defineix l'interval d'arribada +:return: The ``value`` converted to the ``to`` range.""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[float, float]) -> float: + """Converteix un valor d'un interval a un altre interval de coma flotant. (escala) + +Example: ``temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0))`` + +For example, to convert temperature from a Celsius scale to Fahrenheit. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. +If they are both integers (i.e ``10``), it will return an integer:: + + returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) + +:param value: (valor) Un nombre a convertir. +:param from_: (des de) Una tupla des d'on definir l'interval a convertir +:param to: (a) Una tupla que defineix l'interval d'arribada de la conversió. +:return: The ``value`` converted to the ``to`` range.""" + +def sleep(n: float) -> None: + """Espera per ``n`` mil·lisegons. (dormir) + +Example: ``sleep(1000)`` + +:param n: El nombre de mil·lisegons a esperar + +One second is 1000 milliseconds, so:: + + microbit.sleep(1000) + +will pause the execution for one second.""" + +def running_time() -> int: + """Obté el temps d'execució de la placa. (temps d'execució) + +:return: The number of milliseconds since the board was switched on or restarted.""" + +def temperature() -> int: + """Obté la temperatura de la micro:bit en graus Celsius. (temperatura)""" + +def set_volume(v: int) -> None: + """Configura el volum (assigna volum) + +Example: ``set_volume(127)`` + +:param v: un valor entre 0 (baix) i 255 (alt). + +Out of range values will be clamped to 0 or 255. + +**V2** only.""" + ... + +class Button: + """La classe dels botons ``button_a`` i ``button_b``. (botó)""" + + def is_pressed(self) -> bool: + """Verifica si el botó està premut. (és premut) + +:return: ``True`` if the specified button ``button`` is pressed, and ``False`` otherwise.""" + ... + + def was_pressed(self) -> bool: + """Verifica si el botó ha estat premut d'ençà que el dispositiu va arrancar o l'última vegada que aquest mètode va ser cridat. (ha estat premut) + +Calling this method will clear the press state so +that the button must be pressed again before this method will return +``True`` again. + +:return: ``True`` if the specified button ``button`` was pressed, and ``False`` otherwise""" + ... + + def get_presses(self) -> int: + """Obté el total acumulat de pressions dels botons i restableix aquest total +a zero abans de tornar. (obté pitjades) + +:return: The number of presses since the device started or the last time this method was called""" + ... +button_a: Button +"""L'objecte botó esquerre ``Button`` . (botó a)""" +button_b: Button +"""L'objecte el botó dret ``Button``. (botó b)""" + +class MicroBitDigitalPin: + """Un pin digital. + +Some pins support analog and touch features using the ``MicroBitAnalogDigitalPin`` and ``MicroBitTouchPin`` subclasses.""" + NO_PULL: int + PULL_UP: int + PULL_DOWN: int + + def read_digital(self) -> int: + """Obté el valor digital del pin. (llegeix digital) + +Example: ``value = pin0.read_digital()`` + +:return: 1 if the pin is high, and 0 if it's low.""" + ... + + def write_digital(self, value: int) -> None: + """Assigna el valor digital del pin. (escriu digital) + +Example: ``pin0.write_digital(1)`` + +:param value: (valor) 1 per posar el pin alt o 0 per posar el pin baix""" + ... + + def set_pull(self, value: int) -> None: + """Configura les resistències de pull-up/pull-down un dels tres valors possibles: ``PULL_UP``, ``PULL_DOWN`` o ``NO_PULL``. (configuració de les resistències de pull up/down) + +Example: ``pin0.set_pull(pin0.PULL_UP)`` + +:param value: (valor) L'estat del pull-up/pull-down del pin corresponent, per ex. ``pin0.PULL_UP``.""" + ... + + def get_pull(self) -> int: + """Obté l'estat de pull-up/pull-down d'un pin. + +Example: ``pin0.get_pull()`` + +:return: ``NO_PULL``, ``PULL_DOWN``, or ``PULL_UP`` + +These are set using the ``set_pull()`` method or automatically configured +when a pin mode requires it.""" + ... + + def get_mode(self) -> str: + """Retorna el mode del pin (obté el mode) + +Example: ``pin0.get_mode()`` + +When a pin is used for a specific function, like +writing a digital value, or reading an analog value, the pin mode +changes. + +:return: ``"unused"``, ``"analog"``, ``"read_digital"``, ``"write_digital"``, ``"display"``, ``"button"``, ``"music"``, ``"audio"``, ``"touch"``, ``"i2c"``, or ``"spi"``""" + ... + + def write_analog(self, value: int) -> None: + """Genera un senyal PWM al pin, amb el cicle de treball proporcional a ``value``. (escriu analògic) + +Example: ``pin0.write_analog(254)`` + +:param value: (valor) Un nombre enter o de coma flotant entre 0 (cicle de treball del 0%) i 1023 (cicle de treball del 100%).""" + + def set_analog_period(self, period: int) -> None: + """Estableix el període del senyal PWM a ``period`` en mil·lisegons. (configura el període amb un valor analògic) + +Example: ``pin0.set_analog_period(10)`` + +:param period: (període) El període en mil·lisegons amb un valor mínim vàlid d'1\u202fms""" + + def set_analog_period_microseconds(self, period: int) -> None: + """Estableix el període del senyal PWM a ``period`` microsegons. (configura el període amb un valor analògic en microsegons) + +Example: ``pin0.set_analog_period_microseconds(512)`` + +:param period: (període) El període en microsegons amb un valor vàlid mínim de 256\u202fµs.""" + +class MicroBitAnalogDigitalPin(MicroBitDigitalPin): + """Un pin amb funcions analògiques i digitals.""" + + def read_analog(self) -> int: + """Llegeix el voltatge aplicat al pin. (llegeix analògic) + +Example: ``pin0.read_analog()`` + +:return: An integer between 0 (meaning 0V) and 1023 (meaning 3.3V).""" + +class MicroBitTouchPin(MicroBitAnalogDigitalPin): + """Un pin amb característiques analògiques, digitals i tàctils.""" + CAPACITIVE: int + RESISTIVE: int + + def is_touched(self) -> bool: + """Comprova si el pin està sent tocat. (està tocat) + +Example: ``pin0.is_touched()`` + +The default touch mode for the pins on the edge connector is ``resistive``. +The default for the logo pin **V2** is ``capacitive``. + +**Resistive touch** +This test is done by measuring how much resistance there is between the +pin and ground. A low resistance gives a reading of ``True``. To get +a reliable reading using a finger you may need to touch the ground pin +with another part of your body, for example your other hand. + +**Capacitive touch** +This test is done by interacting with the electric field of a capacitor +using a finger as a conductor. `Capacitive touch +`_ +does not require you to make a ground connection as part of a circuit. + +:return: ``True`` if the pin is being touched with a finger, otherwise return ``False``.""" + ... + + def set_touch_mode(self, value: int) -> None: + """Estableix el mode tàctil per al pin. (estableix el mode tàctil) + +Example: ``pin0.set_touch_mode(pin0.CAPACITIVE)`` + +The default touch mode for the pins on the edge connector is +``resistive``. The default for the logo pin **V2** is ``capacitive``. + +:param value: (valor) ``CAPACITIVE`` o ``RESISTIVE`` del pin corresponent.""" + ... +pin0: MicroBitTouchPin +"""Pin amb característiques digitals, analògiques i tàctils.""" +pin1: MicroBitTouchPin +"""Pin amb característiques digitals, analògiques i tàctils.""" +pin2: MicroBitTouchPin +"""Pin amb característiques digitals, analògiques i tàctils.""" +pin3: MicroBitAnalogDigitalPin +"""Pin amb característiques digitals i analògiques.""" +pin4: MicroBitAnalogDigitalPin +"""Pin amb característiques digitals i analògiques.""" +pin5: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin6: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin7: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin8: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin9: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin10: MicroBitAnalogDigitalPin +"""Pin amb característiques digitals i analògiques.""" +pin11: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin12: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin13: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin14: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin15: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin16: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin19: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin20: MicroBitDigitalPin +"""Pin amb característiques digitals.""" +pin_logo: MicroBitTouchPin +"""Un logotip tàctil a la part frontal de la micro:bit, que per defecte està establert al mode tàctil capacitiu. (pin logotip)""" +pin_speaker: MicroBitAnalogDigitalPin +"""Un pin per adreçar-se a l'altaveu micro:bit. (pin altaveu) + +This API is intended only for use in Pulse-Width Modulation pin operations e.g. pin_speaker.write_analog(128). +""" + +class Image: + """Una imatge per mostrar a la pantalla LED de micro:bit. (imatge) + +Given an image object it's possible to display it via the ``display`` API:: + + display.show(Image.HAPPY)""" + HEART: Image + """Imatge d'un cor. (cor)""" + HEART_SMALL: Image + """Imatge d'un cor petit (cor petit)""" + HAPPY: Image + """Imatge d'una cara feliç (feliç)""" + SMILE: Image + """Imatge d'una cara somrient (somriure)""" + SAD: Image + """Imatge d'una cara trista (tristesa)""" + CONFUSED: Image + """Imatge de cara confusa. (confusa)""" + ANGRY: Image + """Imatge d'una cara enfadada. (enfadat)""" + ASLEEP: Image + """Imatge d'una cara dormint. (despert)""" + SURPRISED: Image + """Imatge d'una cara de sorpresa (sorprès)""" + SILLY: Image + """Imatge d'una cara ximple. (ximple)""" + FABULOUS: Image + """Imatge d'una cara amb ulleres de sol. (fabulós)""" + MEH: Image + """Imatge d'una cara inexpressiva. (BAH avorrit)""" + YES: Image + """Imatge d'una marca tic. (sí)""" + NO: Image + """Imatge d'una creu.""" + CLOCK12: Image + """Imatge d'una línia apuntant les dotze. (les dotze)""" + CLOCK11: Image + """Imatge d'una línia apuntant les onze. (les onze)""" + CLOCK10: Image + """Imatge d'una línia apuntant les deu. (les deu)""" + CLOCK9: Image + """Imatge d'una línia apuntant les nou. (les nou)""" + CLOCK8: Image + """Imatge d'una línia apuntant les vuit. (les vuit)""" + CLOCK7: Image + """Imatge d'una línia apuntant les set. (les set)""" + CLOCK6: Image + """Imatge amb una línia apuntant a les 6 en punt. (les sis)""" + CLOCK5: Image + """Imatge amb una línia apuntant a les 5 en punt. (les cinc)""" + CLOCK4: Image + """Imatge amb una línia apuntant a les 4 en punt. (les quatre)""" + CLOCK3: Image + """Imatge amb una línia apuntant a les 3 en punt. (les tres)""" + CLOCK2: Image + """Imatge amb una línia apuntant a les 2 en punt. (les dues)""" + CLOCK1: Image + """Imatge amb una línia apuntant a la 1 en punt. (la una)""" + ARROW_N: Image + """Imatge de fletxa apuntant al nord. (fletxa n)""" + ARROW_NE: Image + """Imatge de fletxa apuntant al nord-est. (fletxa ne)""" + ARROW_E: Image + """Imatge de fletxa apuntant a l'est. (fletxa e)""" + ARROW_SE: Image + """Imatge de fletxa apuntant al sud-est. (fletxa se)""" + ARROW_S: Image + """Imatge de fletxa apuntant al sud. (fletxa s)""" + ARROW_SW: Image + """Imatge de fletxa apuntant al sud-oest. (fletxa so)""" + ARROW_W: Image + """Imatge de fletxa apuntant a l'oest. (fletxa o)""" + ARROW_NW: Image + """Imatge de fletxa apuntant al nord-oest. (fletxa no)""" + TRIANGLE: Image + """Imatge d'un triangle apuntant amunt.""" + TRIANGLE_LEFT: Image + """Imatge d'un triangle en la cantonada esquerra. (triangle a l'esquerra)""" + CHESSBOARD: Image + """Leds alternatius il·luminats en un patró d'escacs. (Tauler d'escacs)""" + DIAMOND: Image + """Imatge d'un diamant (diamant)""" + DIAMOND_SMALL: Image + """Imatge d'un diamant petit (diamant petit)""" + SQUARE: Image + """Imatge d'un quadrat (quadrat)""" + SQUARE_SMALL: Image + """Imatge d'un quadrat petit (quadrat petit)""" + RABBIT: Image + """Imatge d'un conill. (conill)""" + COW: Image + """Imatge d'una vaca. (vaca)""" + MUSIC_CROTCHET: Image + """Imatge de la nota musical negra (nota musical negra)""" + MUSIC_QUAVER: Image + """Imatge de la nota musical corxera (nota musical corxera)""" + MUSIC_QUAVERS: Image + """Imatge d'un parell de notes musicals corxeres (nota musical corxera)""" + PITCHFORK: Image + """Imatge d'una forca. (forca)""" + XMAS: Image + """Imatge d'un arbre de Nadal (nadal)""" + PACMAN: Image + """Imatge del personatge de Pac-man a arcade""" + TARGET: Image + """Imatge d'objectiu. (diana)""" + TSHIRT: Image + """Imatge de samarreta. (Imatge d'una samarreta T-shirt)""" + ROLLERSKATE: Image + """Imatge d'un patinet. (patinet)""" + DUCK: Image + """Imatge d'un ànec. (ànec)""" + HOUSE: Image + """Imatge d'una casa. (casa)""" + TORTOISE: Image + """Imatge d'una tortuga. (tortuga)""" + BUTTERFLY: Image + """Imatge d'una papallona. (papallona)""" + STICKFIGURE: Image + """Imatge de figura d'un pal. (imatge d'un pal)""" + GHOST: Image + """Imatge d'un fantasma. (fantasma)""" + SWORD: Image + """Imatge d'una espasa (espasa)""" + GIRAFFE: Image + """Imatge d'una girafa. (girafa)""" + SKULL: Image + """Imatge d'un crani. (crani)""" + UMBRELLA: Image + """Imatge d'un paraigua, (paraigua)""" + SNAKE: Image + """Imatge d'una serp. (serp)""" + SCISSORS: Image + """Imatge d'unes tisores. (tisores)""" + ALL_CLOCKS: List[Image] + """Una llista que conté totes les imatges CLOCK_ en seqüència. (tots els rellotges)""" + ALL_ARROWS: List[Image] + """Una llista que conté totes les ARROW_images en seqüència. (totes les fletxes)""" + + @overload + def __init__(self, string: str) -> None: + """Crea una imatge a partir d'una cadena que descrigui quins leds estan encesos. + +``string`` has to consist of digits 0-9 arranged into lines, +describing the image, for example:: + + image = Image("90009:" + "09090:" + "00900:" + "09090:" + "90009") + +will create a 5×5 image of an X. The end of a line is indicated by a +colon. It's also possible to use newlines (\\n) insead of the colons. + +:param string: (cadena) La cadena descrivint la imatge.""" + ... + + @overload + def __init__(self, width: int=5, height: int=5, buffer: ReadableBuffer=None) -> None: + """Crea una imatge buida amb ``width`` columnes i ``height`` files. + +:param width: (amplada) Amplada opcional de la imatge +:param height: (alçària) Alçària opcional de la imatge +:param buffer: (memòria intermèdia) Llistes o bytes opcionals d'enters de ``width``×``height`` dins l'interval de 0 a 9 per inicialitzar la imatge + +Examples:: + + Image(2, 2, b'\x08\x08\x08\x08') + Image(2, 2, bytearray([9,9,9,9])) + +These create 2 x 2 pixel images at full brightness.""" + ... + + def width(self) -> int: + """Obté el nombre de columnes (amplada) + +:return: The number of columns in the image""" + ... + + def height(self) -> int: + """Obté el nombre de files. (alçària) + +:return: The number of rows in the image""" + ... + + def set_pixel(self, x: int, y: int, value: int) -> None: + """Estableix la brillantor d'un píxel. (estableix píxel) + +Example: ``my_image.set_pixel(0, 0, 9)`` + +:param x: El nombre de la columna +:param y: El nombre de la fila +:param value: (valor) La brillantor com a nombre enter entre 0 (fosc) i 9 (brillant) + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def get_pixel(self, x: int, y: int) -> int: + """Obté la brillantor d'un píxel. (obté píxel) + +Example: ``my_image.get_pixel(0, 0)`` + +:param x: El nombre de la columna +:param y: El nombre de la fila +:return: The brightness as an integer between 0 and 9.""" + ... + + def shift_left(self, n: int) -> Image: + """Crea una imatge nova movent-la cap a l'esquerra. (desplaça a l'esquerra) + +Example: ``Image.HEART_SMALL.shift_left(1)`` + +:param n: El nombre de columnes per desplaçar-se +:return: The shifted image""" + ... + + def shift_right(self, n: int) -> Image: + """Crea una imatge nova movent-la cap a la dreta. (desplaça a la dreta) + +Example: ``Image.HEART_SMALL.shift_right(1)`` + +:param n: El nombre de columnes per desplaçar-se +:return: The shifted image""" + ... + + def shift_up(self, n: int) -> Image: + """Crea una imatge nova desplaçant la imatge cap amunt. (desplaça cap amunt) + +Example: ``Image.HEART_SMALL.shift_up(1)`` + +:param n: El nombre de files per desplaçar-se +:return: The shifted image""" + ... + + def shift_down(self, n: int) -> Image: + """Crea una imatge nova desplaçant-la cap avall. (desplaça cap avall) + +Example: ``Image.HEART_SMALL.shift_down(1)`` + +:param n: El nombre de files per desplaçar-se +:return: The shifted image""" + ... + + def crop(self, x: int, y: int, w: int, h: int) -> Image: + """Crea una imatge nova retallant la imatge. (retalla) + +Example: ``Image.HEART.crop(1, 1, 3, 3)`` + +:param x: La columna de desplaçament del retall +:param y: La fila de desplaçament del retall +:param w: L'amplada del retall +:param h: L'alçària del retall +:return: The new image""" + ... + + def copy(self) -> Image: + """Crea una còpia exacta de la imatge (còpia) + +Example: ``Image.HEART.copy()`` + +:return: The new image""" + ... + + def invert(self) -> Image: + """Crea una imatge nova invertint la brillantor dels píxels de la imatge +font. (inverteix) + +Example: ``Image.SMALL_HEART.invert()`` + +:return: The new image.""" + ... + + def fill(self, value: int) -> None: + """Assigna la brillantor de tots els píxels de la imatge (omple) + +Example: ``my_image.fill(5)`` + +:param value: (valor) La nova brillantor com a nombre entre 0 (fosc) i 9 (brillant). + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def blit(self, src: Image, x: int, y: int, w: int, h: int, xdest: int=0, ydest: int=0) -> None: + """Copia una àrea d'una altra imatge a aquesta imatge. + +Example: ``my_image.blit(Image.HEART, 1, 1, 3, 3, 1, 1)`` + +:param src: (font) La imatge font +:param x: Desplaçament de la columna inicial a la imatge d'origen +:param y: Desplaçament de la fila inicial a la imatge d'origen +:param w: El nombre de columnes a copiar +:param h: El nombre de files a copiar +:param xdest: El desplaçament de columna a modificar en aquesta imatge +:param ydest: El desplaçament de fila que cal modificar en aquesta imatge + +Pixels outside the source image are treated as having a brightness of 0. + +``shift_left()``, ``shift_right()``, ``shift_up()``, ``shift_down()`` +and ``crop()`` can are all implemented by using ``blit()``. + +For example, img.crop(x, y, w, h) can be implemented as:: + + def crop(self, x, y, w, h): + res = Image(w, h) + res.blit(self, x, y, w, h) + return res""" + ... + + def __repr__(self) -> str: + """Obté una representació de cadena compacta de la imatge. (repr - Obté una representació de cadena compacta de la imatge.)""" + ... + + def __str__(self) -> str: + """Obté una representació de cadena llegible de la imatge.""" + ... + + def __add__(self, other: Image) -> Image: + """Crea una imatge nova afegint els valors de brillantor de les dues +imatges per a cada píxel. (afegeix) + +Example: ``Image.HEART + Image.HAPPY`` + +:param other: (altre) La imatge a afegir.""" + ... + + def __sub__(self, other: Image) -> Image: + """Crea una imatge nova restant els valors de brillantor d'una altra imatge d'aquesta imatge. + +Example: ``Image.HEART - Image.HEART_SMALL`` + +:param other: (altre) La imatge a restar.""" + ... + + def __mul__(self, n: float) -> Image: + """Crea una imatge nova multiplicant la brillantor de cada píxel per +``n``. + +Example: ``Image.HEART * 0.5`` + +:param n: El valor per multiplicar.""" + ... + + def __truediv__(self, n: float) -> Image: + """Crea una imatge nova dividint la brillantor de cada píxel per +``n``. + +Example: ``Image.HEART / 2`` + +:param n: El valor del divisor.""" + ... + +class SoundEvent: + LOUD: SoundEvent + """Representa la transició dels esdeveniments de so, des de ``quiet`` a ``loud`` com picant de mans o cridant. (so fort)""" + QUIET: SoundEvent + """Representa la transició dels esdeveniments de so, des de ``loud`` a ``quiet`` com parlant o música de fons. (so fluix)""" + +class Sound: + """Els sons integrats es poden reproduir mitjançant ``audio.play(Sound.NAME)``. (so)""" + GIGGLE: Sound + """So de riure (riure)""" + HAPPY: Sound + """So feliç. (feliç)""" + HELLO: Sound + """So de salutació. (hola)""" + MYSTERIOUS: Sound + """So misteriós. (misteriós)""" + SAD: Sound + """So trist. (tristesa)""" + SLIDE: Sound + """So lliscant (so lliscant)""" + SOARING: Sound + """So creixent. (creixent)""" + SPRING: Sound + """So primaveral. (primaveral)""" + TWINKLE: Sound + """So de centelleig. (centelleig)""" + YAWN: Sound + """So de badall. (badall)""" \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/accelerometer.pyi b/lang/ca/typeshed/stdlib/microbit/accelerometer.pyi new file mode 100644 index 0000000..c52b9d7 --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/accelerometer.pyi @@ -0,0 +1,103 @@ +"""Mesura l'acceleració de la micro:bit i reconeix els gestos. (acceleròmetre)""" +from typing import Tuple + +def get_x() -> int: + """Obté la mesura de l'acceleració a l'eix ``x`` en mili-g. (obté x) + +Example: ``accelerometer.get_x()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_y() -> int: + """Obté la mesura de l'acceleració a l'eix ``y`` en mili-g. (obté y) + +Example: ``accelerometer.get_y()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_z() -> int: + """Obté la mesura de l'acceleració a l'eix ``z`` en mili-g. (obté z) + +Example: ``accelerometer.get_z()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_values() -> Tuple[int, int, int]: + """Obté les mesures d'acceleració en tots els eixos alhora com una tupla. (obté valors) + +Example: ``x, y, z = accelerometer.get_values()`` + +:return: a three-element tuple of integers ordered as X, Y, Z, each value a positive or negative integer depending on direction in the range +/- 2000mg""" + ... + +def get_strength() -> int: + """Obté la mesura de l'acceleració de tots els eixos combinats, com un nombre enter positiu. Aquest serà la suma Pitagòrica dels eixos X, Y i Z. (obté la força) + +Example: ``accelerometer.get_strength()`` + +:return: The combined acceleration strength of all the axes, in milli-g.""" + ... + +def current_gesture() -> str: + """Obté el nom del gest actual. (El gest actual) + +Example: ``accelerometer.current_gesture()`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:return: The current gesture""" + ... + +def is_gesture(name: str) -> bool: + """Comprova si el gest nomenat està actiu actualment. + +Example: ``accelerometer.is_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: (nom) El nom del gest +:return: ``True`` if the gesture is active, ``False`` otherwise.""" + ... + +def was_gesture(name: str) -> bool: + """Comprova si el gest nomenat ha estat actiu des de l'última crida. + +Example: ``accelerometer.was_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: (nom) El nom del gest +:return: ``True`` if the gesture was active since the last call, ``False`` otherwise.""" + +def get_gestures() -> Tuple[str, ...]: + """Retorna una tupla de l'historial de gestos. (obté gestos) + +Example: ``accelerometer.get_gestures()`` + +Clears the gesture history before returning. + +Gestures are not updated in the background so there needs to be constant +calls to some accelerometer method to do the gesture detection. Usually +gestures can be detected using a loop with a small :func:`microbit.sleep` delay. + +:return: The history as a tuple, most recent last.""" + ... + +def set_range(value: int) -> None: + """Estableix l'interval de la sensibilitat de l'acceleròmetre, en g (gravetat estàndard), al valor més proper acceptat pel maquinari, arrodonit a ``2``, ``4``, o ``8`` + +Example: ``accelerometer.set_range(8)`` + +:param value: (valor) Nou interval per a l'acceleròmetre, un nombre enter a ``g``.""" \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/audio.pyi b/lang/ca/typeshed/stdlib/microbit/audio.pyi new file mode 100644 index 0000000..8c8c6bd --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/audio.pyi @@ -0,0 +1,124 @@ +"""Reprodueix sons amb la micro:bit (importa ``audio`` per a la compatibilitat amb V1). (àudio)""" +from ..microbit import MicroBitDigitalPin, Sound, pin0 +from typing import ClassVar, Iterable, Union + +def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: + """Reprodueix un so incorporat, un efecte de só o marcs d'àudio personalitzats. + +Example: ``audio.play(Sound.GIGGLE)`` + +:param source: (origen) Un objecte de ``Sound`` incorporat com ``Sound.GIGGLE``, un ``SoundEffect`` o una data de mostra com un iterable de ``AudioFrame`` . +:param wait: (espera) Si ``wait`` és ``True``, aquesta funció es bloquejarà fins que s'acabi el so. +:param pin: Es pot utilitzar un argument opcional per especificar el pin de sortida per anul·lar el valor predeterminat de ``pin0``. Si no vols que es reprodueixi cap so, pots utilitzar ``pin=None``. +:param return_pin: (retorna el pin) Especifica un pin diferent del connector d'expansió per connectar-lo a un altaveu extern en lloc de posar a terra. Això s'ignora per a la revisió **V2**.""" + +def is_playing() -> bool: + """Verifica si s'està reproduint un so. (està reproduint) + +Example: ``audio.is_playing()`` + +:return: ``True`` if audio is playing, otherwise ``False``.""" + ... + +def stop() -> None: + """Atura tota la reproducció d'àudio. (atura) + +Example: ``audio.stop()``""" + ... + +class SoundEffect: + """Un efecte sonor, compost per un conjunt de paràmetres configurats via el constructor o atributs.""" + WAVEFORM_SINE: ClassVar[int] + """Opció d'ona sinusoidal pel paràmetre ``waveform``. (forma d'ona sinusoidal)""" + WAVEFORM_SAWTOOTH: ClassVar[int] + """Opció d'ona de dent de serra pel paràmetre ``waveform``. (forma d'ona de dent de serra)""" + WAVEFORM_TRIANGLE: ClassVar[int] + """Opció d'ona triangular pel paràmetre ``waveform``. (forma d'ona triangular)""" + WAVEFORM_SQUARE: ClassVar[int] + """Opció d'ona quadrada pel paràmetre ``waveform``. (forma d'ona quadrada)""" + WAVEFORM_NOISE: ClassVar[int] + """Opció d'ona de soroll pel paràmetre ``waveform``. (forma d'ona de soroll)""" + SHAPE_LINEAR: ClassVar[int] + """Opció d'ona lineal pel paràmetre ``shape``. (forma lineal)""" + SHAPE_CURVE: ClassVar[int] + """Opció d'interpolació de corba usada pel paràmetre ``shape``. (forma de corba)""" + SHAPE_LOG: ClassVar[int] + """Opció d'interpolació logarítmica utilitzada pel paràmetre ``shape``. (forma logarítmica)""" + FX_NONE: ClassVar[int] + """Opció de cap efecte utilitzat pel paràmetre ``fx``. (fx cap)""" + FX_TREMOLO: ClassVar[int] + """Opció d'efecte trèmolo utilitzat pel paràmetre ``fx``. (fx trémolo)""" + FX_VIBRATO: ClassVar[int] + """Opció d'efecte vibrato utilitzat pel paràmetre ``fx``.""" + FX_WARBLE: ClassVar[int] + """Opció d'efecte gorjeu utilitzat pel paràmetre ``fx``. (Efecte gorjeu)""" + freq_start: int + """Freqüència inicial en Hertz (Hz), un nombre entre ``0`` i ``9999`` (freqüència inicial)""" + freq_end: int + """Freqüència final en Hertz (Hz), un nombre entre ``0`` i ``9999`` (frequència final)""" + duration: int + """Durada del so en mil·lisegons, un nombre entre ``0`` and ``9999`` (Durada - duració)""" + vol_start: int + """Volum inicial, un nombre entre ``0`` and ``255`` (volum inicial)""" + vol_end: int + """Valor del volum final, un nombre entre ``0`` and ``255`` (volum final)""" + waveform: int + """Tipus de forma d'ona, un d'aquest valors: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise) (forma d'ona)""" + fx: int + """Efecte a afegir al so, un dels següents valors: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE`` (efecte)""" + shape: int + """El tipus de corba d'interpolació entre les freqüències inicial i final, diferents formes d'ona tenen diferents ràtios de canvi en la freqüència. Un dels següents valors: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG`` (forma)""" + + def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): + """Crea un efecte de so nou. (inicial) + +Example: ``my_effect = SoundEffect(duration=1000)`` + +All the parameters are optional, with default values as shown above, and +they can all be modified via attributes of the same name. For example, we +can first create an effect ``my_effect = SoundEffect(duration=1000)``, +and then change its attributes ``my_effect.duration = 500``. + +:param freq_start: (freqüència inicial) Freqüència inicial en Hertz (Hz), un nombre entre ``0`` i ``9999``. +:param freq_end: (frequència final) Freqüència final en Hertz (Hz), un nombre entre ``0`` i ``9999``. +:param duration: (Durada - duració) Duració del so en mil·lisegons, un nombre entre ``0`` i ``9999``. +:param vol_start: (volum inicial) Valor del volum inicial, un nombre entre ``0`` i ``255``. +:param vol_end: (volum final) Valor del volum final, un nombre entre ``0`` i ``255``. +:param waveform: (forma d'ona) Tipus de forma d'ona, un d'aquests valors: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (soroll generat aleatòriament). +:param fx: (efecte) Efecte a afegir al so, un del següents valors: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``. +:param shape: (forma) El tipus de corba d'interpolació entre les freqüències inicial i final, diferents formes d'ona tenen diferents ràtios de canvi en la freqüència. Un dels següents valors: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``""" + + def copy(self) -> SoundEffect: + """Crea una còpia d'aquest ``SoundEffect``. (còpia) + +Example: ``sound_2 = sound_1.copy()`` + +:return: A copy of the SoundEffect.""" + +class AudioFrame: + """Un objecte ``AudioFrame`` és una llista de 32 mostres cadascuna de les quals és un byte sense signar +(nombre enter entre 0 i 255). + +It takes just over 4 ms to play a single frame. + +Example:: + + frame = AudioFrame() + for i in range(len(frame)): + frame[i] = 252 - i * 8""" + + def copyfrom(self, other: AudioFrame) -> None: + """Sobreposa les dades d'aquest ``AudioFrame`` amb les dades d'una altra instància ``AudioFrame`` . (copia desde) + +Example: ``my_frame.copyfrom(source_frame)`` + +:param other: (altre) ``AudioFrame`` instància de la qual copiar les dades.""" + + def __len__(self) -> int: + ... + + def __setitem__(self, key: int, value: int) -> None: + ... + + def __getitem__(self, key: int) -> int: + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/compass.pyi b/lang/ca/typeshed/stdlib/microbit/compass.pyi new file mode 100644 index 0000000..9d7bc37 --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/compass.pyi @@ -0,0 +1,70 @@ +"""Utilitza la brúixola integrada. (brúixola)""" + +def calibrate() -> None: + """Comença el procés de calibració (calibrar) + +Example: ``compass.calibrate()`` + +An instructive message will be scrolled to the user after which they will need +to rotate the device in order to draw a circle on the LED display.""" + ... + +def is_calibrated() -> bool: + """Verifica si la brúixola està calibrada. (s'ha calibrat) + +Example: ``compass.is_calibrated()`` + +:return: ``True`` if the compass has been successfully calibrated, ``False`` otherwise.""" + ... + +def clear_calibration() -> None: + """Desfà el calibratge, fent que la brúixola torni a estar sense calibració. (esborra la calibració) + +Example: ``compass.clear_calibration()``""" + ... + +def get_x() -> int: + """Obté la intensitat del camp magnètic de l'eix ``x`` . (obté x) + +Example: ``compass.get_x()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_y() -> int: + """Obté la intensitat del camp magnètic de l'eix ``y`` . (obté y) + +Example: ``compass.get_y()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_z() -> int: + """Obté la intensitat del camp magnètic a l'eix ``z``. (obté z) + +Example: ``compass.get_z()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def heading() -> int: + """Obté l'orientació de la brúixola. + +Example: ``compass.heading()`` + +:return: An integer in the range from 0 to 360, representing the angle in degrees, clockwise, with north as 0.""" + ... + +def get_field_strength() -> int: + """Obté la magnitud del camp magnètic al voltant del dispositiu. (obté la intensitat del camp) + +Example: ``compass.get_field_strength()`` + +:return: An integer indication of the magnitude of the magnetic field in nano tesla.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/display.pyi b/lang/ca/typeshed/stdlib/microbit/display.pyi new file mode 100644 index 0000000..e302f86 --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/display.pyi @@ -0,0 +1,92 @@ +"""Mostra text, imatges i animacions a la pantalla LED 5×5. (pantalla)""" +from ..microbit import Image +from typing import Union, overload, Iterable + +def get_pixel(x: int, y: int) -> int: + """Obté la brillantor del LED a la columna ``x`` i la fila ``y``. (obté píxel) + +Example: ``display.get_pixel(0, 0)`` + +:param x: La columna de la pantalla (0...4) +:param y: La fila de la pantalla (0...4) +:return: A number between 0 (off) and 9 (bright)""" + ... + +def set_pixel(x: int, y: int, value: int) -> None: + """Estableix la brillantor del LED a la columna ``x`` i la fila ``y``. (estableix píxel) + +Example: ``display.set_pixel(0, 0, 9)`` + +:param x: La columna de la pantalla (0...4) +:param y: La fila de la pantalla (0...4) +:param value: (valor) La brillantor entre 0 (apagat) i 9 (brillant)""" + ... + +def clear() -> None: + """Estableix la brillantor de tots els leds a 0 (apagat). + +Example: ``display.clear()``""" + ... + +def show(image: Union[str, float, int, Image, Iterable[Image]], delay: int=400, wait: bool=True, loop: bool=False, clear: bool=False) -> None: + """Mostra imatges, lletres o dígits en la pantalla LED. (mostra) + +Example: ``display.show(Image.HEART)`` + +When ``image`` is an image or a list of images then each image is displayed in turn. +If ``image`` is a string or number, each letter or digit is displayed in turn. + +:param image: (imatge) Una cadena, un nombre, una imatge o una llista d'imatges per mostrar. +:param delay: (retard) Cada lletra, dígit o imatge es mostra amb un ``delay`` mil·lisegons entre ells. +:param wait: (espera) Si ``wait`` és ``True``, aquesta funció es bloquejarà fins que s'acabi l'animació, en cas contrari, l'animació passarà en segon pla. +:param loop: (bucle) Si el ``loop`` és ``True``, l'animació es repetirà per sempre. +:param clear: Si ``clear`` és ``True``, la pantalla s'esborrarà un cop finalitzada la seqüència. + +The ``wait``, ``loop`` and ``clear`` arguments must be specified using their keyword.""" + ... + +def scroll(text: Union[str, float, int], delay: int=150, wait: bool=True, loop: bool=False, monospace: bool=False) -> None: + """Desplaça un número o text per la pantalla LED. + +Example: ``display.scroll('micro:bit')`` + +:param text: La cadena per a desplaçar. Si ``text`` és un nombre enter o flotant, primer es converteix en una cadena mitjançant ``str()``. +:param delay: (retard) El paràmetre ``delay`` controla la rapidesa amb què es desplaça el text. +:param wait: (espera) Si ``wait`` és ``True``, aquesta funció es bloquejarà fins que s'acabi l'animació, en cas contrari, l'animació passarà en segon pla. +:param loop: (bucle) Si el ``loop`` és ``True``, l'animació es repetirà per sempre. +:param monospace: Si ``monospace`` és ``True``, tots els caràcters ocuparan 5 columnes de píxels d'amplada, en cas contrari, hi haurà exactament 1 columna de píxels en blanc entre cada caràcter mentre es desplacen. + +The ``wait``, ``loop`` and ``monospace`` arguments must be specified +using their keyword.""" + ... + +def on() -> None: + """Encén la pantalla LED. + +Example: ``display.on()``""" + ... + +def off() -> None: + """Apaga la pantalla LED (desactivar la pantalla et permet reutilitzar els pins GPIO per a altres finalitats). + +Example: ``display.off()``""" + ... + +def is_on() -> bool: + """Comprova si la pantalla LED està habilitada. + +Example: ``display.is_on()`` + +:return: ``True`` if the display is on, otherwise returns ``False``.""" + ... + +def read_light_level() -> int: + """Llegeix el nivell de llum. (llegir el nivell de llum) + +Example: ``display.read_light_level()`` + +Uses the display's LEDs in reverse-bias mode to sense the amount of light +falling on the display. + +:return: An integer between 0 and 255 representing the light level, with larger meaning more light.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/i2c.pyi b/lang/ca/typeshed/stdlib/microbit/i2c.pyi new file mode 100644 index 0000000..2f5d36f --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/i2c.pyi @@ -0,0 +1,49 @@ +"""Comunicar-se amb dispositius mitjançant el protocol de bus I²C.""" +from _typeshed import ReadableBuffer +from ..microbit import MicroBitDigitalPin, pin19, pin20 +from typing import List + +def init(freq: int=100000, sda: MicroBitDigitalPin=pin20, scl: MicroBitDigitalPin=pin19) -> None: + """Reinicialitzar un perifèric. + +Example: ``i2c.init()`` + +:param freq: freqüència del rellotge +:param sda: Pin ``sda`` (per defecte 20) +:param scl: pin ``scl`` (per defecte 19) + +On a micro:bit V1 board, changing the I²C pins from defaults will make +the accelerometer and compass stop working, as they are connected +internally to those pins. This warning does not apply to the **V2** +revision of the micro:bit as this has `separate I²C lines `_ +for the motion sensors and the edge connector.""" + ... + +def scan() -> List[int]: + """Escaneja el bus dels dispositius + +Example: ``i2c.scan()`` + +:return: A list of 7-bit addresses corresponding to those devices that responded to the scan.""" + ... + +def read(addr: int, n: int, repeat: bool=False) -> bytes: + """Llegeix bytes des d'un dispositiu.. (llegeix) + +Example: ``i2c.read(0x50, 64)`` + +:param addr: L'adreça de 7-bit del dispositiu +:param n: El nombre de bytes a llegir +:param repeat: (repeteix) Si ``True``, no s'enviarà cap bit d'aturada +:return: The bytes read""" + ... + +def write(addr: int, buf: ReadableBuffer, repeat: bool=False) -> None: + """Escriu bytes en un dispositiu (escriu) + +Example: ``i2c.write(0x50, bytes([1, 2, 3]))`` + +:param addr: L'adreça de 7-bit del dispositiu +:param buf: Una memòria intermèdia que conté els bytes per escriure +:param repeat: (repeteix) Si ``True``, no s'enviarà cap bit d'aturada""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/microphone.pyi b/lang/ca/typeshed/stdlib/microbit/microphone.pyi new file mode 100644 index 0000000..b36703c --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/microphone.pyi @@ -0,0 +1,62 @@ +"""Respon al so fent servir el micròfon integrat (només V2). (micròfon)""" +from typing import Optional, Tuple +from ..microbit import SoundEvent + +def current_event() -> Optional[SoundEvent]: + """Obté l'últim esdeveniment de sonor gravat (esdeveniment actual) + +Example: ``microphone.current_event()`` + +:return: The event, ``SoundEvent('loud')`` or ``SoundEvent('quiet')``.""" + ... + +def was_event(event: SoundEvent) -> bool: + """Comprova si s'ha sentit un so almenys una vegada des de l'última crida. (va ser un esdeveniment) + +Example: ``microphone.was_event(SoundEvent.LOUD)`` + +This call clears the sound history before returning. + +:param event: (esdeveniment) L'esdeveniment per comprovar, com ara ``SoundEvent.LOUD`` o ``SoundEvent.QUIET`` +:return: ``True`` if sound was heard at least once since the last call, otherwise ``False``.""" + ... + +def is_event(event: SoundEvent) -> bool: + """Comprova l'esdeveniment sonor més recent detectat. (és un esdeveniment) + +Example: ``microphone.is_event(SoundEvent.LOUD)`` + +This call does not clear the sound event history. + +:param event: (esdeveniment) L'esdeveniment per comprovar, com ara ``SoundEvent.LOUD`` o ``SoundEvent.QUIET`` +:return: ``True`` if sound was the most recent heard, ``False`` otherwise.""" + ... + +def get_events() -> Tuple[SoundEvent, ...]: + """Obté l'historial d'esdeveniments sonors com una tupla. (obté esdeveniments) + +Example: ``microphone.get_events()`` + +This call clears the sound history before returning. + +:return: A tuple of the event history with the most recent event last.""" + ... + +def set_threshold(event: SoundEvent, value: int) -> None: + """Assigna el llinar per un esdeveniment sonor (estableix llindar) + +Example: ``microphone.set_threshold(SoundEvent.LOUD, 250)`` + +A high threshold means the event will only trigger if the sound is very loud (>= 250 in the example). + +:param event: (esdeveniment) Un esdeveniment sonor, com ara ``SoundEvent.LOUD`` o ``SoundEvent.QUIET``. +:param value: (valor) El llindar en l'interval 0-255.""" + ... + +def sound_level() -> int: + """Obté el nivell de pressió sonora. (nivell de so) + +Example: ``microphone.sound_level()`` + +:return: A representation of the sound pressure level in the range 0 to 255.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/speaker.pyi b/lang/ca/typeshed/stdlib/microbit/speaker.pyi new file mode 100644 index 0000000..dbce9de --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/speaker.pyi @@ -0,0 +1,15 @@ +"""Controla l'altaveu integrat (només V2). (altaveu)""" + +def off() -> None: + """Apaga l'altaveu. + +Example: ``speaker.off()`` + +This does not disable sound output to an edge connector pin.""" + ... + +def on() -> None: + """Encén l'altaveu. + +Example: ``speaker.on()``""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/spi.pyi b/lang/ca/typeshed/stdlib/microbit/spi.pyi new file mode 100644 index 0000000..37ad952 --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/spi.pyi @@ -0,0 +1,46 @@ +"""Comunica amb dispositius mitjançant el bus d'interfície perifèrica sèrie (SPI).""" +from _typeshed import ReadableBuffer, WriteableBuffer +from ..microbit import pin13, pin14, pin15, MicroBitDigitalPin + +def init(baudrate: int=1000000, bits: int=8, mode: int=0, sclk: MicroBitDigitalPin=pin13, mosi: MicroBitDigitalPin=pin15, miso: MicroBitDigitalPin=pin14) -> None: + """Inicialitzar la comunicació SPI. + +Example: ``spi.init()`` + +For correct communication, the parameters have to be the same on both communicating devices. + +:param baudrate: (Velocitat de bauds) La velocitat de comunicació. +:param bits: L'amplada en bits de cada transferència. Actualment només ``bits=8`` és acceptada . Tot i que això pot canviar en el futur +:param mode: Determina la combinació de polaritat i fase del rellotge: `consulta la taula en línia `_. +:param sclk: pin sclk (per defecte 13) +:param mosi: mosi pin (per defecte 15) +:param miso: miso pin (per defecte 14)""" + ... + +def read(nbytes: int) -> bytes: + """Llegeix bytes (llegeix) + +Example: ``spi.read(64)`` + +:param nbytes: Nombre màxim de bytes per llegir. +:return: The bytes read.""" + ... + +def write(buffer: ReadableBuffer) -> None: + """Escriu bytes al bus. (escriu) + +Example: ``spi.write(bytes([1, 2, 3]))`` + +:param buffer: (memòria intermèdia) Una memòria intermèdia per a llegir dades.""" + ... + +def write_readinto(out: WriteableBuffer, in_: ReadableBuffer) -> None: + """Escriu la memòria intermèdia ``out`` al bus i llegeix qualsevol resposta a la memòria intermèdia ``in_``. + +Example: ``spi.write_readinto(out_buffer, in_buffer)`` + +The length of the buffers should be the same. The buffers can be the same object. + +:param out: La memòria intermèdia per a escriure qualsevol resposta. +:param in_: La memòria intermèdia per a llegir dades.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/microbit/uart.pyi b/lang/ca/typeshed/stdlib/microbit/uart.pyi new file mode 100644 index 0000000..7ff8baa --- /dev/null +++ b/lang/ca/typeshed/stdlib/microbit/uart.pyi @@ -0,0 +1,79 @@ +"""Comunica amb un dispositiu mitjançant una interfície sèrie.""" +from _typeshed import WriteableBuffer +from ..microbit import MicroBitDigitalPin +from typing import Optional, Union +ODD: int +"""Paritat senar (senar)""" +EVEN: int +"""Paritat parella (parell)""" + +def init(baudrate: int=9600, bits: int=8, parity: Optional[int]=None, stop: int=1, tx: Optional[MicroBitDigitalPin]=None, rx: Optional[MicroBitDigitalPin]=None) -> None: + """Inicialitzar la comunicació en sèrie. + +Example: ``uart.init(115200, tx=pin0, rx=pin1)`` + +:param baudrate: (Velocitat de bauds) La velocitat de comunicació. +:param bits: La mida dels bytes que es transmeten. micro:bit només n'admet 8. +:param parity: (paritat) Com es verifica la paritat, ``None``, ``uart.ODD`` o ``uart.EVEN``. +:param stop: (atura) El nombre de bits de parada ha de ser 1 per micro:bit. +:param tx: Pin transmissor. +:param rx: Receiving pin. + +Initializing the UART on external pins will cause the Python console on +USB to become unaccessible, as it uses the same hardware. To bring the +console back you must reinitialize the UART without passing anything for +``tx`` or ``rx`` (or passing ``None`` to these arguments). This means +that calling ``uart.init(115200)`` is enough to restore the Python console. + +For more details see `the online documentation `_.""" + ... + +def any() -> bool: + """Verifica si hi ha alguna data esperant. + +Example: ``uart.any()`` + +:return: ``True`` if any data is waiting, else ``False``.""" + ... + +def read(nbytes: Optional[int]=None) -> Optional[bytes]: + """Llegeix bytes (llegeix) + +Example: ``uart.read()`` + +:param nbytes: Si s'especifica ``nbytes``, llegeix com a màxim tants bytes, en cas contrari llegeix tants bytes com sigui possible +:return: A bytes object or ``None`` on timeout""" + ... + +def readinto(buf: WriteableBuffer, nbytes: Optional[int]=None) -> Optional[int]: + """Llegeix bytes al ``buf``. + +Example: ``uart.readinto(input_buffer)`` + +:param buf: La memòria intermèdia a on escriure. +:param nbytes: Si s'especifica ``nbytes``, llegeix com a màxim aquests bytes, en cas contrari llegeix ``len(buf)`` bytes. +:return: number of bytes read and stored into ``buf`` or ``None`` on timeout.""" + ... + +def readline() -> Optional[bytes]: + """Llegir una línia que acaba en un caràcter de nova línia. + +Example: ``uart.readline()`` + +:return: The line read or ``None`` on timeout. The newline character is included in the returned bytes.""" + ... + +def write(buf: Union[bytes, str]) -> Optional[int]: + """Escriu una memòria intermèdia al bus (escriu) + +Example: ``uart.write('hello world')`` + +:param buf: Un objecte bytes o una cadena. +:return: The number of bytes written, or ``None`` on timeout. + +Examples:: + + uart.write('hello world') + uart.write(b'hello world') + uart.write(bytes([1, 2, 3]))""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/micropython.pyi b/lang/ca/typeshed/stdlib/micropython.pyi new file mode 100644 index 0000000..2b2ca4a --- /dev/null +++ b/lang/ca/typeshed/stdlib/micropython.pyi @@ -0,0 +1,133 @@ +"""Components interns de MicroPython.""" +from typing import Any, TypeVar, overload +_T = TypeVar('_T') + +def const(expr: _T) -> _T: + """S'utilitza per declarar que l'expressió és una constant perquè el compilador pugui +optimitzar-la. + +The use of this function should be as follows:: + + from micropython import const + CONST_X = const(123) + CONST_Y = const(2 * CONST_X + 1) + +Constants declared this way are still accessible as global variables from +outside the module they are declared in. On the other hand, if a constant +begins with an underscore then it is hidden, it is not available as a +global variable, and does not take up any memory during execution. + +:param expr: Una expressió constant""" + ... + +@overload +def opt_level() -> int: + """Obté el nivell d'optimització actual per a la compilació d'scripts. + +Example: ``micropython.opt_level()`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +:return: An integer representing the current level.""" + ... + +@overload +def opt_level(level: int) -> None: + """Estableix el nivell d'optimització per a la compilació posterior dels scripts. + +Example: ``micropython.opt_level(1)`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +The default optimisation level is usually level 0. + +:param level: Un nivell d'optimització enter.""" + ... + +def mem_info(verbose: Any=None) -> None: + """Imprimeix informació sobre la memòria utilitzada actualment. (informació de la memòria) + +Example: ``micropython.mem_info()`` + +:param verbose: Si es dona l'argument ``verbose``, s'imprimeix informació addicional.""" + ... + +def qstr_info(verbose: Any=None) -> None: + """Imprimeix informació sobre les cadenes internades actualment. + +Example: ``micropython.qstr_info()`` + +:param verbose: Si es dona l'argument ``verbose``, s'imprimeix informació addicional. + +The information that is printed is implementation dependent, but currently +includes the number of interned strings and the amount of RAM they use. In +verbose mode it prints out the names of all RAM-interned strings.""" + ... + +def stack_use() -> int: + """Retorna un nombre enter que representa la quantitat actual de pila que està sent +utilitzada. + +Example: ``micropython.stack_use()`` + +The absolute value of this is not particularly useful, rather it +should be used to compute differences in stack usage at different points. + +:return: An integer representing current stack use.""" + ... + +def heap_lock() -> None: + """Bloqueja el munt. + +Example: ``micropython.heap_lock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def heap_unlock() -> None: + """Desbloqueja el munt. + +Example: ``micropython.heap_unlock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def kbd_intr(chr: int) -> None: + """Estableix el caràcter que generarà una excepció ``KeyboardInterrupt``. + +Example: ``micropython.kbd_intr(-1)`` + +:param chr: Codi de caràcter per augmentar la interrupció o -1 per desactivar la captura de Ctrl-C. + +By default this is set to 3 during script execution, corresponding to Ctrl-C. +Passing -1 to this function will disable capture of Ctrl-C, and passing 3 +will restore it. + +This function can be used to prevent the capturing of Ctrl-C on the +incoming stream of characters that is usually used for the REPL, in case +that stream is used for other purposes.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/music.pyi b/lang/ca/typeshed/stdlib/music.pyi new file mode 100644 index 0000000..b748d9f --- /dev/null +++ b/lang/ca/typeshed/stdlib/music.pyi @@ -0,0 +1,128 @@ +"""Crea i toca melodies. (música)""" +from typing import Optional, Tuple, Union, List +from .microbit import MicroBitDigitalPin, pin0 +DADADADUM: Tuple[str, ...] +"""Melodia: l'obertura de la cinquena simfonia de Beethoven en Do menor.""" +ENTERTAINER: Tuple[str, ...] +"""Melodia: el fragment inicial del clàssic Ragtime de Scott Joplin "The Entertainer".""" +PRELUDE: Tuple[str, ...] +"""Melodia: obertura del primer Preludi en Do Major dels 48 Preludis i Fugues de J.S. Bach. (preludi)""" +ODE: Tuple[str, ...] +"""Melodia: el tema "Oda a l'alegria" de la 9a simfonia en Re menor de Beethoven. (oda)""" +NYAN: Tuple[str, ...] +"""Melodia: el tema Nyan Cat (http://www.nyan.cat/). + +The composer is unknown. This is fair use for educational porpoises (as they say in New York).""" +RINGTONE: Tuple[str, ...] +"""Melodia: quelcom que sona com un to de trucada de telèfon mòbil. (to de trucada) + +To be used to indicate an incoming message. +""" +FUNK: Tuple[str, ...] +"""Melodia: una línia de baix funky per a agents secrets i cervells criminals.""" +BLUES: Tuple[str, ...] +"""Melodia: un blues walking bass boogie-woogie de dotze compassos.""" +BIRTHDAY: Tuple[str, ...] +"""Melodia: “Feliç aniversari…” (aniversari) + +For copyright status see: http://www.bbc.co.uk/news/world-us-canada-34332853 +""" +WEDDING: Tuple[str, ...] +"""Melodia: el cor nupcial de l'òpera Lohengrin de Wagner. (casament)""" +FUNERAL: Tuple[str, ...] +"""Melodia: la “marxa fúnebre” com es coneix la Sonata per a piano No 2. en Si bemoll menor Op. 35 de Frédéric Chopin .""" +PUNCHLINE: Tuple[str, ...] +"""Melodia: un fragment divertit que significa que s'ha fet una broma.""" +PYTHON: Tuple[str, ...] +"""Melodia: la marxa de John Philip Sousa "Liberty Bell", també conegut com, el tema de "Monty Python's Flying Circus" (a partir de la qual s'anomena el llenguatge de programació Python).""" +BADDY: Tuple[str, ...] +"""Melodia: entrada d'un dolent a l'era del cinema mut. (dolent)""" +CHASE: Tuple[str, ...] +"""Melodia: escena de persecució de l'era del cinema mut. (persecució)""" +BA_DING: Tuple[str, ...] +"""Melodia: senyal breu per indicar que alguna cosa ha passat.""" +WAWAWAWAA: Tuple[str, ...] +"""Melodia: un trombó molt trist.""" +JUMP_UP: Tuple[str, ...] +"""Melodia: per utilitzar-se en un joc, indicant moviment cap amunt. (saltar cap amunt)""" +JUMP_DOWN: Tuple[str, ...] +"""Melodia: per utilitzar en un joc, que indica moviment cap avall. (saltar cap avall)""" +POWER_UP: Tuple[str, ...] +"""Melodia: una fanfàrria per indicar un assoliment desbloquejat. (engegar)""" +POWER_DOWN: Tuple[str, ...] +"""Melodia: una trista fanfàrria per indicar un assoliment perdut. (apagar)""" + +def set_tempo(ticks: int=4, bpm: int=120) -> None: + """Estableix el tempo aproximat per la reproducció. + +Example: ``music.set_tempo(bpm=120)`` + +:param ticks: El nombre de tics que constitueixen un ritme. +:param bpm: Un nombre enter determinant quantes pulsacions per minut. + +Suggested default values allow the following useful behaviour: + +- music.set_tempo() – reset the tempo to default of ticks = 4, bpm = 120 +- music.set_tempo(ticks=8) – change the “definition” of a beat +- music.set_tempo(bpm=180) – just change the tempo + +To work out the length of a tick in milliseconds is very simple arithmetic: +60000/bpm/ticks_per_beat. For the default values that’s +60000/120/4 = 125 milliseconds or 1 beat = 500 milliseconds.""" + ... + +def get_tempo() -> Tuple[int, int]: + """Obté el tempo actual com una tupla d'enters:``(ticks, bpm)``. (obté el tempo) + +Example: ``ticks, beats = music.get_tempo()`` + +:return: The temp as a tuple with two integer values, the ticks then the beats per minute.""" + ... + +def play(music: Union[str, List[str], Tuple[str, ...]], pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True, loop: bool=False) -> None: + """Tocar música + +Example: ``music.play(music.NYAN)`` + +:param music: (música) música especificada en `una notació especial `_ +:param pin: el pin de sortida per utilitzar-lo amb un altaveu extern (``pin0`` per defecte), ``None`` per no fer so. +:param wait: (espera) Si ``wait`` s'estableix en ``True``, aquesta funció està bloquejant. +:param loop: (bucle) Si el ``loop`` s'estableix en ``True``, la melodia es repeteix fins que es crida ``stop`` o s'interromp la trucada de bloqueig. + +Many built-in melodies are defined in this module.""" + ... + +def pitch(frequency: int, duration: int=-1, pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True) -> None: + """Toca una nota. (altura del to) + +Example: ``music.pitch(185, 1000)`` + +:param frequency: (freqüència) Una freqüència de nombre enter +:param duration: (Durada - duració) Una duració d'un mil·lisegon. Si és negativa, el so és continu fins a la nova crida o una crida a ``stop``. +:param pin: Pin de sortida opcional (``pin0`` per defecte). +:param wait: (espera) Si ``wait`` s'estableix en ``True``, aquesta funció està bloquejant. + +For example, if the frequency is set to 440 and the length to +1000 then we hear a standard concert A for one second. + +You can only play one pitch on one pin at any one time.""" + ... + +def stop(pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Atura tota la reproducció de música a l'altaveu integrat i qualsevol so de sortida de pin. (atura) + +Example: ``music.stop()`` + +:param pin: Es pot proporcionar un argument opcional per especificar un pin, per exemple ``music.stop(pin1)``.""" + +def reset() -> None: + """Restableix els tics, ppm, duració i octava al seu valor per defecte. (reiniciar) + +Example: ``music.reset()`` + +Values: +- ``ticks = 4`` +- ``bpm = 120`` +- ``duration = 4`` +- ``octave = 4``""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/neopixel.pyi b/lang/ca/typeshed/stdlib/neopixel.pyi new file mode 100644 index 0000000..e8095c9 --- /dev/null +++ b/lang/ca/typeshed/stdlib/neopixel.pyi @@ -0,0 +1,81 @@ +"""Cintes LED RGB i RGBW adreçables individualment.""" +from .microbit import MicroBitDigitalPin +from typing import Tuple + +class NeoPixel: + + def __init__(self, pin: MicroBitDigitalPin, n: int, bpp: int=3) -> None: + """Inicialitza una nova tira de LED de neopixel controlada mitjançant un pin. + +Example: ``np = neopixel.NeoPixel(pin0, 8)`` + +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. + +See `the online docs `_ for warnings and other advice. + +:param pin: El pin que controla la tira de neopíxels. +:param n: El nombre de neopíxels de la tira. +:param bpp: Bytes per píxel. Per al suport de micro:bit V2 RGBW neopixel, passa 4 en lloc de 3 per defecte per a RGB i GRB.""" + ... + + def clear(self) -> None: + """Esborra tots els píxels. + +Example: ``np.clear()``""" + ... + + def show(self) -> None: + """mostra els píxels. + +Example: ``np.show()`` + +Must be called for any updates to become visible.""" + ... + + def write(self) -> None: + """Mostra els píxels (només micro:bit V2) (escriu) + +Example: ``np.write()`` + +Must be called for any updates to become visible. + +Equivalent to ``show``.""" + ... + + def fill(self, colour: Tuple[int, ...]) -> None: + """Acoloreix tots els píxels amb un valor RGB/RGBW determinat. (omple) + +Example: ``np.fill((0, 0, 255))`` + +:param colour: (color) Una tupla de la mateixa longitud que el nombre de bytes per píxel (bpp). + +Use in conjunction with ``show()`` to update the neopixels.""" + ... + + def __setitem__(self, key: int, value: Tuple[int, ...]) -> None: + """Estableix un color de píxel. + +Example: ``np[0] = (255, 0, 0)`` + +:param key: El nombre de píxels. +:param value: (valor) El color.""" + + def __getitem__(self, key: int) -> Tuple[int, ...]: + """Obté un color de píxel. + +Example: ``r, g, b = np[0]`` + +:param key: El nombre de píxels. +:return: The colour tuple.""" + + def __len__(self) -> int: + """Obté la longitud d'aquesta cinta de píxels. + +Example: ``len(np)``""" \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/os.pyi b/lang/ca/typeshed/stdlib/os.pyi new file mode 100644 index 0000000..53b62c0 --- /dev/null +++ b/lang/ca/typeshed/stdlib/os.pyi @@ -0,0 +1,63 @@ +"""Accedeix al sistema de fitxers.""" +from typing import Tuple +from typing import List + +def listdir() -> List[str]: + """Llista dels fitxers. + +Example: ``os.listdir()`` + +:return: A list of the names of all the files contained within the local +persistent on-device file system.""" + ... + +def remove(filename: str) -> None: + """Eliminar (suprimir) un fitxer. (eliminar) + +Example: ``os.remove('data.txt')`` + +:param filename: (nom del fitxer) El fitxer a suprimir. + +If the file does not exist an ``OSError`` exception will occur.""" + ... + +def size(filename: str) -> int: + """Retorna la mida d'un fitxer (mida) + +Example: ``os.size('data.txt')`` + +:param filename: (nom del fitxer) El fitxer +:return: The size in bytes. + +If the file does not exist an ``OSError`` exception will occur.""" + +class uname_result(Tuple[str, str, str, str, str]): + """Resultat de ``os.uname()``""" + sysname: str + """Nom del sistema operatiu.""" + nodename: str + """Nom de la màquina a la xarxa (definida per la implementació).""" + release: str + """Versió del sistema operatiu. (versió)""" + version: str + """Versió del sistema operatiu. (versió)""" + machine: str + """Identificador del maquinari. (màquina)""" + +def uname() -> uname_result: + """Retorna informació que identifica el sistema operatiu actual. + +Example: ``os.uname()`` + +The return value is an object with five attributes: + +- ``sysname`` - operating system name +- ``nodename`` - name of machine on network (implementation-defined) +- ``release`` - operating system release +- ``version`` - operating system version +- ``machine`` - hardware identifier + +There is no underlying operating system in MicroPython. As a result the +information returned by the ``uname`` function is mostly useful for +versioning details.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/power.pyi b/lang/ca/typeshed/stdlib/power.pyi new file mode 100644 index 0000000..2be8b27 --- /dev/null +++ b/lang/ca/typeshed/stdlib/power.pyi @@ -0,0 +1,53 @@ +"""Manage the power modes of the micro:bit (V2 only). +""" + +from microbit import MicroBitDigitalPin, Button +from typing import Optional, Tuple, Union + +def off() -> None: + """Power down the board to the lowest possible power mode. + + Example: ``power.off()`` + + This is the equivalent to pressing the reset button for a few seconds, + to set the board in "Off mode". + + The micro:bit will only wake up if the reset button is pressed or, + if on battery power, when a USB cable is connected. + + When the board wakes up it will start for a reset state, so your program + will start running from the beginning. + """ + ... + +def deep_sleep( + ms: Optional[int] = None, + wake_on: Optional[ + Union[MicroBitDigitalPin, Button] | Tuple[MicroBitDigitalPin | Button, ...] + ] = None, + run_every: bool = True, +) -> None: + """Set the micro:bit into a low power mode where it can wake up and continue operation. + + Example: ``power.deep_sleep(wake_on=(button_a, button_b))`` + + The program state is preserved and when it wakes up it will resume + operation where it left off. + + Deep Sleep mode will consume more battery power than Off mode. + + The wake up sources are configured via arguments. + + The board will always wake up when receiving UART data, when the reset + button is pressed (which resets the board) or, in battery power, + when the USB cable is inserted. + + When the ``run_every`` parameter is set to ``True`` (the default), any + function scheduled with ``run_every`` will momentarily wake up the board + to run and when it finishes it will go back to sleep. + + :param ms: A time in milliseconds to wait before it wakes up. + :param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``. + :param run_every: A boolean to configure if the functions scheduled with ``microbit.run_every`` will continue to run while it sleeps. + """ + ... diff --git a/lang/ca/typeshed/stdlib/radio.pyi b/lang/ca/typeshed/stdlib/radio.pyi new file mode 100644 index 0000000..8b7bc98 --- /dev/null +++ b/lang/ca/typeshed/stdlib/radio.pyi @@ -0,0 +1,130 @@ +"""Comunicar-se entre micro:bits amb la ràdio integrada. (ràdio)""" +from _typeshed import WriteableBuffer +from typing import Optional, Tuple +RATE_1MBIT: int +"""La constant utilitzada per indicar un rendiment d'1 Mbit per segon. (velocitat de transmissió 1mbit)""" +RATE_2MBIT: int +"""La constant utilitzada per indicar un rendiment de 2 Mbit per segon. (velocitat de transmissió 2mbit)""" + +def on() -> None: + """Encén la ràdio. + +Example: ``radio.on()`` + +This needs to be explicitly called since the radio draws power and takes +up memory that you may otherwise need.""" + ... + +def off() -> None: + """Apaga la ràdio, estalviant energia i memòria. + +Example: ``radio.off()``""" + ... + +def config(length: int=32, queue: int=3, channel: int=7, power: int=6, address: int=1969383796, group: int=0, data_rate: int=RATE_1MBIT) -> None: + """Configura la ràdio. + +Example: ``radio.config(group=42)`` + +The default configuration is suitable for most use. + +:param length: (llargada) (per defecte=32) defineix la longitud màxima, en bytes, d'un missatge enviat a través de la ràdio. +Pot tenir una longitud de fins a 251 bytes (254 - 3 bytes per al preàmbul S0, LENGTH i S1). +:param queue: (cua) (per defecte=3) especifica el nombre de missatges que es poden emmagatzemar a la cua de missatges entrants. +Si no queden espais a la cua per als missatges entrants, s'elimina el missatge entrant. +:param channel: (canal) (per defecte=7) un valor enter de 0 a 83 (inclosos) que defineix un "canal" arbitrari al qual està sintonitzada la ràdio. +Els missatges s'enviaran a través d'aquest canal i només els missatges rebuts per aquest canal es posaran a la cua de missatges entrants. Cada pas té una amplada d'1MHz, basat en 2400MHz. +:param power: (per defecte=6) és un valor enter de 0 a 7 (inclosos) per indicar la intensitat del senyal utilitzat quan s'emet un missatge. +Com més alt sigui el valor, més fort és el senyal, però més potència consumeix el dispositiu. La numeració es tradueix en posicions a la llista següent de valors en dBm (decibels mil·liwatts): -30, -20, -16, -12, -8, -4, 0, 4. +:param address: (adreça) (per defecte=0x75626974) un nom arbitrari, expressat com una adreça de 32 bits, que s'utilitza per filtrar els paquets entrants a nivell de maquinari, conservant només els que coincideixen amb l'adreça que has establert. +La configuració predeterminada utilitzada per altres plataformes relacionades amb micro:bit és la configuració predeterminada que s'utilitza aquí. +:param group: (grup) (per defecte=0) un valor de 8 bits (0-255) utilitzat amb l'``address`` (adreça) en filtrar missatges. +Conceptualment, "adreça" és com una adreça de casa/oficina i "grup" és com la persona a aquesta adreça a la qual vols enviar el teu missatge. +:param data_rate: (velocitat de dades) (per defecte=``radio.RATE_1MBIT``) indica la velocitat a la qual es produeix la transmissió de les dades. +Pot ser una de les constants següents definides al mòdul ``radio``: ``RATE_250KBIT``, ``RATE_1MBIT`` o ``RATE_2MBIT``. + +If ``config`` is not called then the defaults described above are assumed.""" + ... + +def reset() -> None: + """Restableix la configuració als seus valors predeterminats. (reiniciar) + +Example: ``radio.reset()`` + +The defaults as as per the ``config`` function above.""" + ... + +def send_bytes(message: bytes) -> None: + """Envia un missatge que conté bytes. (enviar bytes) + +Example: ``radio.send_bytes(b'hello')`` + +:param message: (missatge) Els bytes a ser enviats.""" + ... + +def receive_bytes() -> Optional[bytes]: + """Rebràs el següent missatge entrant a la cua de missatges. (rebre bytes) + +Example: ``radio.receive_bytes()`` + +:return: The message bytes if any, otherwise ``None``.""" + ... + +def receive_bytes_into(buffer: WriteableBuffer) -> Optional[int]: + """Copia el següent missatge entrant de la cua de missatges a una memòria intermèdia. (rebre bytes a) + +Example: ``radio.receive_bytes_info(buffer)`` + +:param buffer: (memòria intermèdia) La memòria intermèdia objectiu. El missatge es trunca si és més gran que la memòria intermèdia. +:return: ``None`` if there are no pending messages, otherwise it returns the length of the message (which might be more than the length of the buffer).""" + ... + +def send(message: str) -> None: + """Envia una cadena de missatge. (envia) + +Example: ``radio.send('hello')`` + +This is the equivalent of ``radio.send_bytes(bytes(message, 'utf8'))`` but with ``b'\x01\x00\x01'`` +prepended to the front (to make it compatible with other platforms that target the micro:bit). + +:param message: (missatge) La cadena a enviar.""" + ... + +def receive() -> Optional[str]: + """Funciona exactament de la mateixa manera que ``receive_bytes`` però retorna el que s'ha enviat. + +Example: ``radio.receive()`` + +Equivalent to ``str(receive_bytes(), 'utf8')`` but with a check that the the first +three bytes are ``b'\x01\x00\x01'`` (to make it compatible with other platforms that +may target the micro:bit). + +:return: The message with the prepended bytes stripped and converted to a string. + +A ``ValueError`` exception is raised if conversion to string fails.""" + ... + +def receive_full() -> Optional[Tuple[bytes, int, int]]: + """Retorna una tupla que conté tres valors que representen el següent missatge entrant a la cua de missatges. (rebre ple) + +Example: ``radio.receive_full()`` + +If there are no pending messages then ``None`` is returned. + +The three values in the tuple represent: + +- the next incoming message on the message queue as bytes. +- the RSSI (signal strength): a value between 0 (strongest) and -255 (weakest) as measured in dBm. +- a microsecond timestamp: the value returned by ``time.ticks_us()`` when the message was received. + +For example:: + + details = radio.receive_full() + if details: + msg, rssi, timestamp = details + +This function is useful for providing information needed for triangulation +and/or trilateration with other micro:bit devices. + +:return: ``None`` if there is no message, otherwise a tuple of length three with the bytes, strength and timestamp values.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/random.pyi b/lang/ca/typeshed/stdlib/random.pyi new file mode 100644 index 0000000..34ccc2b --- /dev/null +++ b/lang/ca/typeshed/stdlib/random.pyi @@ -0,0 +1,81 @@ +"""Genera nombres aleatoris. (aleatori)""" +from typing import TypeVar, Sequence, Union, overload + +def getrandbits(n: int) -> int: + """Genera un nombre enter amb ``n`` bits aleatoris. + +Example: ``random.getrandbits(1)`` + +:param n: Un valor entre 1-30 (inclusiu).""" + ... + +def seed(n: int) -> None: + """Inicialitza el generador de nombres aleatoris. (llavor) + +Example: ``random.seed(0)`` + +:param n: The integer seed + +This will give you reproducibly deterministic randomness from a given starting +state (``n``).""" + ... + +def randint(a: int, b: int) -> int: + """Tria un nombre enter aleatori entre ``a`` i ``b`` inclosos. + +Example: ``random.randint(0, 9)`` + +:param a: Valor inicial de l'interval (inclòs) +:param b: Valor final de l'interval (inclòs) + +Alias for ``randrange(a, b + 1)``.""" + ... + +@overload +def randrange(stop: int) -> int: + """Tria un nombre enter seleccionat aleatòriament entre zero i fins a (però no +inclòs) ``stop``. + +Example: ``random.randrange(10)`` + +:param stop: (atura) Valor final de l'interval (exclòs)""" + ... + +@overload +def randrange(start: int, stop: int, step: int=1) -> int: + """Tria un element seleccionat aleatòriament de ``range(start, stop, step)``. + +Example: ``random.randrange(0, 10)`` + +:param start: L'inici de l'interval (inclòs) +:param stop: (atura) El final de l'interval (exclusiu) +:param step: El pas.""" + ... +_T = TypeVar('_T') + +def choice(seq: Sequence[_T]) -> _T: + """Tria un element aleatori de la seqüència no buida ``seq``. + +Example: ``random.choice([Image.HAPPY, Image.SAD])`` + +:param seq: Una seqüència. + +If ``seq`` is empty, raises ``IndexError``.""" + ... + +def random() -> float: + """Genera un nombre aleatori de coma flotant en l'interval [0.0, 1.0). (aleatori) + +Example: ``random.random()`` + +:return: The random floating point number""" + ... + +def uniform(a: float, b: float) -> float: + """Retorna un nombre de coma flotant aleatori entre ``a`` i ``b`` inclosos. (uniforme) + +Example: ``random.uniform(0, 9)`` + +:param a: Valor inicial de l'interval (inclòs) +:param b: Valor final de l'interval (inclòs)""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/speech.pyi b/lang/ca/typeshed/stdlib/speech.pyi new file mode 100644 index 0000000..2e29ea3 --- /dev/null +++ b/lang/ca/typeshed/stdlib/speech.pyi @@ -0,0 +1,79 @@ +"""Fes que la micro:bit parli, canti i fer altres expressions com els sons.""" +from typing import Optional +from .microbit import MicroBitDigitalPin, pin0 + +def translate(words: str) -> str: + """Tradueix paraules angleses a fonemes. (tradueix) + +Example: ``speech.translate('hello world')`` + +:param words: (paraules) Una cadena de paraules angleses. +:return: A string containing a best guess at the appropriate phonemes to pronounce. +The output is generated from this `text to phoneme translation table `_. + +This function should be used to generate a first approximation of phonemes +that can be further hand-edited to improve accuracy, inflection and +emphasis. + +See `the online documentation `_ for detailed information.""" + ... + +def pronounce(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Pronuncia fonemes. (pronuncia) + +Example: ``speech.pronounce(' /HEHLOW WERLD')`` + +:param phonemes: (fonemes) La cadena de fonemes a pronunciar +:param pitch: (to) Un nombre que representa la freqüència de la veu +:param speed: (velocitat) Un nombre que representa la velocitat de la veu +:param mouth: (boca) Un nombre que representa la boca de la veu +:param throat: Un nombre que representa la gola de la veu +:param pin: L'argument opcional per especificar el pin de sortida es pot utilitzar per anul·lar el valor predeterminat de ``pin0``. +Si no vols que es reprodueixi cap so en els pins, podts utilitzar ``pin=None``. Només micro:bit V2. + +Override the optional pitch, speed, mouth and throat settings to change the +timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... + +def say(words: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Digues paraules en anglès. + +Example: ``speech.say('hello world')`` + +:param words: (paraules) La cadena de paraules a dir. +:param pitch: (to) Un nombre que representa la freqüència de la veu +:param speed: (velocitat) Un nombre que representa la velocitat de la veu +:param mouth: (boca) Un nombre que representa la boca de la veu +:param throat: Un nombre que representa la gola de la veu +:param pin: L'argument opcional per especificar el pin de sortida es pot utilitzar per anul·lar el valor predeterminat del ``pin0``. +Si no vols que es reprodueixi cap so en els pins, pots utilitzar ``pin=None``. Només micro:bit V2. + +The result is semi-accurate for English. Override the optional pitch, speed, +mouth and throat settings to change the timbre (quality) of the voice. + +This is a short-hand equivalent of: +``speech.pronounce(speech.translate(words))`` + +See `the online documentation `_ for detailed information.""" + ... + +def sing(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Cantar fonemes. + +Example: ``speech.sing(' /HEHLOW WERLD')`` + +:param phonemes: (fonemes) La cadena de paraules a cantar. +:param pitch: (to) Un nombre que representa la freqüència de la veu +:param speed: (velocitat) Un nombre que representa la velocitat de la veu +:param mouth: (boca) Un nombre que representa la boca de la veu +:param throat: Un nombre que representa la gola de la veu +:param pin: L'argument opcional per especificar el pin de sortida es pot utilitzar per anul·lar el valor predeterminat de ``pin0``. +Si no vols que es reprodueixi cap so en els pins, podts utilitzar ``pin=None``. Només micro:bit V2. + +Override the optional pitch, speed, mouth and throat settings to change +the timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/struct.pyi b/lang/ca/typeshed/stdlib/struct.pyi new file mode 100644 index 0000000..75c7eee --- /dev/null +++ b/lang/ca/typeshed/stdlib/struct.pyi @@ -0,0 +1,56 @@ +"""Empaquetar i desempaquetar tipus de dades primitius.""" +from _typeshed import ReadableBuffer, WriteableBuffer +from typing import Any, Tuple, Union + +def calcsize(fmt: str) -> int: + """Obté el nombre de bytes necessaris per emmagatzemar el ``fmt`` donat. + +Example: ``struct.calcsize('hf')`` + +:param fmt: Una cadena de format. +:return The number of bytes needed to store such a value.""" + ... + +def pack(fmt: str, v1: Any, *vn: Any) -> bytes: + """Empaqueta els valors segons una cadena de format. + +Example: ``struct.pack('hf', 1, 3.1415)`` + +:param fmt: La cadena de format. +:param v1: El primer valor. +:param *vn: La resta de valors. +:return A bytes object encoding the values.""" + ... + +def pack_into(fmt: str, buffer: WriteableBuffer, offset: int, v1: Any, *vn: Any) -> None: + """Empaqueta els valors segons una cadena de format. + +Example: ``struct.pack_info('hf', buffer, 1, 3.1415)`` + +:param fmt: La cadena de format. +:param buffer: (memòria intermèdia) La memòria intermèdia de destinació on escriure. +:param offset: El desplaçament a la memòria intermèdia. Pot ser negatiu per comptar des del final de la memòria intermèdia. +:param v1: El primer valor. +:param *vn: La resta de valors.""" + ... + +def unpack(fmt: str, data: ReadableBuffer) -> Tuple[Any, ...]: + """Desempaqueta les dades segons una cadena de format. + +Example: ``v1, v2 = struct.unpack('hf', buffer)`` + +:param fmt: La cadena de format. +:param data: Les dades. +:return: A tuple of the unpacked values.""" + ... + +def unpack_from(fmt: str, buffer: ReadableBuffer, offset: int=0) -> Tuple: + """Desempaqueta les dades d'una memòria intermèdia segons una cadena de format. (desempaqueta des de) + +Example: ``v1, v2 = struct.unpack_from('hf', buffer)`` + +:param fmt: La cadena de format. +:param buffer: (memòria intermèdia) La memòria intermèdia d'origen d'on llegir. +:param offset: El desplaçament a la memòria intermèdia. Pot ser negatiu per comptar des del final de la memòria intermèdia. +:return: A tuple of the unpacked values.""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/sys.pyi b/lang/ca/typeshed/stdlib/sys.pyi new file mode 100644 index 0000000..aea4bac --- /dev/null +++ b/lang/ca/typeshed/stdlib/sys.pyi @@ -0,0 +1,96 @@ +"""Funcions específiques del sistema""" +from typing import Any, Dict, List, NoReturn, TextIO, Tuple + +def exit(retval: object=...) -> NoReturn: + """Finalitza el programa actual amb un codi de sortida determinat. + +Example: ``sys.exit(1)`` + +This function raises a ``SystemExit`` exception. If an argument is given, its +value given as an argument to ``SystemExit``. + +:param retval: El codi o missatge de sortida.""" + ... + +def print_exception(exc: Exception) -> None: + """Imprimeix una excepció amb un rastreig. + +Example: ``sys.print_exception(e)`` + +:param exc: L'excepció a imprimir + +This is simplified version of a function which appears in the +``traceback`` module in CPython.""" +argv: List[str] +"""Una llista mutable d'arguments amb què s'ha iniciat el programa actual.""" +byteorder: str +"""L'ordre dels bytes del sistema (``"little"`` o ``"big"``).""" + +class _implementation: + name: str + version: Tuple[int, int, int] +implementation: _implementation +"""Objecte amb informació sobre la implementació actual de Python. (implementació) + +For MicroPython, it has following attributes: + +- ``name`` - string "micropython" +- ``version`` - tuple (major, minor, micro), e.g. (1, 7, 0) + +This object is the recommended way to distinguish MicroPython from other +Python implementations (note that it still may not exist in the very +minimal ports). + +CPython mandates more attributes for this object, but the actual useful +bare minimum is implemented in MicroPython. +""" +maxsize: int +""" +Valor màxim que pot tenir un tipus d'enter natiu a la plataforma actual, +o valor màxim representable pel tipus d'enter MicroPython, si és més petit +que el valor màxim de la plataforma (és el cas dels ports MicroPython sense +suport d'enter llarg - long int support). + +This attribute is useful for detecting "bitness" of a platform (32-bit vs +64-bit, etc.). It's recommended to not compare this attribute to some +value directly, but instead count number of bits in it:: + + bits = 0 + v = sys.maxsize + while v: + bits += 1 + v >>= 1 + if bits > 32: + # 64-bit (or more) platform + ... + else: + # 32-bit (or less) platform + # Note that on 32-bit platform, value of bits may be less than 32 + # (e.g. 31) due to peculiarities described above, so use "> 16", + # "> 32", "> 64" style of comparisons. +""" +modules: Dict[str, Any] +"""Diccionari de mòduls carregats. (mòduls) + +On some ports, it may not include builtin modules.""" +path: List[str] +"""Una llista mutable de directoris per cercar mòduls importats.""" +platform: str +"""La plataforma en què s'executa MicroPython. (plataforma) + +For OS/RTOS ports, this is usually an identifier of the OS, e.g. ``"linux"``. +For baremetal ports it is an identifier of a board, e.g. ``"pyboard"`` for +the original MicroPython reference board. It thus can be used to +distinguish one board from another. + +If you need to check whether your program runs on MicroPython (vs other +Python implementation), use ``sys.implementation`` instead. +""" +version: str +"""Versió del llenguatge Python a la qual s'ajusta aquesta implementació, com a cadena. (versió)""" +version_info: Tuple[int, int, int] +"""Versió del llenguatge Python a la qual s'ajusta aquesta implementació, com una tupla d'enters. (informació de la versió) + +Only the first three version numbers (major, minor, micro) are supported and +they can be referenced only by index, not by name. +""" \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/this.pyi b/lang/ca/typeshed/stdlib/this.pyi new file mode 100644 index 0000000..faf492b --- /dev/null +++ b/lang/ca/typeshed/stdlib/this.pyi @@ -0,0 +1 @@ +def authors() -> str: ... diff --git a/lang/ca/typeshed/stdlib/time.pyi b/lang/ca/typeshed/stdlib/time.pyi new file mode 100644 index 0000000..c1e151f --- /dev/null +++ b/lang/ca/typeshed/stdlib/time.pyi @@ -0,0 +1,116 @@ +"""Mesura el temps i afegeix retards als programes. (temps)""" +from typing import Union + +def sleep(seconds: Union[int, float]) -> None: + """Retarda uns segons. (dormir) + +Example: ``time.sleep(1)`` + +:param seconds: (segons) El nombre de segons per posar en pausa. +Utilitza un nombre de coma flotant per posar en pausa durant una fracció de segons.""" + ... + +def sleep_ms(ms: int) -> None: + """Retard per a un nombre determinat de mil·lisegons. (retard en mil·lisegons) + +Example: ``time.sleep_ms(1_000_000)`` + +:param ms: El nombre de mil·lisegons de retard (>= 0).""" + ... + +def sleep_us(us: int) -> None: + """Retard per a un nombre determinat de microsegons. + +Example: ``time.sleep_us(1000)`` + +:param us: El nombre de microsegons de retard (>= 0).""" + ... + +def ticks_ms() -> int: + """Obté un comptador creixent de mil·lisegons amb un punt de referència arbitrari, +que es desborda després d'algun valor. (tics mil·lisegons) + +Example: ``time.ticks_ms()`` + +:return: The counter value in milliseconds.""" + ... + +def ticks_us() -> int: + """Obté un comptador creixent de microsegons amb un punt de referència arbitrari, +que es desborda després d'algun valor. (tics microsegons) + +Example: ``time.ticks_us()`` + +:return: The counter value in microseconds.""" + ... + +def ticks_add(ticks: int, delta: int) -> int: + """Afegeix al valor de tics un desplaçament determinat, que pot ser positiu o +negatiu. (tics compensa) + +Example: ``time.ticks_add(time.ticks_ms(), 200)`` + +Given a ticks value, this function allows to calculate ticks +value delta ticks before or after it, following modular-arithmetic +definition of tick values. + +:param ticks: Un valor de tics +:param delta: Un desplaçament enter + +Example:: + + # Find out what ticks value there was 100ms ago + print(ticks_add(time.ticks_ms(), -100)) + + # Calculate deadline for operation and test for it + deadline = ticks_add(time.ticks_ms(), 200) + while ticks_diff(deadline, time.ticks_ms()) > 0: + do_a_little_of_something() + + # Find out TICKS_MAX used by this port + print(ticks_add(0, -1))""" + ... + +def ticks_diff(ticks1: int, ticks2: int) -> int: + """Mesura la diferència dels tics entre els valors retornats +``time.ticks_ms()`` o ``ticks_us()``, com a valor amb signe +que pot desbordar-se. + +Example: ``time.ticks_diff(scheduled_time, now)`` + +:param ticks1: El valor a restar de +:param ticks2: El valor a restar + +The argument order is the same as for subtraction operator, +``ticks_diff(ticks1, ticks2)`` has the same meaning as ``ticks1 - ticks2``. + +``ticks_diff()`` is designed to accommodate various usage +patterns, among them: + +Polling with timeout. In this case, the order of events is known, and you +will deal only with positive results of :func:`time.ticks_diff()`:: + + # Wait for GPIO pin to be asserted, but at most 500us + start = time.ticks_us() + while pin.value() == 0: + if time.ticks_diff(time.ticks_us(), start) > 500: + raise TimeoutError + + +Scheduling events. In this case, :func:`time.ticks_diff()` result may be +negative if an event is overdue:: + + # This code snippet is not optimized + now = time.ticks_ms() + scheduled_time = task.scheduled_time() + if ticks_diff(scheduled_time, now) > 0: + print("Too early, let's nap") + sleep_ms(ticks_diff(scheduled_time, now)) + task.run() + elif ticks_diff(scheduled_time, now) == 0: + print("Right at time!") + task.run() + elif ticks_diff(scheduled_time, now) < 0: + print("Oops, running late, tell task to run faster!") + task.run(run_faster=True)""" + ... \ No newline at end of file diff --git a/lang/ca/typeshed/stdlib/types.pyi b/lang/ca/typeshed/stdlib/types.pyi new file mode 100644 index 0000000..752b2de --- /dev/null +++ b/lang/ca/typeshed/stdlib/types.pyi @@ -0,0 +1,413 @@ +import sys +from typing import ( + Any, + AsyncGenerator, + Awaitable, + Callable, + Generator, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + Tuple, + Type, + TypeVar, + ValuesView, + overload, +) +from typing_extensions import Literal, final + +# Note, all classes "defined" here require special handling. + +_T = TypeVar("_T") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT_co = TypeVar("_VT_co", covariant=True) +_V_co = TypeVar("_V_co", covariant=True) + +@final +class _Cell: + __hash__: None # type: ignore + cell_contents: Any + +@final +class FunctionType: + __closure__: Tuple[_Cell, ...] | None + __code__: CodeType + __defaults__: Tuple[Any, ...] | None + __dict__: dict[str, Any] + __globals__: dict[str, Any] + __name__: str + __qualname__: str + __annotations__: dict[str, Any] + __kwdefaults__: dict[str, Any] + def __init__( + self, + code: CodeType, + globals: dict[str, Any], + name: str | None = ..., + argdefs: Tuple[object, ...] | None = ..., + closure: Tuple[_Cell, ...] | None = ..., + ) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: object | None, type: type | None) -> MethodType: ... + +LambdaType = FunctionType + +@final +class CodeType: + """Create a code object. Not for the faint of heart.""" + + co_argcount: int + if sys.version_info >= (3, 8): + co_posonlyargcount: int + co_kwonlyargcount: int + co_nlocals: int + co_stacksize: int + co_flags: int + co_code: bytes + co_consts: Tuple[Any, ...] + co_names: Tuple[str, ...] + co_varnames: Tuple[str, ...] + co_filename: str + co_name: str + co_firstlineno: int + co_lnotab: bytes + co_freevars: Tuple[str, ...] + co_cellvars: Tuple[str, ...] + if sys.version_info >= (3, 8): + def __init__( + self, + argcount: int, + posonlyargcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + else: + def __init__( + self, + argcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + if sys.version_info >= (3, 8): + def replace( + self, + *, + co_argcount: int = ..., + co_posonlyargcount: int = ..., + co_kwonlyargcount: int = ..., + co_nlocals: int = ..., + co_stacksize: int = ..., + co_flags: int = ..., + co_firstlineno: int = ..., + co_code: bytes = ..., + co_consts: Tuple[Any, ...] = ..., + co_names: Tuple[str, ...] = ..., + co_varnames: Tuple[str, ...] = ..., + co_freevars: Tuple[str, ...] = ..., + co_cellvars: Tuple[str, ...] = ..., + co_filename: str = ..., + co_name: str = ..., + co_lnotab: bytes = ..., + ) -> CodeType: ... + +@final +class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]): + __hash__: None # type: ignore + def __init__(self, mapping: Mapping[_KT, _VT_co]) -> None: ... + def __getitem__(self, k: _KT) -> _VT_co: ... + def __iter__(self) -> Iterator[_KT]: ... + def __len__(self) -> int: ... + def copy(self) -> dict[_KT, _VT_co]: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def items(self) -> ItemsView[_KT, _VT_co]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __reversed__(self) -> Iterator[_KT]: ... + def __or__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + def __ror__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + +class SimpleNamespace: + __hash__: None # type: ignore + def __init__(self, **kwargs: Any) -> None: ... + def __getattribute__(self, name: str) -> Any: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __delattr__(self, name: str) -> None: ... + +class ModuleType: + __name__: str + __file__: str + __dict__: dict[str, Any] + __package__: str | None + def __init__(self, name: str, doc: str | None = ...) -> None: ... + +@final +class GeneratorType(Generator[_T_co, _T_contra, _V_co]): + gi_code: CodeType + gi_frame: FrameType + gi_running: bool + gi_yieldfrom: GeneratorType[_T_co, _T_contra, Any] | None + def __iter__(self) -> GeneratorType[_T_co, _T_contra, _V_co]: ... + def __next__(self) -> _T_co: ... + def close(self) -> None: ... + def send(self, __arg: _T_contra) -> _T_co: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> _T_co: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> _T_co: ... + +@final +class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]): + ag_await: Awaitable[Any] | None + ag_frame: FrameType + ag_running: bool + ag_code: CodeType + def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ... + def __anext__(self) -> Awaitable[_T_co]: ... + def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Awaitable[_T_co]: ... + def aclose(self) -> Awaitable[None]: ... + +@final +class CoroutineType: + cr_await: Any | None + cr_code: CodeType + cr_frame: FrameType + cr_running: bool + def close(self) -> None: ... + def send(self, __arg: Any) -> Any: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Any: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Any: ... + +class _StaticFunctionType: + """Fictional type to correct the type of MethodType.__func__. + + FunctionType is a descriptor, so mypy follows the descriptor protocol and + converts MethodType.__func__ back to MethodType (the return type of + FunctionType.__get__). But this is actually a special case; MethodType is + implemented in C and its attribute access doesn't go through + __getattribute__. + + By wrapping FunctionType in _StaticFunctionType, we get the right result; + similar to wrapping a function in staticmethod() at runtime to prevent it + being bound as a method. + """ + + def __get__(self, obj: object | None, type: type | None) -> FunctionType: ... + +@final +class MethodType: + __closure__: Tuple[_Cell, ...] | None # inherited from the added function + __defaults__: Tuple[Any, ...] | None # inherited from the added function + __func__: _StaticFunctionType + __self__: object + __name__: str # inherited from the added function + __qualname__: str # inherited from the added function + def __init__(self, func: Callable[..., Any], obj: object) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +@final +class BuiltinFunctionType: + __self__: object | ModuleType + __name__: str + __qualname__: str + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +BuiltinMethodType = BuiltinFunctionType + +if sys.version_info >= (3, 7): + @final + class WrapperDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class MethodWrapperType: + __self__: object + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __eq__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + @final + class MethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class ClassMethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + +@final +class TracebackType: + if sys.version_info >= (3, 7): + def __init__( + self, + tb_next: TracebackType | None, + tb_frame: FrameType, + tb_lasti: int, + tb_lineno: int, + ) -> None: ... + tb_next: TracebackType | None + else: + @property + def tb_next(self) -> TracebackType | None: ... + # the rest are read-only even in 3.7 + @property + def tb_frame(self) -> FrameType: ... + @property + def tb_lasti(self) -> int: ... + @property + def tb_lineno(self) -> int: ... + +@final +class FrameType: + f_back: FrameType | None + f_builtins: dict[str, Any] + f_code: CodeType + f_globals: dict[str, Any] + f_lasti: int + f_lineno: int + f_locals: dict[str, Any] + f_trace: Callable[[FrameType, str, Any], Any] | None + if sys.version_info >= (3, 7): + f_trace_lines: bool + f_trace_opcodes: bool + def clear(self) -> None: ... + +@final +class GetSetDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +@final +class MemberDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +if sys.version_info >= (3, 7): + def new_class( + name: str, + bases: Iterable[object] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + def resolve_bases(bases: Iterable[object]) -> Tuple[Any, ...]: ... + +else: + def new_class( + name: str, + bases: Tuple[type, ...] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + +def prepare_class( + name: str, bases: Tuple[type, ...] = ..., kwds: dict[str, Any] | None = ... +) -> Tuple[type, dict[str, Any], dict[str, Any]]: ... + +# Actually a different type, but `property` is special and we want that too. +DynamicClassAttribute = property + +def coroutine(func: Callable[..., Any]) -> CoroutineType: ... + +if sys.version_info >= (3, 8): + CellType = _Cell + +if sys.version_info >= (3, 9): + class GenericAlias: + __origin__: type + __args__: Tuple[Any, ...] + __parameters__: Tuple[Any, ...] + def __init__(self, origin: type, args: Any) -> None: ... + def __getattr__(self, name: str) -> Any: ... # incomplete + +if sys.version_info >= (3, 10): + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... + EllipsisType = ellipsis # noqa F811 from builtins + from builtins import _NotImplementedType + + NotImplementedType = _NotImplementedType # noqa F811 from builtins + @final + class UnionType: + __args__: Tuple[Any, ...] + def __or__(self, obj: Any) -> UnionType: ... + def __ror__(self, obj: Any) -> UnionType: ... diff --git a/lang/ca/typeshed/stdlib/typing.pyi b/lang/ca/typeshed/stdlib/typing.pyi new file mode 100644 index 0000000..a494557 --- /dev/null +++ b/lang/ca/typeshed/stdlib/typing.pyi @@ -0,0 +1,716 @@ +import collections # Needed by aliases like DefaultDict, see mypy issue 2986 +import sys +from abc import ABCMeta, abstractmethod +from types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType +from typing_extensions import Literal as _Literal + +if sys.version_info >= (3, 7): + from types import MethodDescriptorType, MethodWrapperType, WrapperDescriptorType + +if sys.version_info >= (3, 9): + from types import GenericAlias + +# Definitions of special type checking related constructs. Their definitions +# are not used, so their value does not matter. + +Any = object() + +class TypeVar: + __name__: str + __bound__: Optional[Type[Any]] + __constraints__: Tuple[Type[Any], ...] + __covariant__: bool + __contravariant__: bool + def __init__( + self, + name: str, + *constraints: Type[Any], + bound: Union[None, Type[Any], str] = ..., + covariant: bool = ..., + contravariant: bool = ..., + ) -> None: ... + +_promote = object() + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> object: ... + +_F = TypeVar("_F", bound=Callable[..., Any]) + +def overload(func: _F) -> _F: ... + +Union: _SpecialForm = ... +Optional: _SpecialForm = ... +Tuple: _SpecialForm = ... +Generic: _SpecialForm = ... +# Protocol is only present in 3.8 and later, but mypy needs it unconditionally +Protocol: _SpecialForm = ... +Callable: _SpecialForm = ... +Type: _SpecialForm = ... +ClassVar: _SpecialForm = ... +if sys.version_info >= (3, 8): + Final: _SpecialForm = ... + def final(f: _F) -> _F: ... + Literal: _SpecialForm = ... + # TypedDict is a (non-subscriptable) special form. + TypedDict: object + +if sys.version_info < (3, 7): + class GenericMeta(type): ... + +if sys.version_info >= (3, 10): + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Optional[Type[Any]] + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: Union[None, Type[Any], str] = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... + +# Return type that indicates a function does not return. +# This type is equivalent to the None type, but the no-op Union is necessary to +# distinguish the None type from the None value. +NoReturn = Union[None] + +# These type variables are used by the container types. +_T = TypeVar("_T") +_S = TypeVar("_S") +_KT = TypeVar("_KT") # Key type. +_VT = TypeVar("_VT") # Value type. +_T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers. +_V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers. +_KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers. +_VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers. +_T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant. +_TC = TypeVar("_TC", bound=Type[object]) + +def no_type_check(arg: _F) -> _F: ... +def no_type_check_decorator(decorator: _F) -> _F: ... + +# Type aliases and type constructors + +class _Alias: + # Class for defining generic aliases for library types. + def __getitem__(self, typeargs: Any) -> Any: ... + +List = _Alias() +Dict = _Alias() +DefaultDict = _Alias() +Set = _Alias() +FrozenSet = _Alias() +Counter = _Alias() +Deque = _Alias() +ChainMap = _Alias() + +if sys.version_info >= (3, 7): + OrderedDict = _Alias() + +if sys.version_info >= (3, 9): + Annotated: _SpecialForm = ... + +# Predefined type variables. +AnyStr = TypeVar("AnyStr", str, bytes) + +# Abstract base classes. + +def runtime_checkable(cls: _TC) -> _TC: ... +@runtime_checkable +class SupportsInt(Protocol, metaclass=ABCMeta): + @abstractmethod + def __int__(self) -> int: ... + +@runtime_checkable +class SupportsFloat(Protocol, metaclass=ABCMeta): + @abstractmethod + def __float__(self) -> float: ... + +@runtime_checkable +class SupportsComplex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __complex__(self) -> complex: ... + +@runtime_checkable +class SupportsBytes(Protocol, metaclass=ABCMeta): + @abstractmethod + def __bytes__(self) -> bytes: ... + +if sys.version_info >= (3, 8): + @runtime_checkable + class SupportsIndex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __index__(self) -> int: ... + +@runtime_checkable +class SupportsAbs(Protocol[_T_co]): + @abstractmethod + def __abs__(self) -> _T_co: ... + +@runtime_checkable +class SupportsRound(Protocol[_T_co]): + @overload + @abstractmethod + def __round__(self) -> int: ... + @overload + @abstractmethod + def __round__(self, ndigits: int) -> _T_co: ... + +@runtime_checkable +class Sized(Protocol, metaclass=ABCMeta): + @abstractmethod + def __len__(self) -> int: ... + +@runtime_checkable +class Hashable(Protocol, metaclass=ABCMeta): + # TODO: This is special, in that a subclass of a hashable class may not be hashable + # (for example, list vs. object). It's not obvious how to represent this. This class + # is currently mostly useless for static checking. + @abstractmethod + def __hash__(self) -> int: ... + +@runtime_checkable +class Iterable(Protocol[_T_co]): + @abstractmethod + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Iterator(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __next__(self) -> _T_co: ... + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Reversible(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __reversed__(self) -> Iterator[_T_co]: ... + +class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]): + def __next__(self) -> _T_co: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + def close(self) -> None: ... + def __iter__(self) -> Generator[_T_co, _T_contra, _V_co]: ... + @property + def gi_code(self) -> CodeType: ... + @property + def gi_frame(self) -> FrameType: ... + @property + def gi_running(self) -> bool: ... + @property + def gi_yieldfrom(self) -> Optional[Generator[Any, Any, Any]]: ... + +@runtime_checkable +class Awaitable(Protocol[_T_co]): + @abstractmethod + def __await__(self) -> Generator[Any, None, _T_co]: ... + +class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]): + __name__: str + __qualname__: str + @property + def cr_await(self) -> Optional[Any]: ... + @property + def cr_code(self) -> CodeType: ... + @property + def cr_frame(self) -> FrameType: ... + @property + def cr_running(self) -> bool: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + @abstractmethod + def close(self) -> None: ... + +# NOTE: This type does not exist in typing.py or PEP 484. +# The parameters correspond to Generator, but the 4th is the original type. +class AwaitableGenerator( + Awaitable[_V_co], Generator[_T_co, _T_contra, _V_co], Generic[_T_co, _T_contra, _V_co, _S], metaclass=ABCMeta +): ... + +@runtime_checkable +class AsyncIterable(Protocol[_T_co]): + @abstractmethod + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +@runtime_checkable +class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +class AsyncGenerator(AsyncIterator[_T_co], Generic[_T_co, _T_contra]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + @abstractmethod + def asend(self, __value: _T_contra) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ... + @abstractmethod + def aclose(self) -> Awaitable[None]: ... + @abstractmethod + def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ... + @property + def ag_await(self) -> Any: ... + @property + def ag_code(self) -> CodeType: ... + @property + def ag_frame(self) -> FrameType: ... + @property + def ag_running(self) -> bool: ... + +@runtime_checkable +class Container(Protocol[_T_co]): + @abstractmethod + def __contains__(self, __x: object) -> bool: ... + +@runtime_checkable +class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]): + # Implement Sized (but don't have it as a base class). + @abstractmethod + def __len__(self) -> int: ... + +_Collection = Collection[_T_co] + +class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]): + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T_co: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> Sequence[_T_co]: ... + # Mixin methods + def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ... + def count(self, value: Any) -> int: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __reversed__(self) -> Iterator[_T_co]: ... + +class MutableSequence(Sequence[_T], Generic[_T]): + @abstractmethod + def insert(self, index: int, value: _T) -> None: ... + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> MutableSequence[_T]: ... + @overload + @abstractmethod + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + @abstractmethod + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: int) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: slice) -> None: ... + # Mixin methods + def append(self, value: _T) -> None: ... + def clear(self) -> None: ... + def extend(self, values: Iterable[_T]) -> None: ... + def reverse(self) -> None: ... + def pop(self, index: int = ...) -> _T: ... + def remove(self, value: _T) -> None: ... + def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ... + +class AbstractSet(_Collection[_T_co], Generic[_T_co]): + @abstractmethod + def __contains__(self, x: object) -> bool: ... + # Mixin methods + def __le__(self, s: AbstractSet[Any]) -> bool: ... + def __lt__(self, s: AbstractSet[Any]) -> bool: ... + def __gt__(self, s: AbstractSet[Any]) -> bool: ... + def __ge__(self, s: AbstractSet[Any]) -> bool: ... + def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def isdisjoint(self, other: Iterable[Any]) -> bool: ... + +class MutableSet(AbstractSet[_T], Generic[_T]): + @abstractmethod + def add(self, value: _T) -> None: ... + @abstractmethod + def discard(self, value: _T) -> None: ... + # Mixin methods + def clear(self) -> None: ... + def pop(self) -> _T: ... + def remove(self, value: _T) -> None: ... + def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + +class MappingView(Sized): + def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocumented + def __len__(self) -> int: ... + +class ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]): + def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + +class KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]): + def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_KT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT_co]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + +class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]): + def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_VT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_VT_co]: ... + +@runtime_checkable +class ContextManager(Protocol[_T_co]): + def __enter__(self) -> _T_co: ... + def __exit__( + self, + __exc_type: Optional[Type[BaseException]], + __exc_value: Optional[BaseException], + __traceback: Optional[TracebackType], + ) -> Optional[bool]: ... + +@runtime_checkable +class AsyncContextManager(Protocol[_T_co]): + def __aenter__(self) -> Awaitable[_T_co]: ... + def __aexit__( + self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Awaitable[Optional[bool]]: ... + +class Mapping(_Collection[_KT], Generic[_KT, _VT_co]): + # TODO: We wish the key type could also be covariant, but that doesn't work, + # see discussion in https: //github.com/python/typing/pull/273. + @abstractmethod + def __getitem__(self, k: _KT) -> _VT_co: ... + # Mixin methods + @overload + def get(self, key: _KT) -> Optional[_VT_co]: ... + @overload + def get(self, key: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ... + def items(self) -> AbstractSet[Tuple[_KT, _VT_co]]: ... + def keys(self) -> AbstractSet[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def __contains__(self, o: object) -> bool: ... + +class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]): + @abstractmethod + def __setitem__(self, k: _KT, v: _VT) -> None: ... + @abstractmethod + def __delitem__(self, v: _KT) -> None: ... + def clear(self) -> None: ... + @overload + def pop(self, key: _KT) -> _VT: ... + @overload + def pop(self, key: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ... + # 'update' used to take a Union, but using overloading is better. + # The second overloaded type here is a bit too general, because + # Mapping[Tuple[_KT, _VT], W] is a subclass of Iterable[Tuple[_KT, _VT]], + # but will always have the behavior of the first overloaded type + # at runtime, leading to keys of a mix of types _KT and Tuple[_KT, _VT]. + # We don't currently have any way of forcing all Mappings to use + # the first overload, but by using overloading rather than a Union, + # mypy will commit to using the first overload when the argument is + # known to be a Mapping with unknown type parameters, which is closer + # to the behavior we want. See mypy issue #1430. + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + +Text = str + +TYPE_CHECKING = True + +class IO(Iterator[AnyStr], Generic[AnyStr]): + # TODO use abstract properties + @property + def mode(self) -> str: ... + @property + def name(self) -> str: ... + @abstractmethod + def close(self) -> None: ... + @property + def closed(self) -> bool: ... + @abstractmethod + def fileno(self) -> int: ... + @abstractmethod + def flush(self) -> None: ... + @abstractmethod + def isatty(self) -> bool: ... + @abstractmethod + def read(self, n: int = ...) -> AnyStr: ... + @abstractmethod + def readable(self) -> bool: ... + @abstractmethod + def readline(self, limit: int = ...) -> AnyStr: ... + @abstractmethod + def readlines(self, hint: int = ...) -> list[AnyStr]: ... + @abstractmethod + def seek(self, offset: int, whence: int = ...) -> int: ... + @abstractmethod + def seekable(self) -> bool: ... + @abstractmethod + def tell(self) -> int: ... + @abstractmethod + def truncate(self, size: Optional[int] = ...) -> int: ... + @abstractmethod + def writable(self) -> bool: ... + @abstractmethod + def write(self, s: AnyStr) -> int: ... + @abstractmethod + def writelines(self, lines: Iterable[AnyStr]) -> None: ... + @abstractmethod + def __next__(self) -> AnyStr: ... + @abstractmethod + def __iter__(self) -> Iterator[AnyStr]: ... + @abstractmethod + def __enter__(self) -> IO[AnyStr]: ... + @abstractmethod + def __exit__( + self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Optional[bool]: ... + +class BinaryIO(IO[bytes]): + @abstractmethod + def __enter__(self) -> BinaryIO: ... + +class TextIO(IO[str]): + # TODO use abstractproperty + @property + def buffer(self) -> BinaryIO: ... + @property + def encoding(self) -> str: ... + @property + def errors(self) -> Optional[str]: ... + @property + def line_buffering(self) -> int: ... # int on PyPy, bool on CPython + @property + def newlines(self) -> Any: ... # None, str or tuple + @abstractmethod + def __enter__(self) -> TextIO: ... + +class ByteString(Sequence[int], metaclass=ABCMeta): ... + +class Match(Generic[AnyStr]): + pos: int + endpos: int + lastindex: Optional[int] + lastgroup: Optional[AnyStr] + string: AnyStr + + # The regular expression object whose match() or search() method produced + # this match instance. + re: Pattern[AnyStr] + def expand(self, template: AnyStr) -> AnyStr: ... + # group() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def group(self, __group: _Literal[0] = ...) -> AnyStr: ... + @overload + def group(self, __group: str | int) -> AnyStr | Any: ... + @overload + def group(self, __group1: str | int, __group2: str | int, *groups: str | int) -> Tuple[AnyStr | Any, ...]: ... + # Each item of groups()'s return tuple is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groups(self) -> Tuple[AnyStr | Any, ...]: ... + @overload + def groups(self, default: _T) -> Tuple[AnyStr | _T, ...]: ... + # Each value in groupdict()'s return dict is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groupdict(self) -> dict[str, AnyStr | Any]: ... + @overload + def groupdict(self, default: _T) -> dict[str, AnyStr | _T]: ... + def start(self, __group: Union[int, str] = ...) -> int: ... + def end(self, __group: Union[int, str] = ...) -> int: ... + def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ... + @property + def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented + # __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def __getitem__(self, __key: _Literal[0]) -> AnyStr: ... + @overload + def __getitem__(self, __key: int | str) -> AnyStr | Any: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class Pattern(Generic[AnyStr]): + flags: int + groupindex: Mapping[str, int] + groups: int + pattern: AnyStr + def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ... + def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ... + def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ... + @overload + def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def sub(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def subn(self, repl: AnyStr, string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + @overload + def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +# Functions + +if sys.version_info >= (3, 7): + _get_type_hints_obj_allowed_types = Union[ + object, + Callable[..., Any], + FunctionType, + BuiltinFunctionType, + MethodType, + ModuleType, + WrapperDescriptorType, + MethodWrapperType, + MethodDescriptorType, + ] +else: + _get_type_hints_obj_allowed_types = Union[ + object, Callable[..., Any], FunctionType, BuiltinFunctionType, MethodType, ModuleType, + ] + +if sys.version_info >= (3, 9): + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, + globalns: Optional[Dict[str, Any]] = ..., + localns: Optional[Dict[str, Any]] = ..., + include_extras: bool = ..., + ) -> Dict[str, Any]: ... + +else: + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, globalns: Optional[Dict[str, Any]] = ..., localns: Optional[Dict[str, Any]] = ... + ) -> Dict[str, Any]: ... + +if sys.version_info >= (3, 8): + def get_origin(tp: Any) -> Optional[Any]: ... + def get_args(tp: Any) -> Tuple[Any, ...]: ... + +@overload +def cast(typ: Type[_T], val: Any) -> _T: ... +@overload +def cast(typ: str, val: Any) -> Any: ... +@overload +def cast(typ: object, val: Any) -> Any: ... + +# Type constructors + +# NamedTuple is special-cased in the type checker +class NamedTuple(Tuple[Any, ...]): + _field_types: collections.OrderedDict[str, Type[Any]] + _field_defaults: Dict[str, Any] = ... + _fields: Tuple[str, ...] + _source: str + def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., **kwargs: Any) -> None: ... + @classmethod + def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ... + if sys.version_info >= (3, 8): + def _asdict(self) -> Dict[str, Any]: ... + else: + def _asdict(self) -> collections.OrderedDict[str, Any]: ... + def _replace(self: _T, **kwargs: Any) -> _T: ... + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def __delitem__(self, k: NoReturn) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __or__(self: _T, __value: _T) -> _T: ... + def __ior__(self: _T, __value: _T) -> _T: ... + +def NewType(name: str, tp: Type[_T]) -> Type[_T]: ... + +# This itself is only available during type checking +def type_check_only(func_or_cls: _F) -> _F: ... + +if sys.version_info >= (3, 7): + class ForwardRef: + __forward_arg__: str + __forward_code__: CodeType + __forward_evaluated__: bool + __forward_value__: Optional[Any] + __forward_is_argument__: bool + def __init__(self, arg: str, is_argument: bool = ...) -> None: ... + def _evaluate(self, globalns: Optional[Dict[str, Any]], localns: Optional[Dict[str, Any]]) -> Optional[Any]: ... + def __eq__(self, other: Any) -> bool: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + +if sys.version_info >= (3, 10): + def is_typeddict(tp: Any) -> bool: ... diff --git a/lang/ca/typeshed/stdlib/typing_extensions.pyi b/lang/ca/typeshed/stdlib/typing_extensions.pyi new file mode 100644 index 0000000..59fe3df --- /dev/null +++ b/lang/ca/typeshed/stdlib/typing_extensions.pyi @@ -0,0 +1,115 @@ +import abc +import sys +from typing import ( + TYPE_CHECKING as TYPE_CHECKING, + Any, + AsyncContextManager as AsyncContextManager, + AsyncGenerator as AsyncGenerator, + AsyncIterable as AsyncIterable, + AsyncIterator as AsyncIterator, + Awaitable as Awaitable, + Callable, + ChainMap as ChainMap, + ClassVar as ClassVar, + ContextManager as ContextManager, + Coroutine as Coroutine, + Counter as Counter, + DefaultDict as DefaultDict, + Deque as Deque, + ItemsView, + KeysView, + Mapping, + NewType as NewType, + NoReturn as NoReturn, + Text as Text, + Tuple, + Type as Type, + TypeVar, + ValuesView, + _Alias, + overload as overload, +) + +_T = TypeVar("_T") +_F = TypeVar("_F", bound=Callable[..., Any]) +_TC = TypeVar("_TC", bound=Type[object]) + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> Any: ... + +def runtime_checkable(cls: _TC) -> _TC: ... + +# This alias for above is kept here for backwards compatibility. +runtime = runtime_checkable +Protocol: _SpecialForm = ... +Final: _SpecialForm = ... + +def final(f: _F) -> _F: ... + +Literal: _SpecialForm = ... + +def IntVar(name: str) -> Any: ... # returns a new TypeVar + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __delitem__(self, k: NoReturn) -> None: ... + +# TypedDict is a (non-subscriptable) special form. +TypedDict: object = ... + +OrderedDict = _Alias() + +def get_type_hints( + obj: Callable[..., Any], + globalns: dict[str, Any] | None = ..., + localns: dict[str, Any] | None = ..., + include_extras: bool = ..., +) -> dict[str, Any]: ... + +if sys.version_info >= (3, 7): + def get_args(tp: Any) -> Tuple[Any, ...]: ... + def get_origin(tp: Any) -> Any | None: ... + +Annotated: _SpecialForm = ... +_AnnotatedAlias: Any = ... # undocumented + +@runtime_checkable +class SupportsIndex(Protocol, metaclass=abc.ABCMeta): + @abc.abstractmethod + def __index__(self) -> int: ... + +# PEP 612 support for Python < 3.9 +if sys.version_info >= (3, 10): + from typing import Concatenate as Concatenate, ParamSpec as ParamSpec, TypeAlias as TypeAlias, TypeGuard as TypeGuard +else: + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Type[Any] | None + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: None | Type[Any] | str = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... diff --git a/lang/ca/typeshed/stdlib/uarray.pyi b/lang/ca/typeshed/stdlib/uarray.pyi new file mode 100644 index 0000000..d1ba4d9 --- /dev/null +++ b/lang/ca/typeshed/stdlib/uarray.pyi @@ -0,0 +1 @@ +from array import * diff --git a/lang/ca/typeshed/stdlib/ucollections.pyi b/lang/ca/typeshed/stdlib/ucollections.pyi new file mode 100644 index 0000000..9400561 --- /dev/null +++ b/lang/ca/typeshed/stdlib/ucollections.pyi @@ -0,0 +1 @@ +from collections import * diff --git a/lang/ca/typeshed/stdlib/uerrno.pyi b/lang/ca/typeshed/stdlib/uerrno.pyi new file mode 100644 index 0000000..5ecb44d --- /dev/null +++ b/lang/ca/typeshed/stdlib/uerrno.pyi @@ -0,0 +1 @@ +from errno import * diff --git a/lang/ca/typeshed/stdlib/urandom.pyi b/lang/ca/typeshed/stdlib/urandom.pyi new file mode 100644 index 0000000..1c31bde --- /dev/null +++ b/lang/ca/typeshed/stdlib/urandom.pyi @@ -0,0 +1 @@ +from random import * diff --git a/lang/ca/typeshed/stdlib/ustruct.pyi b/lang/ca/typeshed/stdlib/ustruct.pyi new file mode 100644 index 0000000..ee3a9fc --- /dev/null +++ b/lang/ca/typeshed/stdlib/ustruct.pyi @@ -0,0 +1 @@ +from struct import * diff --git a/lang/ca/typeshed/stdlib/usys.pyi b/lang/ca/typeshed/stdlib/usys.pyi new file mode 100644 index 0000000..104052c --- /dev/null +++ b/lang/ca/typeshed/stdlib/usys.pyi @@ -0,0 +1 @@ +from sys import * diff --git a/lang/ca/typeshed/stdlib/utime.pyi b/lang/ca/typeshed/stdlib/utime.pyi new file mode 100644 index 0000000..72705db --- /dev/null +++ b/lang/ca/typeshed/stdlib/utime.pyi @@ -0,0 +1 @@ +from time import * diff --git a/scripts/build-translations.sh b/scripts/build-translations.sh index 0abaad6..70b4597 100755 --- a/scripts/build-translations.sh +++ b/scripts/build-translations.sh @@ -5,7 +5,7 @@ set -euxo pipefail -languages="fr es-ES ja ko nl zh-CN zh-TW" +languages="ca fr es-ES ja ko nl zh-CN zh-TW" for language in $languages; do lower="${language,,}" From 872fb5fe797c5b3ddf72f66defb3a6406832141d Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Fri, 19 May 2023 20:51:06 +0100 Subject: [PATCH 04/15] Translation sync: fr (#91) --- crowdin/translated/api.fr.json | 98 +++++++++---------- lang/fr/typeshed/stdlib/log.pyi | 4 +- lang/fr/typeshed/stdlib/microbit/__init__.pyi | 14 +-- .../stdlib/microbit/accelerometer.pyi | 6 +- lang/fr/typeshed/stdlib/microbit/audio.pyi | 70 ++++++------- 5 files changed, 96 insertions(+), 96 deletions(-) diff --git a/crowdin/translated/api.fr.json b/crowdin/translated/api.fr.json index 781a008..e7b7206 100644 --- a/crowdin/translated/api.fr.json +++ b/crowdin/translated/api.fr.json @@ -128,7 +128,7 @@ "description": "Set up the log file header." }, "log.set_labels.param-name.*labels": { - "message": "*etiquettes", + "message": "*labels", "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." }, "log.set_labels.param-doc.*labels": { @@ -152,7 +152,7 @@ "description": "Add a data row to the log by passing a dictionary of headers and values." }, "log.add-1.param-name.data_dictionary": { - "message": "dictionnaire de données", + "message": "data dictionary", "description": "(parameter name) The data to log as a dictionary with a key for each header." }, "log.add-1.param-doc.data_dictionary": { @@ -920,15 +920,15 @@ "description": "Restart the board." }, "microbit.scale-1": { - "message": "Mise à l'échelle", + "message": "scale", "description": "(function name) Converts a value from a range to an integer range." }, "microbit.scale-1.summary": { - "message": "Convertit une valeur dans intervalle donné vers son équivalent dans un autre intervalle d'entiers.", + "message": "Convertit une valeur dans l'intervalle donné vers son équivalent dans un autre intervalle d'entiers.", "description": "Converts a value from a range to an integer range." }, "microbit.scale-1.param-name.from_": { - "message": "de", + "message": "from", "description": "(parameter name) A tuple to define the range to convert from." }, "microbit.scale-1.param-doc.from_": { @@ -936,7 +936,7 @@ "description": "Parameter docs" }, "microbit.scale-1.param-name.to": { - "message": "vers", + "message": "to", "description": "(parameter name) A tuple to define the range to convert to." }, "microbit.scale-1.param-doc.to": { @@ -952,15 +952,15 @@ "description": "Parameter docs" }, "microbit.scale-2": { - "message": "Mise à l'échelle", + "message": "scale", "description": "(function name) Converts a value from a range to a floating point range." }, "microbit.scale-2.summary": { - "message": "Convertit une valeur dans intervalle donné vers son équivalent dans un autre intervalle de nombres à virgule flottante.", + "message": "Convertit une valeur dans l'intervalle donné vers son équivalent dans un autre intervalle de nombres à virgule flottante.", "description": "Converts a value from a range to a floating point range." }, "microbit.scale-2.param-name.from_": { - "message": "de", + "message": "from", "description": "(parameter name) A tuple to define the range to convert from." }, "microbit.scale-2.param-doc.from_": { @@ -968,7 +968,7 @@ "description": "Parameter docs" }, "microbit.scale-2.param-name.to": { - "message": "vers", + "message": "to", "description": "(parameter name) A tuple to define the range to convert to." }, "microbit.scale-2.param-doc.to": { @@ -1920,7 +1920,7 @@ "description": "Snake image." }, "microbit.Image.SCISSORS": { - "message": "ciseaux", + "message": "scissors", "description": "(field name) Scissors image." }, "microbit.Image.SCISSORS.summary": { @@ -2488,7 +2488,7 @@ "description": "Get the acceleration measurements in all axes at once as a tuple." }, "microbit.accelerometer.get_strength": { - "message": "obtenir la force", + "message": "get strength", "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.get_strength.summary": { @@ -2548,7 +2548,7 @@ "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.summary": { - "message": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either {{2}}, {{4}}, or {{8}} g.", + "message": "Définir la plage de sensibilité de l'accéléromètre, en g (gravité standard), à la valeur la plus proche supportée par le matériel, l'arrondi se fait soit à {{2}}, {{4}}, ou {{8}} g.", "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.param-name.value": { @@ -2556,7 +2556,7 @@ "description": "(parameter name) New range for the accelerometer, an integer in ``g``." }, "microbit.accelerometer.set_range.param-doc.value": { - "message": "New range for the accelerometer, an integer in {{g}}.", + "message": "Nouvelle plage pour l'accéléromètre, un entier en {{g}}.", "description": "Parameter docs" }, "microbit.audio": { @@ -2572,7 +2572,7 @@ "description": "(function name) Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.summary": { - "message": "Play a built-in sound, sound effect or custom audio frames.", + "message": "Jouer un son intégré, un effet sonore ou des frames audio personnalisées.", "description": "Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.param-name.pin": { @@ -2596,7 +2596,7 @@ "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." }, "microbit.audio.play.param-doc.source": { - "message": "A built-in {{Sound}} such as {{Sound.GIGGLE}}, a {{SoundEffect}} or sample data as an iterable of {{AudioFrame}} objects.", + "message": "Un {{Sound}} intégré tel que {{Sound.GIGGLE}}, un {{SoundEffect}} ou un échantillon de données sous la forme d'un itérable d'objets {{AudioFrame}}.", "description": "Parameter docs" }, "microbit.audio.play.param-name.wait": { @@ -2628,7 +2628,7 @@ "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." }, "microbit.audio.SoundEffect.summary": { - "message": "A sound effect, composed by a set of parameters configured via the constructor or attributes.", + "message": "Un effet sonore, composé d'un ensemble de paramètres configurés via le constructeur ou les attributs.", "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." }, "microbit.audio.SoundEffect.WAVEFORM_SINE": { @@ -2636,7 +2636,7 @@ "description": "(field name) Sine wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { - "message": "Sine wave option used for the {{waveform}} parameter.", + "message": "Option d'onde sinusoïdale utilisée pour le paramètre {{waveform}}.", "description": "Sine wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { @@ -2644,7 +2644,7 @@ "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { - "message": "Sawtooth wave option used for the {{waveform}} parameter.", + "message": "Optionde forme d'onde en dent de scie utilisée pour le paramètre {{waveform}}.", "description": "Sawtooth wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE": { @@ -2652,7 +2652,7 @@ "description": "(field name) Triangle wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE.summary": { - "message": "Triangle wave option used for the {{waveform}} parameter.", + "message": "Option d'onde triangulaire utilisée pour le paramètre {{waveform}}.", "description": "Triangle wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SQUARE": { @@ -2660,7 +2660,7 @@ "description": "(field name) Square wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { - "message": "Square wave option used for the {{waveform}} parameter.", + "message": "Option d'onde carrée utilisée pour le paramètre {{waveform}}.", "description": "Square wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_NOISE": { @@ -2668,7 +2668,7 @@ "description": "(field name) Noise option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_NOISE.summary": { - "message": "Noise option used for the {{waveform}} parameter.", + "message": "Option d'onde de bruit utilisée pour le paramètre {{waveform}}.", "description": "Noise option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LINEAR": { @@ -2676,7 +2676,7 @@ "description": "(field name) Linear interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LINEAR.summary": { - "message": "Linear interpolation option used for the {{shape}} parameter.", + "message": "Option d'interpolation linéaire utilisée pour le paramètre {{shape}}.", "description": "Linear interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_CURVE": { @@ -2684,7 +2684,7 @@ "description": "(field name) Curve interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_CURVE.summary": { - "message": "Curve interpolation option used for the {{shape}} parameter.", + "message": "Option d'interpolation courbe utilisée pour le paramètre {{shape}}.", "description": "Curve interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LOG": { @@ -2692,7 +2692,7 @@ "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LOG.summary": { - "message": "Logarithmic interpolation option used for the {{shape}} parameter.", + "message": "Option d'interpolation logarithmique utilisée pour le paramètre {{shape}}.", "description": "Logarithmic interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.FX_NONE": { @@ -2700,7 +2700,7 @@ "description": "(field name) No effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_NONE.summary": { - "message": "No effect option used for the {{fx}} parameter.", + "message": "Option sans effet utilisée pour le paramètre {{fx}}.", "description": "No effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO": { @@ -2708,7 +2708,7 @@ "description": "(field name) Tremelo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { - "message": "Tremelo effect option used for the {{fx}} parameter.", + "message": "Option d'effet tremolo utilisée pour le paramètre {{fx}}.", "description": "Tremelo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { @@ -2716,7 +2716,7 @@ "description": "(field name) Vibrato effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO.summary": { - "message": "Vibrato effect option used for the {{fx}} parameter.", + "message": "Option d'effet vibrato utilisée pour le paramètre {{fx}}.", "description": "Vibrato effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_WARBLE": { @@ -2724,7 +2724,7 @@ "description": "(field name) Warble effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_WARBLE.summary": { - "message": "Warble effect option used for the {{fx}} parameter.", + "message": "Option d'effet de Warble utilisée pour le paramètre {{fx}}.", "description": "Warble effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.freq_start": { @@ -2732,7 +2732,7 @@ "description": "(field name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.freq_start.summary": { - "message": "Start frequency in Hertz (Hz), a number between {{0}} and {{9999}}", + "message": "Fréquence de départ en Hertz (Hz), un nombre compris entre {{0}} et {{9999}}", "description": "Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.freq_end": { @@ -2740,7 +2740,7 @@ "description": "(field name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.freq_end.summary": { - "message": "End frequency in Hertz (Hz), a number between {{0}} and {{9999}}", + "message": "Fréquence de fin en Hertz (Hz), un nombre compris entre {{0}} et {{9999}}", "description": "End frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.duration": { @@ -2748,7 +2748,7 @@ "description": "(field name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.duration.summary": { - "message": "Duration of the sound in milliseconds, a number between {{0}} and {{9999}}", + "message": "Durée du son en millisecondes, un nombre compris entre {{0}} et {{9999}}", "description": "Duration of the sound in milliseconds, a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.vol_start": { @@ -2756,7 +2756,7 @@ "description": "(field name) Start volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.vol_start.summary": { - "message": "Start volume value, a number between {{0}} and {{255}}", + "message": "Valeur du volume de départ, un nombre compris entre {{0}} et {{255}}", "description": "Start volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.vol_end": { @@ -2764,7 +2764,7 @@ "description": "(field name) End volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.vol_end.summary": { - "message": "End volume value, a number between {{0}} and {{255}}", + "message": "Valeur du volume à la fin, un nombre compris entre {{0}} et {{255}}", "description": "End volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.waveform": { @@ -2772,7 +2772,7 @@ "description": "(field name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" }, "microbit.audio.SoundEffect.waveform.summary": { - "message": "Type of waveform shape, one of these values: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (randomly generated noise)", + "message": "Type de forme d'onde, une de ces valeurs : {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (bruit généré aléatoirement)", "description": "Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" }, "microbit.audio.SoundEffect.fx": { @@ -2780,7 +2780,7 @@ "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" }, "microbit.audio.SoundEffect.fx.summary": { - "message": "Effect to add on the sound, one of the following values: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, or {{FX_NONE}}", + "message": "Effet à ajouter au son, l'une des valeurs suivantes : {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, ou {{FX_NONE}}", "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" }, "microbit.audio.SoundEffect.shape": { @@ -2788,7 +2788,7 @@ "description": "(field name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" }, "microbit.audio.SoundEffect.shape.summary": { - "message": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", + "message": "Le type de la courbe d'interpolation entre les fréquences de début et de fin, les différentes formes d'onde ont des taux de variation de fréquence différents. L'une des valeurs suivantes : {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", "description": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" }, "microbit.audio.SoundEffect.__init__": { @@ -2796,7 +2796,7 @@ "description": "(function name) Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.summary": { - "message": "Create a new sound effect.", + "message": "Créer un nouvel effet sonore.", "description": "Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.param-name.duration": { @@ -2804,7 +2804,7 @@ "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." }, "microbit.audio.SoundEffect.__init__.param-doc.duration": { - "message": "Duration of the sound in milliseconds, a number between {{0}} and {{9999}}.", + "message": "Durée du son en millisecondes, un nombre compris entre {{0}} et {{9999}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.freq_end": { @@ -2812,7 +2812,7 @@ "description": "(parameter name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``." }, "microbit.audio.SoundEffect.__init__.param-doc.freq_end": { - "message": "End frequency in Hertz (Hz), a number between {{0}} and {{9999}}.", + "message": "Fréquence de fin en Hertz (Hz), un nombre compris entre {{0}} et {{9999}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.freq_start": { @@ -2820,7 +2820,7 @@ "description": "(parameter name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``." }, "microbit.audio.SoundEffect.__init__.param-doc.freq_start": { - "message": "Start frequency in Hertz (Hz), a number between {{0}} and {{9999}}.", + "message": "Fréquence de départ en Hertz (Hz), un nombre compris entre {{0}} et {{9999}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.fx": { @@ -2828,7 +2828,7 @@ "description": "(parameter name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``." }, "microbit.audio.SoundEffect.__init__.param-doc.fx": { - "message": "Effect to add on the sound, one of the following values: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, or {{FX_NONE}}.", + "message": "Effet à ajouter au son, l'une des valeurs suivantes : {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, ou {{FX_NONE}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.shape": { @@ -2836,7 +2836,7 @@ "description": "(parameter name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``." }, "microbit.audio.SoundEffect.__init__.param-doc.shape": { - "message": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}.", + "message": "Le type de la courbe d'interpolation entre les fréquences de début et de fin, les différentes formes d'onde ont des taux de variation de fréquence différents. L'une des valeurs suivantes : {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.vol_end": { @@ -2844,7 +2844,7 @@ "description": "(parameter name) End volume value, a number between ``0`` and ``255``." }, "microbit.audio.SoundEffect.__init__.param-doc.vol_end": { - "message": "End volume value, a number between {{0}} and {{255}}.", + "message": "Valeur du volume à la fin, un nombre compris entre {{0}} et {{255}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.vol_start": { @@ -2852,7 +2852,7 @@ "description": "(parameter name) Start volume value, a number between ``0`` and ``255``." }, "microbit.audio.SoundEffect.__init__.param-doc.vol_start": { - "message": "Start volume value, a number between {{0}} and {{255}}.", + "message": "Valeur du volume de départ, un nombre compris entre {{0}} et {{255}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.waveform": { @@ -2860,7 +2860,7 @@ "description": "(parameter name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)." }, "microbit.audio.SoundEffect.__init__.param-doc.waveform": { - "message": "Type of waveform shape, one of these values: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (randomly generated noise).", + "message": "Type de forme d'onde, une de ces valeurs : {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (bruit généré aléatoirement).", "description": "Parameter docs" }, "microbit.audio.SoundEffect.copy": { @@ -2868,7 +2868,7 @@ "description": "(function name) Create a copy of this ``SoundEffect``." }, "microbit.audio.SoundEffect.copy.summary": { - "message": "Create a copy of this {{SoundEffect}}.", + "message": "Créer une copie de ce {{SoundEffect}}.", "description": "Create a copy of this ``SoundEffect``." }, "microbit.audio.AudioFrame": { @@ -2884,7 +2884,7 @@ "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.summary": { - "message": "Overwrite the data in this {{AudioFrame}} with the data from another {{AudioFrame}} instance.", + "message": "Écraser les données de ce {{AudioFrame}} avec les données d'une autre instance {{AudioFrame}}.", "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.param-name.other": { @@ -2892,7 +2892,7 @@ "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." }, "microbit.audio.AudioFrame.copyfrom.param-doc.other": { - "message": "{{AudioFrame}} instance from which to copy the data.", + "message": "Instance {{AudioFrame}} à partir de laquelle copier les données.", "description": "Parameter docs" }, "microbit.compass": { diff --git a/lang/fr/typeshed/stdlib/log.pyi b/lang/fr/typeshed/stdlib/log.pyi index a6ddfa9..2a33dad 100644 --- a/lang/fr/typeshed/stdlib/log.pyi +++ b/lang/fr/typeshed/stdlib/log.pyi @@ -27,7 +27,7 @@ present, it will generate a new header row with the additional columns. By default the first column contains a timestamp for each row. The time unit can be selected via the timestamp argument. -:param *labels: (*etiquettes) Un nombre quelconque d'arguments positionnels, chacun correspondant à une entrée dans l'en-tête du journal. +:param *labels: Un nombre quelconque d'arguments positionnels, chacun correspondant à une entrée dans l'en-tête du journal. :param timestamp: (horodatage) Sélectionnez l'unité d'horodatage qui sera automatiquement ajoutée comme première colonne de chaque ligne. Les valeurs d'horodatage peuvent être l'une des suivantes ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` ou ``None`` pour désactiver l'horodatage. La valeur par défaut est ``log.SECONDS``.""" ... @@ -46,7 +46,7 @@ to the log with the extra labels. Labels previously specified and not present in a call to this function will be skipped with an empty value in the log row. -:param data_dictionary: (dictionnaire de données) Les données à enregistrer sous forme de dictionnaire avec une clé pour chaque en-tête.""" +:param data_dictionary: Les données à enregistrer sous forme de dictionnaire avec une clé pour chaque en-tête.""" ... @overload diff --git a/lang/fr/typeshed/stdlib/microbit/__init__.pyi b/lang/fr/typeshed/stdlib/microbit/__init__.pyi index 62cb269..515489f 100644 --- a/lang/fr/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/fr/typeshed/stdlib/microbit/__init__.pyi @@ -57,7 +57,7 @@ def reset() -> None: @overload def scale(value: float, from_: Tuple[float, float], to: Tuple[int, int]) -> int: - """Convertit une valeur dans intervalle donné vers son équivalent dans un autre intervalle d'entiers. (Mise à l'échelle) + """Convertit une valeur dans l'intervalle donné vers son équivalent dans un autre intervalle d'entiers. Example: ``volume = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255))`` @@ -70,13 +70,13 @@ floating point number. temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) :param value: Un nombre à convertir. -:param from_: (de) Un tuple qui définit l'intervalle de départ. -:param to: (vers) Un tuple qui définit l'intervalle d'arrivée. +:param from_: Un tuple qui définit l'intervalle de départ. +:param to: Un tuple qui définit l'intervalle d'arrivée. :return: The ``value`` converted to the ``to`` range.""" @overload def scale(value: float, from_: Tuple[float, float], to: Tuple[float, float]) -> float: - """Convertit une valeur dans intervalle donné vers son équivalent dans un autre intervalle de nombres à virgule flottante. (Mise à l'échelle) + """Convertit une valeur dans l'intervalle donné vers son équivalent dans un autre intervalle de nombres à virgule flottante. Example: ``temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0))`` @@ -90,8 +90,8 @@ If they are both integers (i.e ``10``), it will return an integer:: returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) :param value: Un nombre à convertir. -:param from_: (de) Un tuple qui définit l'intervalle de départ. -:param to: (vers) Un tuple qui définit l'intervalle d'arrivée. +:param from_: Un tuple qui définit l'intervalle de départ. +:param to: Un tuple qui définit l'intervalle d'arrivée. :return: The ``value`` converted to the ``to`` range.""" def sleep(n: float) -> None: @@ -459,7 +459,7 @@ Given an image object it's possible to display it via the ``display`` API:: SNAKE: Image """Image de serpent.""" SCISSORS: Image - """Image de ciseaux. (ciseaux)""" + """Image de ciseaux.""" ALL_CLOCKS: List[Image] """Une liste contenant toutes les images CLOCK_ en séquence.""" ALL_ARROWS: List[Image] diff --git a/lang/fr/typeshed/stdlib/microbit/accelerometer.pyi b/lang/fr/typeshed/stdlib/microbit/accelerometer.pyi index e4e399d..f9f069b 100644 --- a/lang/fr/typeshed/stdlib/microbit/accelerometer.pyi +++ b/lang/fr/typeshed/stdlib/microbit/accelerometer.pyi @@ -34,7 +34,7 @@ Example: ``x, y, z = accelerometer.get_values()`` ... def get_strength() -> int: - """Obtenir la mesure de l'accélération de tous les axes combinés, sous la forme d'un nombre entier positif. C'est la somme pythagoricienne des axes X, Y et Z. (obtenir la force) + """Obtenir la mesure de l'accélération de tous les axes combinés, sous la forme d'un nombre entier positif. C'est la somme pythagoricienne des axes X, Y et Z. Example: ``accelerometer.get_strength()`` @@ -96,8 +96,8 @@ gestures can be detected using a loop with a small :func:`microbit.sleep` delay. ... def set_range(value: int) -> None: - """Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g. + """Définir la plage de sensibilité de l'accéléromètre, en g (gravité standard), à la valeur la plus proche supportée par le matériel, l'arrondi se fait soit à ``2``, ``4``, ou ``8`` g. Example: ``accelerometer.set_range(8)`` -:param value: New range for the accelerometer, an integer in ``g``.""" \ No newline at end of file +:param value: Nouvelle plage pour l'accéléromètre, un entier en ``g``.""" \ No newline at end of file diff --git a/lang/fr/typeshed/stdlib/microbit/audio.pyi b/lang/fr/typeshed/stdlib/microbit/audio.pyi index e8339dd..4c814a3 100644 --- a/lang/fr/typeshed/stdlib/microbit/audio.pyi +++ b/lang/fr/typeshed/stdlib/microbit/audio.pyi @@ -3,11 +3,11 @@ from ..microbit import MicroBitDigitalPin, Sound, pin0 from typing import ClassVar, Iterable, Union def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: - """Play a built-in sound, sound effect or custom audio frames. + """Jouer un son intégré, un effet sonore ou des frames audio personnalisées. Example: ``audio.play(Sound.GIGGLE)`` -:param source: A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects. +:param source: Un ``Sound`` intégré tel que ``Sound.GIGGLE``, un ``SoundEffect`` ou un échantillon de données sous la forme d'un itérable d'objets ``AudioFrame``. :param wait: Si ``wait`` est ``True``, cette fonction bloquera jusqu'à ce que le son soit terminé. :param pin: (broche) Un argument optionnel pour spécifier la broche de sortie, peut être utilisé pour remplacer la valeur par défaut ``pin0``. Si nous ne voulons pas que le son soit joué, il est possible d'utiliser ``pin=None``. :param return_pin: Spécifie une broche de connecteur de bord différentiel à connecter à un haut-parleur externe au lieu de la masse. Ceci est ignoré dans la révision **V2**.""" @@ -27,50 +27,50 @@ Example: ``audio.stop()``""" ... class SoundEffect: - """A sound effect, composed by a set of parameters configured via the constructor or attributes.""" + """Un effet sonore, composé d'un ensemble de paramètres configurés via le constructeur ou les attributs.""" WAVEFORM_SINE: ClassVar[int] - """Sine wave option used for the ``waveform`` parameter.""" + """Option d'onde sinusoïdale utilisée pour le paramètre ``waveform``.""" WAVEFORM_SAWTOOTH: ClassVar[int] - """Sawtooth wave option used for the ``waveform`` parameter.""" + """Optionde forme d'onde en dent de scie utilisée pour le paramètre ``waveform``.""" WAVEFORM_TRIANGLE: ClassVar[int] - """Triangle wave option used for the ``waveform`` parameter.""" + """Option d'onde triangulaire utilisée pour le paramètre ``waveform``.""" WAVEFORM_SQUARE: ClassVar[int] - """Square wave option used for the ``waveform`` parameter.""" + """Option d'onde carrée utilisée pour le paramètre ``waveform``.""" WAVEFORM_NOISE: ClassVar[int] - """Noise option used for the ``waveform`` parameter.""" + """Option d'onde de bruit utilisée pour le paramètre ``waveform``.""" SHAPE_LINEAR: ClassVar[int] - """Linear interpolation option used for the ``shape`` parameter.""" + """Option d'interpolation linéaire utilisée pour le paramètre ``shape``.""" SHAPE_CURVE: ClassVar[int] - """Curve interpolation option used for the ``shape`` parameter.""" + """Option d'interpolation courbe utilisée pour le paramètre ``shape``.""" SHAPE_LOG: ClassVar[int] - """Logarithmic interpolation option used for the ``shape`` parameter.""" + """Option d'interpolation logarithmique utilisée pour le paramètre ``shape``.""" FX_NONE: ClassVar[int] - """No effect option used for the ``fx`` parameter.""" + """Option sans effet utilisée pour le paramètre ``fx``.""" FX_TREMOLO: ClassVar[int] - """Tremelo effect option used for the ``fx`` parameter.""" + """Option d'effet tremolo utilisée pour le paramètre ``fx``.""" FX_VIBRATO: ClassVar[int] - """Vibrato effect option used for the ``fx`` parameter.""" + """Option d'effet vibrato utilisée pour le paramètre ``fx``.""" FX_WARBLE: ClassVar[int] - """Warble effect option used for the ``fx`` parameter.""" + """Option d'effet de Warble utilisée pour le paramètre ``fx``.""" freq_start: int - """Start frequency in Hertz (Hz), a number between ``0`` and ``9999``""" + """Fréquence de départ en Hertz (Hz), un nombre compris entre ``0`` et ``9999``""" freq_end: int - """End frequency in Hertz (Hz), a number between ``0`` and ``9999``""" + """Fréquence de fin en Hertz (Hz), un nombre compris entre ``0`` et ``9999``""" duration: int - """Duration of the sound in milliseconds, a number between ``0`` and ``9999``""" + """Durée du son en millisecondes, un nombre compris entre ``0`` et ``9999``""" vol_start: int - """Start volume value, a number between ``0`` and ``255``""" + """Valeur du volume de départ, un nombre compris entre ``0`` et ``255``""" vol_end: int - """End volume value, a number between ``0`` and ``255``""" + """Valeur du volume à la fin, un nombre compris entre ``0`` et ``255``""" waveform: int - """Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)""" + """Type de forme d'onde, une de ces valeurs : ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (bruit généré aléatoirement)""" fx: int - """Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``""" + """Effet à ajouter au son, l'une des valeurs suivantes : ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, ou ``FX_NONE``""" shape: int - """The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``""" + """Le type de la courbe d'interpolation entre les fréquences de début et de fin, les différentes formes d'onde ont des taux de variation de fréquence différents. L'une des valeurs suivantes : ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``""" def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): - """Create a new sound effect. + """Créer un nouvel effet sonore. Example: ``my_effect = SoundEffect(duration=1000)`` @@ -79,17 +79,17 @@ they can all be modified via attributes of the same name. For example, we can first create an effect ``my_effect = SoundEffect(duration=1000)``, and then change its attributes ``my_effect.duration = 500``. -:param freq_start: Start frequency in Hertz (Hz), a number between ``0`` and ``9999``. -:param freq_end: End frequency in Hertz (Hz), a number between ``0`` and ``9999``. -:param duration: Duration of the sound in milliseconds, a number between ``0`` and ``9999``. -:param vol_start: Start volume value, a number between ``0`` and ``255``. -:param vol_end: End volume value, a number between ``0`` and ``255``. -:param waveform: Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise). -:param fx: Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``. -:param shape: The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" +:param freq_start: Fréquence de départ en Hertz (Hz), un nombre compris entre ``0`` et ``9999``. +:param freq_end: Fréquence de fin en Hertz (Hz), un nombre compris entre ``0`` et ``9999``. +:param duration: Durée du son en millisecondes, un nombre compris entre ``0`` et ``9999``. +:param vol_start: Valeur du volume de départ, un nombre compris entre ``0`` et ``255``. +:param vol_end: Valeur du volume à la fin, un nombre compris entre ``0`` et ``255``. +:param waveform: Type de forme d'onde, une de ces valeurs : ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (bruit généré aléatoirement). +:param fx: Effet à ajouter au son, l'une des valeurs suivantes : ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, ou ``FX_NONE``. +:param shape: Le type de la courbe d'interpolation entre les fréquences de début et de fin, les différentes formes d'onde ont des taux de variation de fréquence différents. L'une des valeurs suivantes : ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" def copy(self) -> SoundEffect: - """Create a copy of this ``SoundEffect``. + """Créer une copie de ce ``SoundEffect``. Example: ``sound_2 = sound_1.copy()`` @@ -108,11 +108,11 @@ Example:: frame[i] = 252 - i * 8""" def copyfrom(self, other: AudioFrame) -> None: - """Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance. + """Écraser les données de ce ``AudioFrame`` avec les données d'une autre instance ``AudioFrame``. Example: ``my_frame.copyfrom(source_frame)`` -:param other: ``AudioFrame`` instance from which to copy the data.""" +:param other: Instance ``AudioFrame`` à partir de laquelle copier les données.""" def __len__(self) -> int: ... From f31a4177b7d822cb177205af88c01d34ece75c9b Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:19:21 +0000 Subject: [PATCH 05/15] NeoPixel fill is not on V1 (#94) Closes https://github.com/microbit-foundation/micropython-microbit-stubs/issues/92 --- lang/en/typeshed/stdlib/neopixel.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/en/typeshed/stdlib/neopixel.pyi b/lang/en/typeshed/stdlib/neopixel.pyi index 3bfe076..2d5a749 100644 --- a/lang/en/typeshed/stdlib/neopixel.pyi +++ b/lang/en/typeshed/stdlib/neopixel.pyi @@ -50,7 +50,7 @@ class NeoPixel: """ ... def fill(self, colour: Tuple[int, ...]) -> None: - """Colour all pixels a given RGB/RGBW value. + """Colour all pixels a given RGB/RGBW value (micro:bit V2 only). Example: ``np.fill((0, 0, 255))`` From bcff7705dbb59f88050118ff2da05d9354f03b92 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:25:48 +0000 Subject: [PATCH 06/15] Typos/misspellings (#93) Closes https://github.com/microbit-foundation/python-editor-v3/issues/1125 Closes https://github.com/microbit-foundation/python-editor-v3/issues/1119 Closes https://github.com/microbit-foundation/micropython-microbit-stubs/issues/90 Closes https://github.com/microbit-foundation/micropython-microbit-stubs/issues/89 --- lang/en/typeshed/stdlib/math.pyi | 2 +- lang/en/typeshed/stdlib/microbit/__init__.pyi | 2 +- lang/en/typeshed/stdlib/microbit/audio.pyi | 2 +- lang/en/typeshed/stdlib/microbit/i2c.pyi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/en/typeshed/stdlib/math.pyi b/lang/en/typeshed/stdlib/math.pyi index 978aa21..f82d4de 100644 --- a/lang/en/typeshed/stdlib/math.pyi +++ b/lang/en/typeshed/stdlib/math.pyi @@ -159,7 +159,7 @@ def isinf(x: float) -> bool: ... def isnan(x: float) -> bool: - """Check is a value is not-a-number (NaN). + """Check if a value is not-a-number (NaN). Example: ``math.isnan(float('nan'))`` diff --git a/lang/en/typeshed/stdlib/microbit/__init__.pyi b/lang/en/typeshed/stdlib/microbit/__init__.pyi index 6a59d62..5e03529 100644 --- a/lang/en/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/en/typeshed/stdlib/microbit/__init__.pyi @@ -132,7 +132,7 @@ def running_time() -> int: """ def temperature() -> int: - """Get the temperature of the micro:bit in degrees Celcius.""" + """Get the temperature of the micro:bit in degrees Celsius.""" def set_volume(v: int) -> None: """Sets the volume. diff --git a/lang/en/typeshed/stdlib/microbit/audio.pyi b/lang/en/typeshed/stdlib/microbit/audio.pyi index 8e91152..3b1e327 100644 --- a/lang/en/typeshed/stdlib/microbit/audio.pyi +++ b/lang/en/typeshed/stdlib/microbit/audio.pyi @@ -66,7 +66,7 @@ class SoundEffect: """No effect option used for the ``fx`` parameter.""" FX_TREMOLO: ClassVar[int] - """Tremelo effect option used for the ``fx`` parameter.""" + """Tremolo effect option used for the ``fx`` parameter.""" FX_VIBRATO: ClassVar[int] """Vibrato effect option used for the ``fx`` parameter.""" diff --git a/lang/en/typeshed/stdlib/microbit/i2c.pyi b/lang/en/typeshed/stdlib/microbit/i2c.pyi index 471cffa..df26efa 100644 --- a/lang/en/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/en/typeshed/stdlib/microbit/i2c.pyi @@ -34,7 +34,7 @@ def scan() -> List[int]: ... def read(addr: int, n: int, repeat: bool = False) -> bytes: - """Read bytes from a device.. + """Read bytes from a device. Example: ``i2c.read(0x50, 64)`` From 8434ee187aa981718310bd81bbc2af6575ac4c9a Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:28:06 +0000 Subject: [PATCH 07/15] Translation updates (#95) --- crowdin/translated/api.ca.json | 28 ++++++------ crowdin/translated/api.es-es.json | 30 ++++++------- crowdin/translated/api.fr.json | 28 ++++++------ crowdin/translated/api.ja.json | 26 +++++------ crowdin/translated/api.ko.json | 44 +++++++++---------- crowdin/translated/api.nl.json | 34 +++++++------- crowdin/translated/api.zh-cn.json | 28 ++++++------ crowdin/translated/api.zh-tw.json | 28 ++++++------ lang/ca/typeshed/stdlib/microbit/i2c.pyi | 2 +- lang/ca/typeshed/stdlib/neopixel.pyi | 4 +- .../typeshed/stdlib/microbit/__init__.pyi | 2 +- lang/es-es/typeshed/stdlib/microbit/audio.pyi | 2 +- lang/es-es/typeshed/stdlib/neopixel.pyi | 4 +- lang/fr/typeshed/stdlib/microbit/__init__.pyi | 2 +- lang/fr/typeshed/stdlib/neopixel.pyi | 4 +- lang/ja/typeshed/stdlib/neopixel.pyi | 4 +- lang/ko/typeshed/stdlib/log.pyi | 10 ++--- lang/ko/typeshed/stdlib/microbit/audio.pyi | 2 +- lang/ko/typeshed/stdlib/microbit/i2c.pyi | 2 +- lang/ko/typeshed/stdlib/neopixel.pyi | 4 +- lang/nl/typeshed/stdlib/math.pyi | 2 +- lang/nl/typeshed/stdlib/microbit/__init__.pyi | 2 +- lang/nl/typeshed/stdlib/microbit/audio.pyi | 2 +- lang/nl/typeshed/stdlib/microbit/i2c.pyi | 2 +- lang/nl/typeshed/stdlib/neopixel.pyi | 4 +- lang/zh-cn/typeshed/stdlib/microbit/i2c.pyi | 2 +- lang/zh-cn/typeshed/stdlib/neopixel.pyi | 4 +- lang/zh-tw/typeshed/stdlib/microbit/audio.pyi | 2 +- lang/zh-tw/typeshed/stdlib/neopixel.pyi | 4 +- 29 files changed, 156 insertions(+), 156 deletions(-) diff --git a/crowdin/translated/api.ca.json b/crowdin/translated/api.ca.json index f675f3b..24e0652 100644 --- a/crowdin/translated/api.ca.json +++ b/crowdin/translated/api.ca.json @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "isnan", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { "message": "Verifica si un valor és un \"no nombre\" (NaN)", - "description": "Check is a value is not-a-number (NaN)." + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "x", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "temperatura", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { "message": "Obté la temperatura de la micro:bit en graus Celsius.", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "assigna volum", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx trémolo", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { "message": "Opció d'efecte trèmolo utilitzat pel paràmetre {{fx}}.", - "description": "Tremelo effect option used for the ``fx`` parameter." + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx vibrato", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "llegeix", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { - "message": "Llegeix bytes des d'un dispositiu..", - "description": "Read bytes from a device.." + "message": "Llegeix bytes des d'un dispositiu.", + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "addr", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "bpp", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "Bytes per píxel. Per al suport de micro:bit V2 RGBW neopixel, passa 4 en lloc de 3 per defecte per a RGB i GRB.", + "message": "Bytes per píxel. Per al suport de RGBW neopixel, passa 4 en lloc dels 3 per defecte per a RGB i GRB.", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "omple", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "Acoloreix tots els píxels amb un valor RGB/RGBW determinat.", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "Acoloreix tots els píxels amb un valor RGB/RGBW determinat (només micro:bit V2).", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "color", diff --git a/crowdin/translated/api.es-es.json b/crowdin/translated/api.es-es.json index b520749..900bd26 100644 --- a/crowdin/translated/api.es-es.json +++ b/crowdin/translated/api.es-es.json @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "esnan", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { "message": "Comprueba si un valor no es un número (NaN, not-a-number en inglés).", - "description": "Check is a value is not-a-number (NaN)." + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "x", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "temperatura", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { - "message": "Obtiene la temperatura del micro:bit en grados Celcius.", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "message": "Obtiene la temperatura del micro:bit en grados Celsius.", + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "configurar volumen", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx tremolo", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { - "message": "Tremelo effect option used for the {{fx}} parameter.", - "description": "Tremelo effect option used for the ``fx`` parameter." + "message": "Tremolo effect option used for the {{fx}} parameter.", + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx vibrato", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "leer", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { "message": "Lee bytes de un dispositivo.", - "description": "Read bytes from a device.." + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "dir", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "bpp", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "Bytes por píxel. Para compatibilidad con NeoPixel RGBW de micro:bit V2, pasa 4 en lugar del valor predeterminado 3 para RGB y GRB.", + "message": "Bytes por píxel. Para compatibilidad con NeoPixel RGBW, pasa 4 en lugar del valor predeterminado 3 para RGB y GRB.", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "llenar", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "Colorea todos los píxeles con un valor RGB/RGBW dado.", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "Colorea todos los píxeles con un valor RGB/RGBW dado (solo micro:bit V2).", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "color", diff --git a/crowdin/translated/api.fr.json b/crowdin/translated/api.fr.json index e7b7206..75499ce 100644 --- a/crowdin/translated/api.fr.json +++ b/crowdin/translated/api.fr.json @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "isnan", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { "message": "Vérifie si une valeur n'est pas un nombre (NaN).", - "description": "Check is a value is not-a-number (NaN)." + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "x", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "temperature", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { - "message": "Obtenir la température du micro:bit en degrés Celcius.", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "message": "Obtenir la température du micro:bit en degrés Celsius.", + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "set volume", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx tremolo", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { "message": "Option d'effet tremolo utilisée pour le paramètre {{fx}}.", - "description": "Tremelo effect option used for the ``fx`` parameter." + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx vibrato", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "read", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { "message": "Lire des octets depuis un périphérique.", - "description": "Read bytes from a device.." + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "addr", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "bpp", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "Octets par pixel. Pour le support du neopixel RGBW microbit V2, passez 4 plutôt que la valeur par défaut de 3 pour RGB et GRB.", + "message": "Octets par pixel. Pour le support du neopixel RGBW, passez 4 plutôt que la valeur par défaut 3 pour RGB et GRB.", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "fill", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "Colorer tous les pixels d'une valeur RGB/RGBW donnée.", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "Colorer tous les pixels d'une valeur RGB/RGBW donnée (micro:bit V2 uniquement).", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "colour", diff --git a/crowdin/translated/api.ja.json b/crowdin/translated/api.ja.json index 3c0f4ba..4da1532 100644 --- a/crowdin/translated/api.ja.json +++ b/crowdin/translated/api.ja.json @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "isnan", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { "message": "非数(NaN: Not-a-Number)かどうかを確認します。", - "description": "Check is a value is not-a-number (NaN)." + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "x", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "温度", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { "message": "micro:bitの温度を摂氏で取得します。", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "set volume", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx tremolo", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { "message": "{{fx}} パラメータに指定できる「トレモロ効果」オプション。", - "description": "Tremelo effect option used for the ``fx`` parameter." + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx vibrato", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "read", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { "message": "デバイスからバイト列を読み取ります。", - "description": "Read bytes from a device.." + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "addr", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "bpp", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "ピクセルあたりのバイト数。micro:bit V2 の RGBW ネオピクセルに対応するには、RGBやGRBのデフォルト値の3ではなく、4 を指定します。", + "message": "ピクセルあたりのバイト数。RGBW ネオピクセルに対応するには、RGBやGRBのデフォルト値の3ではなく、4 を指定します。", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "fill", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "指定した RGB/RGBW 値をすべてのピクセルに設定します。", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "指定した RGB/RGBW 値をすべてのピクセルに設定します(micro:bit V2 のみ)。", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "colour", diff --git a/crowdin/translated/api.ko.json b/crowdin/translated/api.ko.json index fb0e642..27072d8 100644 --- a/crowdin/translated/api.ko.json +++ b/crowdin/translated/api.ko.json @@ -128,11 +128,11 @@ "description": "Set up the log file header." }, "log.set_labels.param-name.*labels": { - "message": "*labels", + "message": "*레이블", "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." }, "log.set_labels.param-doc.*labels": { - "message": "Any number of positional arguments, each corresponding to an entry in the log header.", + "message": "각각 로그 헤더의 항목에 해당하는 임의의 위치 인수 수입니다.", "description": "Parameter docs" }, "log.set_labels.param-name.timestamp": { @@ -140,7 +140,7 @@ "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." }, "log.set_labels.param-doc.timestamp": { - "message": "Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} or {{None}} to disable the timestamp. The default value is {{log.SECONDS}}.", + "message": "모든 행의 첫 번째에 자동으로 삽입될 타임스탬프 단위를 선택하십시오. 타임스탬프의 값은 {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}}가 될 수 있고 비활성화하려면 {{None}}값으로 설정하십시오. 타임스탬프의 기본값은 {{log.SECONDS}}입니다.", "description": "Parameter docs" }, "log.add-1": { @@ -152,11 +152,11 @@ "description": "Add a data row to the log by passing a dictionary of headers and values." }, "log.add-1.param-name.data_dictionary": { - "message": "data dictionary", + "message": "데이터 사전", "description": "(parameter name) The data to log as a dictionary with a key for each header." }, "log.add-1.param-doc.data_dictionary": { - "message": "The data to log as a dictionary with a key for each header.", + "message": "각 헤더에 대한 키가 있는 사전으로 기록할 데이터입니다.", "description": "Parameter docs" }, "log.add-2": { @@ -180,7 +180,7 @@ "description": "(parameter name) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method." }, "log.delete.param-doc.full": { - "message": "{{True}} selects a “full” erase and {{False}} selects the “fast” erase method.", + "message": "{{True}}는 \"전체\" 지우기를 선택하고 {{False}}는 \"빠른\" 지우기 방법을 선택합니다.", "description": "Parameter docs" }, "log.set_mirroring": { @@ -188,7 +188,7 @@ "description": "(function name) Configure mirroring of the data logging activity to the serial output." }, "log.set_mirroring.summary": { - "message": "Configure mirroring of the data logging activity to the serial output.", + "message": "직렬 출력에 대한 데이터 로깅 작업 미러링을 구성합니다.", "description": "Configure mirroring of the data logging activity to the serial output." }, "log.set_mirroring.param-name.serial": { @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "isnan", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { "message": "값이 숫자가 아닌 값(NaN)인지 확인합니다.", - "description": "Check is a value is not-a-number (NaN)." + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "x", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "온도", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { "message": "섭씨로 micro:bit의 온도를 불러옵니다.", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "set volume", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx tremolo", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { - "message": "Tremelo effect option used for the {{fx}} parameter.", - "description": "Tremelo effect option used for the ``fx`` parameter." + "message": "Tremolo effect option used for the {{fx}} parameter.", + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx vibrato", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "read", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { - "message": "장치에서 바이트 값을 읽습니다..", - "description": "Read bytes from a device.." + "message": "장치에서 바이트 값을 읽습니다.", + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "addr", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "bpp", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "픽셀당 바이트입니다. micro:bit V2 RGBW 네오픽셀 지원을 위해서는 RGB 및 GRB의 기본값 3 대신 4를 패스해야 합니다.", + "message": "픽셀당 바이트입니다. RGBW 네오픽셀 지원을 위해서는 RGB 및 GRB의 기본값 3 대신 4를 패스해야 합니다.", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "fill", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "모든 픽셀에 주어진 RGB/RGBW 값을 칠합니다.", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "모든 픽셀에 주어진 RGB/RGBW 값을 칠합니다(micro:bit V2 전용).", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "colour", diff --git a/crowdin/translated/api.nl.json b/crowdin/translated/api.nl.json index 7aef9ce..a8b50d4 100644 --- a/crowdin/translated/api.nl.json +++ b/crowdin/translated/api.nl.json @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "isnan", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { - "message": "Check is een waarde is geen getal (NaN).", - "description": "Check is a value is not-a-number (NaN)." + "message": "Check if is een waarde is geen getal (NaN).", + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "х", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "temperatuur", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { - "message": "Krijg de temperatuur van de micro:bit in graden Celcius.", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "message": "Krijg de temperatuur van de micro:bit in graden Celsius.", + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "stel volume in", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx tremolo", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { - "message": "Tremelo effect optie die wordt gebruikt voor de {{fx}} parameter.", - "description": "Tremelo effect option used for the ``fx`` parameter." + "message": "Tremolo effect optie die wordt gebruikt voor de {{fx}} parameter.", + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx vibrato", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "lezen", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { - "message": "Lees bytes van een apparaat..", - "description": "Read bytes from a device.." + "message": "Lees bytes van een apparaat.", + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "addr", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "bpp", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "Bytes per pixel. Voor micro:bit V2 RGBW neopixel ondersteuning, geef 4 door in plaats van de standaard 3 voor RGB en GRB.", + "message": "Bytes per pixel. Voor ondersteuning van RGBW neopixels geeft je 4 aan in plaats van de standaardwaarde van 3 voor RGB en GRB.", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "opvullen", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "Kleur alle pixels een bepaalde RGB/RGBW waarde.", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "Kleur alle pixels een bepaalde RGB/RGBW waarde (alleen micro:bit V2).", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "kleur", diff --git a/crowdin/translated/api.zh-cn.json b/crowdin/translated/api.zh-cn.json index d6613b6..fc5b474 100644 --- a/crowdin/translated/api.zh-cn.json +++ b/crowdin/translated/api.zh-cn.json @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "不是数字", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { "message": "检查一个值是否不是一个数字 (NaN)。", - "description": "Check is a value is not-a-number (NaN)." + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "x", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "temperature", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { "message": "以摄氏度为单位获取 micro:bit 的温度。", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "set volume", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx 音量颤音", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { "message": "用于 {{fx}} 参数的音量颤音效果选项。", - "description": "Tremelo effect option used for the ``fx`` parameter." + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx 音高颤音", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "读取", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { - "message": "从设备读取字节..", - "description": "Read bytes from a device.." + "message": "从设备读取字节.", + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "地址", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "每像素字节数", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "每个像素的字节数。对于 RGB 和 GRB 而言,只有将该值设置为 4 而不是默认值 3,micro:bit V2 RGBW neopixel 才能支持。", + "message": "每个像素的字节数。对于 RGB 和 GRB 而言,只有将该值设置为 4 而不是默认值 3,RGBW neopixel 才能支持。", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "填充", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "\n用给定的 RGB/RGBW 值为所有像素着色。", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "\n用给定的 RGB/RGBW 值为所有像素着色(仅限 micro:bit V2)。", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "颜色", diff --git a/crowdin/translated/api.zh-tw.json b/crowdin/translated/api.zh-tw.json index 7e7b26e..e4da482 100644 --- a/crowdin/translated/api.zh-tw.json +++ b/crowdin/translated/api.zh-tw.json @@ -633,11 +633,11 @@ }, "math.isnan": { "message": "isnan", - "description": "(function name) Check is a value is not-a-number (NaN)." + "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { "message": "檢查值是否為非數字 (NaN)。", - "description": "Check is a value is not-a-number (NaN)." + "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { "message": "x", @@ -1009,11 +1009,11 @@ }, "microbit.temperature": { "message": "溫度", - "description": "(function name) Get the temperature of the micro:bit in degrees Celcius." + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." }, "microbit.temperature.summary": { "message": "取得 micro:bit 的溫度 (以攝氏為單位)。", - "description": "Get the temperature of the micro:bit in degrees Celcius." + "description": "Get the temperature of the micro:bit in degrees Celsius." }, "microbit.set_volume": { "message": "set volume", @@ -2705,11 +2705,11 @@ }, "microbit.audio.SoundEffect.FX_TREMOLO": { "message": "fx tremolo", - "description": "(field name) Tremelo effect option used for the ``fx`` parameter." + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { - "message": "Tremelo effect option used for the {{fx}} parameter.", - "description": "Tremelo effect option used for the ``fx`` parameter." + "message": "Tremolo effect option used for the {{fx}} parameter.", + "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { "message": "fx vibrato", @@ -3217,11 +3217,11 @@ }, "microbit.i2c.read": { "message": "read", - "description": "(function name) Read bytes from a device.." + "description": "(function name) Read bytes from a device." }, "microbit.i2c.read.summary": { "message": "從裝置讀取位元組。", - "description": "Read bytes from a device.." + "description": "Read bytes from a device." }, "microbit.i2c.read.param-name.addr": { "message": "addr", @@ -4113,10 +4113,10 @@ }, "neopixel.NeoPixel.__init__.param-name.bpp": { "message": "bpp", - "description": "(parameter name) Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "各像素位元組數。對於 micro:bit V2 RGBW neopixel 支援,傳遞 4 而不是 RGB 和 GRB 的預設值 3。", + "message": "各像素位元組數。對於 RGBW neopixel 支援,傳遞 4 而不是 RGB 和 GRB 的預設值 3。", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { @@ -4161,11 +4161,11 @@ }, "neopixel.NeoPixel.fill": { "message": "fill", - "description": "(function name) Colour all pixels a given RGB/RGBW value." + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "用特定 RGB/RGBW 值為所有像素著色。", - "description": "Colour all pixels a given RGB/RGBW value." + "message": "用特定 RGB/RGBW 值為所有像素著色 (僅限 micro:bit V2)。", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { "message": "colour", diff --git a/lang/ca/typeshed/stdlib/microbit/i2c.pyi b/lang/ca/typeshed/stdlib/microbit/i2c.pyi index 2f5d36f..6f4ca40 100644 --- a/lang/ca/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/ca/typeshed/stdlib/microbit/i2c.pyi @@ -28,7 +28,7 @@ Example: ``i2c.scan()`` ... def read(addr: int, n: int, repeat: bool=False) -> bytes: - """Llegeix bytes des d'un dispositiu.. (llegeix) + """Llegeix bytes des d'un dispositiu. (llegeix) Example: ``i2c.read(0x50, 64)`` diff --git a/lang/ca/typeshed/stdlib/neopixel.pyi b/lang/ca/typeshed/stdlib/neopixel.pyi index e8095c9..c5ec33b 100644 --- a/lang/ca/typeshed/stdlib/neopixel.pyi +++ b/lang/ca/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """Acoloreix tots els píxels amb un valor RGB/RGBW determinat. (omple) + """Acoloreix tots els píxels amb un valor RGB/RGBW determinat (només micro:bit V2). (omple) Example: ``np.fill((0, 0, 255))`` diff --git a/lang/es-es/typeshed/stdlib/microbit/__init__.pyi b/lang/es-es/typeshed/stdlib/microbit/__init__.pyi index f4e7296..48dbb14 100644 --- a/lang/es-es/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/__init__.pyi @@ -113,7 +113,7 @@ def running_time() -> int: :return: The number of milliseconds since the board was switched on or restarted.""" def temperature() -> int: - """Obtiene la temperatura del micro:bit en grados Celcius. (temperatura)""" + """Obtiene la temperatura del micro:bit en grados Celsius. (temperatura)""" def set_volume(v: int) -> None: """Establece el volumen. (configurar volumen) diff --git a/lang/es-es/typeshed/stdlib/microbit/audio.pyi b/lang/es-es/typeshed/stdlib/microbit/audio.pyi index 6691d81..6eee826 100644 --- a/lang/es-es/typeshed/stdlib/microbit/audio.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/audio.pyi @@ -47,7 +47,7 @@ class SoundEffect: FX_NONE: ClassVar[int] """No effect option used for the ``fx`` parameter.""" FX_TREMOLO: ClassVar[int] - """Tremelo effect option used for the ``fx`` parameter.""" + """Tremolo effect option used for the ``fx`` parameter.""" FX_VIBRATO: ClassVar[int] """Vibrato effect option used for the ``fx`` parameter.""" FX_WARBLE: ClassVar[int] diff --git a/lang/es-es/typeshed/stdlib/neopixel.pyi b/lang/es-es/typeshed/stdlib/neopixel.pyi index 6107f42..42555b0 100644 --- a/lang/es-es/typeshed/stdlib/neopixel.pyi +++ b/lang/es-es/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """Colorea todos los píxeles con un valor RGB/RGBW dado. (llenar) + """Colorea todos los píxeles con un valor RGB/RGBW dado (solo micro:bit V2). (llenar) Example: ``np.fill((0, 0, 255))`` diff --git a/lang/fr/typeshed/stdlib/microbit/__init__.pyi b/lang/fr/typeshed/stdlib/microbit/__init__.pyi index 515489f..90bf6e6 100644 --- a/lang/fr/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/fr/typeshed/stdlib/microbit/__init__.pyi @@ -113,7 +113,7 @@ def running_time() -> int: :return: The number of milliseconds since the board was switched on or restarted.""" def temperature() -> int: - """Obtenir la température du micro:bit en degrés Celcius.""" + """Obtenir la température du micro:bit en degrés Celsius.""" def set_volume(v: int) -> None: """Définit le volume. diff --git a/lang/fr/typeshed/stdlib/neopixel.pyi b/lang/fr/typeshed/stdlib/neopixel.pyi index b7173a8..cbe90e5 100644 --- a/lang/fr/typeshed/stdlib/neopixel.pyi +++ b/lang/fr/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """Colorer tous les pixels d'une valeur RGB/RGBW donnée. + """Colorer tous les pixels d'une valeur RGB/RGBW donnée (micro:bit V2 uniquement). Example: ``np.fill((0, 0, 255))`` diff --git a/lang/ja/typeshed/stdlib/neopixel.pyi b/lang/ja/typeshed/stdlib/neopixel.pyi index 9cc47bd..8dadfad 100644 --- a/lang/ja/typeshed/stdlib/neopixel.pyi +++ b/lang/ja/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """指定した RGB/RGBW 値をすべてのピクセルに設定します。 + """指定した RGB/RGBW 値をすべてのピクセルに設定します(micro:bit V2 のみ)。 Example: ``np.fill((0, 0, 255))`` diff --git a/lang/ko/typeshed/stdlib/log.pyi b/lang/ko/typeshed/stdlib/log.pyi index 81d6ffb..0a47d8b 100644 --- a/lang/ko/typeshed/stdlib/log.pyi +++ b/lang/ko/typeshed/stdlib/log.pyi @@ -27,8 +27,8 @@ present, it will generate a new header row with the additional columns. By default the first column contains a timestamp for each row. The time unit can be selected via the timestamp argument. -:param *labels: Any number of positional arguments, each corresponding to an entry in the log header. -:param timestamp: (타임스탬프) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``.""" +:param *labels: (*레이블) 각각 로그 헤더의 항목에 해당하는 임의의 위치 인수 수입니다. +:param timestamp: (타임스탬프) 모든 행의 첫 번째에 자동으로 삽입될 타임스탬프 단위를 선택하십시오. 타임스탬프의 값은 ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS``가 될 수 있고 비활성화하려면 ``None``값으로 설정하십시오. 타임스탬프의 기본값은 ``log.SECONDS``입니다.""" ... @overload @@ -46,7 +46,7 @@ to the log with the extra labels. Labels previously specified and not present in a call to this function will be skipped with an empty value in the log row. -:param data_dictionary: The data to log as a dictionary with a key for each header.""" +:param data_dictionary: (데이터 사전) 각 헤더에 대한 키가 있는 사전으로 기록할 데이터입니다.""" ... @overload @@ -75,11 +75,11 @@ To add the log headers again the ``set_labels`` function should to be called aft There are two erase modes; “full” completely removes the data from the physical storage, and “fast” invalidates the data without removing it. -:param full: ``True`` selects a “full” erase and ``False`` selects the “fast” erase method.""" +:param full: ``True``는 "전체" 지우기를 선택하고 ``False``는 "빠른" 지우기 방법을 선택합니다.""" ... def set_mirroring(serial: bool): - """Configure mirroring of the data logging activity to the serial output. + """직렬 출력에 대한 데이터 로깅 작업 미러링을 구성합니다. Example: ``log.set_mirroring(True)`` diff --git a/lang/ko/typeshed/stdlib/microbit/audio.pyi b/lang/ko/typeshed/stdlib/microbit/audio.pyi index 3049ec4..e14bf7e 100644 --- a/lang/ko/typeshed/stdlib/microbit/audio.pyi +++ b/lang/ko/typeshed/stdlib/microbit/audio.pyi @@ -47,7 +47,7 @@ class SoundEffect: FX_NONE: ClassVar[int] """No effect option used for the ``fx`` parameter.""" FX_TREMOLO: ClassVar[int] - """Tremelo effect option used for the ``fx`` parameter.""" + """Tremolo effect option used for the ``fx`` parameter.""" FX_VIBRATO: ClassVar[int] """Vibrato effect option used for the ``fx`` parameter.""" FX_WARBLE: ClassVar[int] diff --git a/lang/ko/typeshed/stdlib/microbit/i2c.pyi b/lang/ko/typeshed/stdlib/microbit/i2c.pyi index cbb821c..4fa2d4c 100644 --- a/lang/ko/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/ko/typeshed/stdlib/microbit/i2c.pyi @@ -28,7 +28,7 @@ Example: ``i2c.scan()`` ... def read(addr: int, n: int, repeat: bool=False) -> bytes: - """장치에서 바이트 값을 읽습니다.. + """장치에서 바이트 값을 읽습니다. Example: ``i2c.read(0x50, 64)`` diff --git a/lang/ko/typeshed/stdlib/neopixel.pyi b/lang/ko/typeshed/stdlib/neopixel.pyi index 7a28570..275839b 100644 --- a/lang/ko/typeshed/stdlib/neopixel.pyi +++ b/lang/ko/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """모든 픽셀에 주어진 RGB/RGBW 값을 칠합니다. + """모든 픽셀에 주어진 RGB/RGBW 값을 칠합니다(micro:bit V2 전용). Example: ``np.fill((0, 0, 255))`` diff --git a/lang/nl/typeshed/stdlib/math.pyi b/lang/nl/typeshed/stdlib/math.pyi index f3eba9f..38397fc 100644 --- a/lang/nl/typeshed/stdlib/math.pyi +++ b/lang/nl/typeshed/stdlib/math.pyi @@ -143,7 +143,7 @@ Example: ``math.isinf(float('-inf'))`` ... def isnan(x: float) -> bool: - """Check is een waarde is geen getal (NaN). + """Check if is een waarde is geen getal (NaN). Example: ``math.isnan(float('nan'))`` diff --git a/lang/nl/typeshed/stdlib/microbit/__init__.pyi b/lang/nl/typeshed/stdlib/microbit/__init__.pyi index 16d24f8..aa650d8 100644 --- a/lang/nl/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/nl/typeshed/stdlib/microbit/__init__.pyi @@ -113,7 +113,7 @@ def running_time() -> int: :return: The number of milliseconds since the board was switched on or restarted.""" def temperature() -> int: - """Krijg de temperatuur van de micro:bit in graden Celcius. (temperatuur)""" + """Krijg de temperatuur van de micro:bit in graden Celsius. (temperatuur)""" def set_volume(v: int) -> None: """Stelt het volume in. (stel volume in) diff --git a/lang/nl/typeshed/stdlib/microbit/audio.pyi b/lang/nl/typeshed/stdlib/microbit/audio.pyi index 4a2444d..ee2c412 100644 --- a/lang/nl/typeshed/stdlib/microbit/audio.pyi +++ b/lang/nl/typeshed/stdlib/microbit/audio.pyi @@ -47,7 +47,7 @@ class SoundEffect: FX_NONE: ClassVar[int] """Geen effectoptie gebruikt voor de ``fx`` parameter. (geen fx)""" FX_TREMOLO: ClassVar[int] - """Tremelo effect optie die wordt gebruikt voor de ``fx`` parameter.""" + """Tremolo effect optie die wordt gebruikt voor de ``fx`` parameter.""" FX_VIBRATO: ClassVar[int] """Vibrato effect optie die wordt gebruikt voor de ``fx`` parameter.""" FX_WARBLE: ClassVar[int] diff --git a/lang/nl/typeshed/stdlib/microbit/i2c.pyi b/lang/nl/typeshed/stdlib/microbit/i2c.pyi index 865c216..b3654a5 100644 --- a/lang/nl/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/nl/typeshed/stdlib/microbit/i2c.pyi @@ -28,7 +28,7 @@ Example: ``i2c.scan()`` ... def read(addr: int, n: int, repeat: bool=False) -> bytes: - """Lees bytes van een apparaat.. (lezen) + """Lees bytes van een apparaat. (lezen) Example: ``i2c.read(0x50, 64)`` diff --git a/lang/nl/typeshed/stdlib/neopixel.pyi b/lang/nl/typeshed/stdlib/neopixel.pyi index fd02f1d..93183ed 100644 --- a/lang/nl/typeshed/stdlib/neopixel.pyi +++ b/lang/nl/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """Kleur alle pixels een bepaalde RGB/RGBW waarde. (opvullen) + """Kleur alle pixels een bepaalde RGB/RGBW waarde (alleen micro:bit V2). (opvullen) Example: ``np.fill((0, 0, 255))`` diff --git a/lang/zh-cn/typeshed/stdlib/microbit/i2c.pyi b/lang/zh-cn/typeshed/stdlib/microbit/i2c.pyi index e1123c3..5ad7530 100644 --- a/lang/zh-cn/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/zh-cn/typeshed/stdlib/microbit/i2c.pyi @@ -28,7 +28,7 @@ Example: ``i2c.scan()`` ... def read(addr: int, n: int, repeat: bool=False) -> bytes: - """从设备读取字节.. (读取) + """从设备读取字节. (读取) Example: ``i2c.read(0x50, 64)`` diff --git a/lang/zh-cn/typeshed/stdlib/neopixel.pyi b/lang/zh-cn/typeshed/stdlib/neopixel.pyi index e4fbdf7..6d53501 100644 --- a/lang/zh-cn/typeshed/stdlib/neopixel.pyi +++ b/lang/zh-cn/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """用给定的 RGB/RGBW 值为所有像素着色。 (填充) + """用给定的 RGB/RGBW 值为所有像素着色(仅限 micro:bit V2)。 (填充) Example: ``np.fill((0, 0, 255))`` diff --git a/lang/zh-tw/typeshed/stdlib/microbit/audio.pyi b/lang/zh-tw/typeshed/stdlib/microbit/audio.pyi index 24bcbfd..aa56a2c 100644 --- a/lang/zh-tw/typeshed/stdlib/microbit/audio.pyi +++ b/lang/zh-tw/typeshed/stdlib/microbit/audio.pyi @@ -47,7 +47,7 @@ class SoundEffect: FX_NONE: ClassVar[int] """No effect option used for the ``fx`` parameter.""" FX_TREMOLO: ClassVar[int] - """Tremelo effect option used for the ``fx`` parameter.""" + """Tremolo effect option used for the ``fx`` parameter.""" FX_VIBRATO: ClassVar[int] """Vibrato effect option used for the ``fx`` parameter.""" FX_WARBLE: ClassVar[int] diff --git a/lang/zh-tw/typeshed/stdlib/neopixel.pyi b/lang/zh-tw/typeshed/stdlib/neopixel.pyi index be4eda1..45b5b35 100644 --- a/lang/zh-tw/typeshed/stdlib/neopixel.pyi +++ b/lang/zh-tw/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """用特定 RGB/RGBW 值為所有像素著色。 + """用特定 RGB/RGBW 值為所有像素著色 (僅限 micro:bit V2)。 Example: ``np.fill((0, 0, 255))`` From daa5d2cd0a41684d15b8c5fc3d76113c75ad5f3d Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:03:22 +0000 Subject: [PATCH 08/15] Preview of German and misc updates (#96) --- crowdin/translated/api.ca.json | 2 +- crowdin/translated/api.de.json | 5258 +++++++++++++++++ crowdin/translated/api.es-es.json | 190 +- crowdin/translated/api.ja.json | 12 +- lang/ca/typeshed/stdlib/neopixel.pyi | 2 +- lang/de/typeshed/stdlib/VERSIONS | 50 + .../de/typeshed/stdlib/_typeshed/__init__.pyi | 168 + lang/de/typeshed/stdlib/abc.pyi | 28 + lang/de/typeshed/stdlib/antigravity.pyi | 0 lang/de/typeshed/stdlib/array.pyi | 42 + lang/de/typeshed/stdlib/audio.pyi | 11 + lang/de/typeshed/stdlib/builtins.pyi | 1334 +++++ .../typeshed/stdlib/collections/__init__.pyi | 60 + lang/de/typeshed/stdlib/errno.pyi | 26 + lang/de/typeshed/stdlib/gc.pyi | 68 + lang/de/typeshed/stdlib/log.pyi | 89 + lang/de/typeshed/stdlib/love.pyi | 1 + lang/de/typeshed/stdlib/machine.pyi | 84 + lang/de/typeshed/stdlib/math.pyi | 246 + lang/de/typeshed/stdlib/microbit/__init__.pyi | 706 +++ .../stdlib/microbit/accelerometer.pyi | 103 + lang/de/typeshed/stdlib/microbit/audio.pyi | 124 + lang/de/typeshed/stdlib/microbit/compass.pyi | 70 + lang/de/typeshed/stdlib/microbit/display.pyi | 92 + lang/de/typeshed/stdlib/microbit/i2c.pyi | 49 + .../typeshed/stdlib/microbit/microphone.pyi | 62 + lang/de/typeshed/stdlib/microbit/speaker.pyi | 15 + lang/de/typeshed/stdlib/microbit/spi.pyi | 46 + lang/de/typeshed/stdlib/microbit/uart.pyi | 79 + lang/de/typeshed/stdlib/micropython.pyi | 131 + lang/de/typeshed/stdlib/music.pyi | 128 + lang/de/typeshed/stdlib/neopixel.pyi | 81 + lang/de/typeshed/stdlib/os.pyi | 63 + lang/de/typeshed/stdlib/power.pyi | 53 + lang/de/typeshed/stdlib/radio.pyi | 126 + lang/de/typeshed/stdlib/random.pyi | 80 + lang/de/typeshed/stdlib/speech.pyi | 76 + lang/de/typeshed/stdlib/struct.pyi | 56 + lang/de/typeshed/stdlib/sys.pyi | 93 + lang/de/typeshed/stdlib/this.pyi | 1 + lang/de/typeshed/stdlib/time.pyi | 111 + lang/de/typeshed/stdlib/types.pyi | 413 ++ lang/de/typeshed/stdlib/typing.pyi | 716 +++ lang/de/typeshed/stdlib/typing_extensions.pyi | 115 + lang/de/typeshed/stdlib/uarray.pyi | 1 + lang/de/typeshed/stdlib/ucollections.pyi | 1 + lang/de/typeshed/stdlib/uerrno.pyi | 1 + lang/de/typeshed/stdlib/urandom.pyi | 1 + lang/de/typeshed/stdlib/ustruct.pyi | 1 + lang/de/typeshed/stdlib/usys.pyi | 1 + lang/de/typeshed/stdlib/utime.pyi | 1 + lang/es-es/typeshed/stdlib/log.pyi | 12 +- .../typeshed/stdlib/microbit/__init__.pyi | 32 +- .../stdlib/microbit/accelerometer.pyi | 6 +- lang/es-es/typeshed/stdlib/microbit/audio.pyi | 70 +- lang/ja/typeshed/stdlib/microbit/__init__.pyi | 8 +- lang/ja/typeshed/stdlib/microbit/audio.pyi | 4 +- scripts/build-translations.sh | 2 +- 58 files changed, 11231 insertions(+), 170 deletions(-) create mode 100644 crowdin/translated/api.de.json create mode 100644 lang/de/typeshed/stdlib/VERSIONS create mode 100644 lang/de/typeshed/stdlib/_typeshed/__init__.pyi create mode 100644 lang/de/typeshed/stdlib/abc.pyi create mode 100644 lang/de/typeshed/stdlib/antigravity.pyi create mode 100644 lang/de/typeshed/stdlib/array.pyi create mode 100644 lang/de/typeshed/stdlib/audio.pyi create mode 100644 lang/de/typeshed/stdlib/builtins.pyi create mode 100644 lang/de/typeshed/stdlib/collections/__init__.pyi create mode 100644 lang/de/typeshed/stdlib/errno.pyi create mode 100644 lang/de/typeshed/stdlib/gc.pyi create mode 100644 lang/de/typeshed/stdlib/log.pyi create mode 100644 lang/de/typeshed/stdlib/love.pyi create mode 100644 lang/de/typeshed/stdlib/machine.pyi create mode 100644 lang/de/typeshed/stdlib/math.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/__init__.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/accelerometer.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/audio.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/compass.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/display.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/i2c.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/microphone.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/speaker.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/spi.pyi create mode 100644 lang/de/typeshed/stdlib/microbit/uart.pyi create mode 100644 lang/de/typeshed/stdlib/micropython.pyi create mode 100644 lang/de/typeshed/stdlib/music.pyi create mode 100644 lang/de/typeshed/stdlib/neopixel.pyi create mode 100644 lang/de/typeshed/stdlib/os.pyi create mode 100644 lang/de/typeshed/stdlib/power.pyi create mode 100644 lang/de/typeshed/stdlib/radio.pyi create mode 100644 lang/de/typeshed/stdlib/random.pyi create mode 100644 lang/de/typeshed/stdlib/speech.pyi create mode 100644 lang/de/typeshed/stdlib/struct.pyi create mode 100644 lang/de/typeshed/stdlib/sys.pyi create mode 100644 lang/de/typeshed/stdlib/this.pyi create mode 100644 lang/de/typeshed/stdlib/time.pyi create mode 100644 lang/de/typeshed/stdlib/types.pyi create mode 100644 lang/de/typeshed/stdlib/typing.pyi create mode 100644 lang/de/typeshed/stdlib/typing_extensions.pyi create mode 100644 lang/de/typeshed/stdlib/uarray.pyi create mode 100644 lang/de/typeshed/stdlib/ucollections.pyi create mode 100644 lang/de/typeshed/stdlib/uerrno.pyi create mode 100644 lang/de/typeshed/stdlib/urandom.pyi create mode 100644 lang/de/typeshed/stdlib/ustruct.pyi create mode 100644 lang/de/typeshed/stdlib/usys.pyi create mode 100644 lang/de/typeshed/stdlib/utime.pyi diff --git a/crowdin/translated/api.ca.json b/crowdin/translated/api.ca.json index 24e0652..e0dbd52 100644 --- a/crowdin/translated/api.ca.json +++ b/crowdin/translated/api.ca.json @@ -4116,7 +4116,7 @@ "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "Bytes per píxel. Per al suport de RGBW neopixel, passa 4 en lloc dels 3 per defecte per a RGB i GRB.", + "message": "Bytes per píxel. Per al suport del neopixel RGBW , passa 4 en lloc dels 3 per defecte per a RGB i GRB.", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { diff --git a/crowdin/translated/api.de.json b/crowdin/translated/api.de.json new file mode 100644 index 0000000..ad2ff50 --- /dev/null +++ b/crowdin/translated/api.de.json @@ -0,0 +1,5258 @@ +{ + "gc": { + "message": "gc", + "description": "(module name) Control the garbage collector" + }, + "gc.summary": { + "message": "Steuerung des Garbage Collectors", + "description": "Control the garbage collector" + }, + "gc.enable": { + "message": "enable", + "description": "(function name) Enable automatic garbage collection." + }, + "gc.enable.summary": { + "message": "Automatische Garbage Collection aktivieren.", + "description": "Enable automatic garbage collection." + }, + "gc.disable": { + "message": "disable", + "description": "(function name) Disable automatic garbage collection." + }, + "gc.disable.summary": { + "message": "Automatische Garbage Collection deaktivieren.", + "description": "Disable automatic garbage collection." + }, + "gc.collect": { + "message": "collect", + "description": "(function name) Run a garbage collection." + }, + "gc.collect.summary": { + "message": "Garbage Collection ausführen.", + "description": "Run a garbage collection." + }, + "gc.mem_alloc": { + "message": "mem alloc", + "description": "(function name) Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_alloc.summary": { + "message": "Ermittelt die Anzahl der dem Heap-Speicher zugewiesen Bytes.", + "description": "Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_free": { + "message": "mem free", + "description": "(function name) Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.mem_free.summary": { + "message": "Gibt die Anzahl der Bytes des verfügbaren dynamischen Speichers zurück. -1 wird zurückgegeben, wenn dieser Wert unbekannt ist.", + "description": "Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.threshold-1": { + "message": "threshold", + "description": "(function name) Query the additional GC allocation threshold." + }, + "gc.threshold-1.summary": { + "message": "Den zusätzlichen GC-Zuteilungsschwellwert abfragen.", + "description": "Query the additional GC allocation threshold." + }, + "gc.threshold-2": { + "message": "threshold", + "description": "(function name) Set the additional GC allocation threshold." + }, + "gc.threshold-2.summary": { + "message": "Den zusätzlichen GC-Schwellenwert festlegen.", + "description": "Set the additional GC allocation threshold." + }, + "gc.threshold-2.param-name.amount": { + "message": "amount", + "description": "(parameter name) The number of bytes after which a garbage collection should be triggered." + }, + "gc.threshold-2.param-doc.amount": { + "message": "Die Anzahl der Bytes, nach denen eine Garbage Collection ausgelöst werden soll.", + "description": "Parameter docs" + }, + "log": { + "message": "log", + "description": "(module name) Log data to your micro:bit V2." + }, + "log.summary": { + "message": "Zeichne Daten auf deinem micro:bit V2 auf.", + "description": "Log data to your micro:bit V2." + }, + "log.MILLISECONDS": { + "message": "millisekunden", + "description": "(field name) Milliseconds timestamp format." + }, + "log.MILLISECONDS.summary": { + "message": "Millisekunden Zeitstempelformat.", + "description": "Milliseconds timestamp format." + }, + "log.SECONDS": { + "message": "sekunden", + "description": "(field name) Seconds timestamp format." + }, + "log.SECONDS.summary": { + "message": "Sekunden Zeitstempelformat.", + "description": "Seconds timestamp format." + }, + "log.MINUTES": { + "message": "minuten", + "description": "(field name) Minutes timestamp format." + }, + "log.MINUTES.summary": { + "message": "Minuten Zeitstempelformat.", + "description": "Minutes timestamp format." + }, + "log.HOURS": { + "message": "stunden", + "description": "(field name) Hours timestamp format." + }, + "log.HOURS.summary": { + "message": "Stunden Zeitstempelformat.", + "description": "Hours timestamp format." + }, + "log.DAYS": { + "message": "tage", + "description": "(field name) Days timestamp format." + }, + "log.DAYS.summary": { + "message": "Tage Zeitstempelformat.", + "description": "Days timestamp format." + }, + "log.set_labels": { + "message": "Beschriftungen festlegen", + "description": "(function name) Set up the log file header." + }, + "log.set_labels.summary": { + "message": "Den Logdatei-Header setzen ", + "description": "Set up the log file header." + }, + "log.set_labels.param-name.*labels": { + "message": "*labels", + "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." + }, + "log.set_labels.param-doc.*labels": { + "message": "Eine beliebige Anzahl von Positionsargumenten, die jeweils einem Eintrag in der Kopfzeile des Logs entsprechen.", + "description": "Parameter docs" + }, + "log.set_labels.param-name.timestamp": { + "message": "Zeitstempel", + "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." + }, + "log.set_labels.param-doc.timestamp": { + "message": "Wähle die Zeitstempel-Einheit, die automatisch als erste Spalte in jeder Zeile hinzugefügt wird. Der Zeitstempel kann einen der folgenden Werte annehmen: {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} oder {{None}}, um den Zeitstempel zu deaktivieren. Der Standardwert ist {{log.SECONDS}}.", + "description": "Parameter docs" + }, + "log.add-1": { + "message": "hinzufügen", + "description": "(function name) Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.summary": { + "message": "Füge dem Protokoll eine Datenzeile hinzu, indem du ein Dictionary mit Kopfzeileneinträgen und Werten übergibst.", + "description": "Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.param-name.data_dictionary": { + "message": "daten wörterbuch", + "description": "(parameter name) The data to log as a dictionary with a key for each header." + }, + "log.add-1.param-doc.data_dictionary": { + "message": "Die zu protokollierenden Daten in Form eines Dictionarys mit einem Schlüssel für jeden Kopfzeileneintrag.", + "description": "Parameter docs" + }, + "log.add-2": { + "message": "hinzufügen", + "description": "(function name) Add a data row to the log using keyword arguments." + }, + "log.add-2.summary": { + "message": "Füge dem Protokoll eine Datenzeile mit Schlüsselwörtern als Argumenten hinzu.", + "description": "Add a data row to the log using keyword arguments." + }, + "log.delete": { + "message": "löschen", + "description": "(function name) Deletes the contents of the log, including headers." + }, + "log.delete.summary": { + "message": "Löscht den Inhalt des Protokolls, einschließlich der Kopfzeilen.", + "description": "Deletes the contents of the log, including headers." + }, + "log.delete.param-name.full": { + "message": "vollständig", + "description": "(parameter name) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method." + }, + "log.delete.param-doc.full": { + "message": "Mit {{True}} wird ein \" vollständiges\" Löschen und mit {{False}} die \"schnelle\" Löschmethode gewählt.", + "description": "Parameter docs" + }, + "log.set_mirroring": { + "message": "spiegeln", + "description": "(function name) Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.summary": { + "message": "Richte die Spiegelung der Datenprotokollierung auf dem seriellen Ausgang ein.", + "description": "Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.param-name.serial": { + "message": "seriell", + "description": "(parameter name) ``True`` enables mirroring data to the serial output." + }, + "log.set_mirroring.param-doc.serial": { + "message": "{{True}} aktiviert die Spiegelung von Daten auf dem seriellen Ausgang.", + "description": "Parameter docs" + }, + "machine": { + "message": "maschine", + "description": "(module name) Low-level utilities." + }, + "machine.summary": { + "message": "Low-Level-Utilities.", + "description": "Low-level utilities." + }, + "machine.unique_id": { + "message": "Eindeutige ID", + "description": "(function name) Get a byte string with a unique identifier of a board." + }, + "machine.unique_id.summary": { + "message": "Liefert eine Byte-Zeichenkette mit einem eindeutigen Bezeichner für ein Board.", + "description": "Get a byte string with a unique identifier of a board." + }, + "machine.reset": { + "message": "zurücksetzen", + "description": "(function name) Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.reset.summary": { + "message": "Setzt das Gerät zurück, als würde man die externe RESET-Taste drückt.", + "description": "Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.freq": { + "message": "freq", + "description": "(function name) Get the CPU frequency in hertz." + }, + "machine.freq.summary": { + "message": "Ermittelt die Taktfrequenz der CPU in Hertz.", + "description": "Get the CPU frequency in hertz." + }, + "machine.disable_irq": { + "message": "IRQ deaktivieren", + "description": "(function name) Disable interrupt requests." + }, + "machine.disable_irq.summary": { + "message": "Deaktiviere Interrupt-Anforderungen.", + "description": "Disable interrupt requests." + }, + "machine.enable_irq": { + "message": "IRQ aktivieren", + "description": "(function name) Re-enable interrupt requests." + }, + "machine.enable_irq.summary": { + "message": "Interrupt-Anfragen wieder aktivieren.", + "description": "Re-enable interrupt requests." + }, + "machine.enable_irq.param-name.state": { + "message": "state", + "description": "(parameter name) The value that was returned from the most recent call to the ``disable_irq`` function." + }, + "machine.enable_irq.param-doc.state": { + "message": "Der Wert, der beim letzten Aufruf der Funktion {{disable_irq}} zurückgegeben wurde.", + "description": "Parameter docs" + }, + "machine.time_pulse_us": { + "message": "zeitimpuls us", + "description": "(function name) Time a pulse on a pin." + }, + "machine.time_pulse_us.summary": { + "message": "Gibt die Dauer eines Impulses an einem Pin zurück.", + "description": "Time a pulse on a pin." + }, + "machine.time_pulse_us.param-name.pin": { + "message": "pin", + "description": "(parameter name) The pin to use" + }, + "machine.time_pulse_us.param-doc.pin": { + "message": "Der zu verwendende Pin", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.pulse_level": { + "message": "pulsstufe", + "description": "(parameter name) 0 to time a low pulse or 1 to time a high pulse" + }, + "machine.time_pulse_us.param-doc.pulse_level": { + "message": "0, um einen Low-Impuls oder 1, um einen High-Impuls zu messen", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.timeout_us": { + "message": "timeout us", + "description": "(parameter name) A microsecond timeout" + }, + "machine.time_pulse_us.param-doc.timeout_us": { + "message": "Eine Verzögerung in Mikrosekunden", + "description": "Parameter docs" + }, + "machine.mem": { + "message": "mem", + "description": "(class name) The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.summary": { + "message": "Die Klasse für die {{mem8}}, {{mem16}} und {{mem32}} Speicheranzeigen.", + "description": "The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.__getitem__": { + "message": "getitem", + "description": "(function name) Access a value from memory." + }, + "machine.mem.__getitem__.summary": { + "message": "Greife auf einen Wert im Speicher zu.", + "description": "Access a value from memory." + }, + "machine.mem.__getitem__.param-name.address": { + "message": "adresse", + "description": "(parameter name) The memory address." + }, + "machine.mem.__getitem__.param-doc.address": { + "message": "Die Speicheradresse.", + "description": "Parameter docs" + }, + "machine.mem.__setitem__": { + "message": "setitem", + "description": "(function name) Set a value at the given address." + }, + "machine.mem.__setitem__.summary": { + "message": "Setzt einen Wert an der angegebenen Adresse.", + "description": "Set a value at the given address." + }, + "machine.mem.__setitem__.param-name.address": { + "message": "adresse", + "description": "(parameter name) The memory address." + }, + "machine.mem.__setitem__.param-doc.address": { + "message": "Die Speicheradresse.", + "description": "Parameter docs" + }, + "machine.mem.__setitem__.param-name.value": { + "message": "wert", + "description": "(parameter name) The integer value to set." + }, + "machine.mem.__setitem__.param-doc.value": { + "message": "Der zu setzende Integer-Wert.", + "description": "Parameter docs" + }, + "machine.mem8": { + "message": "mem8", + "description": "(field name) 8-bit (byte) view of memory." + }, + "machine.mem8.summary": { + "message": "8-Bit (Byte) Ansicht des Speichers.", + "description": "8-bit (byte) view of memory." + }, + "machine.mem16": { + "message": "mem16", + "description": "(field name) 16-bit view of memory." + }, + "machine.mem16.summary": { + "message": "16-Bit (Byte) Ansicht des Speichers.", + "description": "16-bit view of memory." + }, + "machine.mem32": { + "message": "mem32", + "description": "(field name) 32-bit view of memory." + }, + "machine.mem32.summary": { + "message": "32-Bit (Byte) Ansicht des Speichers.", + "description": "32-bit view of memory." + }, + "math": { + "message": "math", + "description": "(module name) Mathematical functions." + }, + "math.summary": { + "message": "Mathematische Funktionen.", + "description": "Mathematical functions." + }, + "math.acos": { + "message": "acos", + "description": "(function name) Calculate the inverse cosine." + }, + "math.acos.summary": { + "message": "Berechnet den Arkuskosinus.", + "description": "Calculate the inverse cosine." + }, + "math.acos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.acos.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.asin": { + "message": "asin", + "description": "(function name) Calculate the inverse sine." + }, + "math.asin.summary": { + "message": "Berechnet den Arkussinus.", + "description": "Calculate the inverse sine." + }, + "math.asin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.asin.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.atan": { + "message": "atan", + "description": "(function name) Calculate the inverse tangent." + }, + "math.atan.summary": { + "message": "Berechnet den Arkustangens.", + "description": "Calculate the inverse tangent." + }, + "math.atan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.atan2": { + "message": "atan2", + "description": "(function name) Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.summary": { + "message": "Berechnet den Hauptwert des Arkustangens von {{y/x}}.", + "description": "Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.atan2.param-name.y": { + "message": "y", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.y": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.ceil": { + "message": "ceil", + "description": "(function name) Round a number towards positive infinity." + }, + "math.ceil.summary": { + "message": "Rundet eine Zahl in Richtung positiver Unendlichkeit.", + "description": "Round a number towards positive infinity." + }, + "math.ceil.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ceil.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.copysign": { + "message": "copysign", + "description": "(function name) Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.summary": { + "message": "Berechne {{x}} mit dem Vorzeichen von {{y}}.", + "description": "Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.copysign.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.copysign.param-name.y": { + "message": "y", + "description": "(parameter name) The source of the sign for the return value" + }, + "math.copysign.param-doc.y": { + "message": "Die Herkunft des Vorzeichens für den Rückgabewert", + "description": "Parameter docs" + }, + "math.cos": { + "message": "cos", + "description": "(function name) Calculate the cosine of ``x``." + }, + "math.cos.summary": { + "message": "Berechnet den Kosinus von {{x}}.", + "description": "Calculate the cosine of ``x``." + }, + "math.cos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.cos.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.degrees": { + "message": "degrees", + "description": "(function name) Convert radians to degrees." + }, + "math.degrees.summary": { + "message": "Wandelt Bogenmaß (Radiant) in Grad um.", + "description": "Convert radians to degrees." + }, + "math.degrees.param-name.x": { + "message": "x", + "description": "(parameter name) A value in radians" + }, + "math.degrees.param-doc.x": { + "message": "Ein Wert in Radiant", + "description": "Parameter docs" + }, + "math.exp": { + "message": "exp", + "description": "(function name) Calculate the exponential of ``x``." + }, + "math.exp.summary": { + "message": "Berechnet den Exponentialwert von {{x}}.", + "description": "Calculate the exponential of ``x``." + }, + "math.exp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.exp.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.fabs": { + "message": "fabs", + "description": "(function name) Return the absolute value of ``x``." + }, + "math.fabs.summary": { + "message": "Gibt den absoluten Wert von {{x}} zurück.", + "description": "Return the absolute value of ``x``." + }, + "math.fabs.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.fabs.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.floor": { + "message": "floor", + "description": "(function name) Round a number towards negative infinity." + }, + "math.floor.summary": { + "message": "Rundet eine Zahl in Richtung negativer Unendlichkeit.", + "description": "Round a number towards negative infinity." + }, + "math.floor.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.floor.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.fmod": { + "message": "fmod", + "description": "(function name) Calculate the remainder of ``x/y``." + }, + "math.fmod.summary": { + "message": "Berechne den Rest von {{x/y}}.", + "description": "Calculate the remainder of ``x/y``." + }, + "math.fmod.param-name.x": { + "message": "x", + "description": "(parameter name) The numerator" + }, + "math.fmod.param-doc.x": { + "message": "Der Zähler", + "description": "Parameter docs" + }, + "math.fmod.param-name.y": { + "message": "y", + "description": "(parameter name) The denominator" + }, + "math.fmod.param-doc.y": { + "message": "Der Nenner", + "description": "Parameter docs" + }, + "math.frexp": { + "message": "frexp", + "description": "(function name) Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.summary": { + "message": "Zerlegt eine Gleitkommazahl in ihre Mantisse und ihren Exponenten.", + "description": "Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.param-name.x": { + "message": "x", + "description": "(parameter name) A floating-point number" + }, + "math.frexp.param-doc.x": { + "message": "Eine Fließkommazahl", + "description": "Parameter docs" + }, + "math.isfinite": { + "message": "isfinite", + "description": "(function name) Check if a value is finite." + }, + "math.isfinite.summary": { + "message": "Überprüft, ob ein Wert endlich ist.", + "description": "Check if a value is finite." + }, + "math.isfinite.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isfinite.param-doc.x": { + "message": "Eine Zahl.", + "description": "Parameter docs" + }, + "math.isinf": { + "message": "isinf", + "description": "(function name) Check if a value is infinite." + }, + "math.isinf.summary": { + "message": "Überprüft, ob ein Wert unendlich ist.", + "description": "Check if a value is infinite." + }, + "math.isinf.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isinf.param-doc.x": { + "message": "Eine Zahl.", + "description": "Parameter docs" + }, + "math.isnan": { + "message": "isnan", + "description": "(function name) Check if a value is not-a-number (NaN)." + }, + "math.isnan.summary": { + "message": "Prüft, ob ein Wert keine Zahl (NaN ... Not A Number) ist.", + "description": "Check if a value is not-a-number (NaN)." + }, + "math.isnan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.isnan.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.ldexp": { + "message": "ldexp", + "description": "(function name) Calculate ``x * (2**exp)``." + }, + "math.ldexp.summary": { + "message": "Berechne {{x * (2**exp)}}.", + "description": "Calculate ``x * (2**exp)``." + }, + "math.ldexp.param-name.exp": { + "message": "exp", + "description": "(parameter name) Integer exponent" + }, + "math.ldexp.param-doc.exp": { + "message": "Ganzzahl-Exponent", + "description": "Parameter docs" + }, + "math.ldexp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ldexp.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.log": { + "message": "log", + "description": "(function name) Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.summary": { + "message": "Berechnet den Logarithmus von {{x}} zur angegebenen Basis (standardmäßig den natürlichen Logarithmus).", + "description": "Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.param-name.base": { + "message": "base", + "description": "(parameter name) The base to use" + }, + "math.log.param-doc.base": { + "message": "Die zu verwendende Basis", + "description": "Parameter docs" + }, + "math.log.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.log.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.modf": { + "message": "modf", + "description": "(function name) Calculate the fractional and integral parts of ``x``." + }, + "math.modf.summary": { + "message": "Berechne die gebrochenen und ganzzahligen Teile von {{x}}.", + "description": "Calculate the fractional and integral parts of ``x``." + }, + "math.modf.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.modf.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.pow": { + "message": "pow", + "description": "(function name) Returns ``x`` to the power of ``y``." + }, + "math.pow.summary": { + "message": "Gibt {{x}} hoch {{y}} zurück.", + "description": "Returns ``x`` to the power of ``y``." + }, + "math.pow.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.pow.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.pow.param-name.y": { + "message": "y", + "description": "(parameter name) The exponent" + }, + "math.pow.param-doc.y": { + "message": "Der Exponent", + "description": "Parameter docs" + }, + "math.radians": { + "message": "radians", + "description": "(function name) Convert a degrees to radians." + }, + "math.radians.summary": { + "message": "Wandelt Grad in Bogenmaß (Radiant) um.", + "description": "Convert a degrees to radians." + }, + "math.radians.param-name.x": { + "message": "x", + "description": "(parameter name) A value in degrees" + }, + "math.radians.param-doc.x": { + "message": "Ein Wert in Grad", + "description": "Parameter docs" + }, + "math.sin": { + "message": "sin", + "description": "(function name) Calculate the sine of ``x``." + }, + "math.sin.summary": { + "message": "Berechnet den Sinus von {{x}}.", + "description": "Calculate the sine of ``x``." + }, + "math.sin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sin.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.sqrt": { + "message": "sqrt", + "description": "(function name) Calculate the square root of ``x``." + }, + "math.sqrt.summary": { + "message": "Berechnet die Quadratwurzel von {{x}}.", + "description": "Calculate the square root of ``x``." + }, + "math.sqrt.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sqrt.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.tan": { + "message": "tan", + "description": "(function name) Calculate the tangent of ``x``." + }, + "math.tan.summary": { + "message": "Berechnet den Tangens von {{x}}.", + "description": "Calculate the tangent of ``x``." + }, + "math.tan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.tan.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.trunc": { + "message": "trunc", + "description": "(function name) Round a number towards 0." + }, + "math.trunc.summary": { + "message": "Rundet eine Zahl gegen 0 ab.", + "description": "Round a number towards 0." + }, + "math.trunc.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.trunc.param-doc.x": { + "message": "Eine Zahl", + "description": "Parameter docs" + }, + "math.e": { + "message": "e", + "description": "(field name) Base of the natural logarithm" + }, + "math.e.summary": { + "message": "Basis des natürlichen Logarithmus", + "description": "Base of the natural logarithm" + }, + "math.pi": { + "message": "pi", + "description": "(field name) The ratio of a circle's circumference to its diameter" + }, + "math.pi.summary": { + "message": "Das Verhältnis des Umfangs eines Kreises zu seinem Durchmesser", + "description": "The ratio of a circle's circumference to its diameter" + }, + "microbit": { + "message": "microbit", + "description": "(module name) Pins, images, sounds, temperature and volume." + }, + "microbit.summary": { + "message": "Pins, Bilder, Töne, Temperatur und Lautstärke.", + "description": "Pins, images, sounds, temperature and volume." + }, + "microbit.run_every": { + "message": "run every", + "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.summary": { + "message": "Plant die Ausführung einer Funktion in dem durch die Zeitargumente festgelegten Intervall **nur V2**.", + "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.param-name.callback": { + "message": "callback", + "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." + }, + "microbit.run_every.param-doc.callback": { + "message": "Funktion, die in dem angegebenen Intervall aufgerufen wird. Bei Verwendung als Dekorator weglassen.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.days": { + "message": "tage", + "description": "(parameter name) Sets the day mark for the scheduling." + }, + "microbit.run_every.param-doc.days": { + "message": "Legt den Tag für die Planung fest.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.h": { + "message": "h", + "description": "(parameter name) Sets the hour mark for the scheduling." + }, + "microbit.run_every.param-doc.h": { + "message": "Legt die Uhrzeit für die Planung fest.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.min": { + "message": "min", + "description": "(parameter name) Sets the minute mark for the scheduling." + }, + "microbit.run_every.param-doc.min": { + "message": "Legt die Minute für die Planung fest.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.ms": { + "message": "ms", + "description": "(parameter name) Sets the millisecond mark for the scheduling." + }, + "microbit.run_every.param-doc.ms": { + "message": "Legt die Millisekunde für die Planung fest.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.s": { + "message": "s", + "description": "(parameter name) Sets the second mark for the scheduling." + }, + "microbit.run_every.param-doc.s": { + "message": "Legt die Sekunde für die Planung fest.", + "description": "Parameter docs" + }, + "microbit.panic": { + "message": "panic", + "description": "(function name) Enter a panic mode." + }, + "microbit.panic.summary": { + "message": "In einen Panik-Modus gehen.", + "description": "Enter a panic mode." + }, + "microbit.panic.param-name.n": { + "message": "n", + "description": "(parameter name) An arbitrary integer <= 255 to indicate a status." + }, + "microbit.panic.param-doc.n": { + "message": "Eine beliebige ganze Zahl <= 255, um einen Status anzugeben.", + "description": "Parameter docs" + }, + "microbit.reset": { + "message": "reset", + "description": "(function name) Restart the board." + }, + "microbit.reset.summary": { + "message": "Board neu starten.", + "description": "Restart the board." + }, + "microbit.scale-1": { + "message": "scale", + "description": "(function name) Converts a value from a range to an integer range." + }, + "microbit.scale-1.summary": { + "message": "Konvertiert einen Wert aus einem Bereich in einen Ganzzahlenbereich.", + "description": "Converts a value from a range to an integer range." + }, + "microbit.scale-1.param-name.from_": { + "message": "from", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-1.param-doc.from_": { + "message": "Ein Tupel, das den Bereich definiert, aus dem konvertiert werden soll.", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.to": { + "message": "to", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-1.param-doc.to": { + "message": "Ein Tupel, das den Bereich definiert, in den konvertiert werden soll.", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.value": { + "message": "wert", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-1.param-doc.value": { + "message": "Eine umzurechnende Zahl.", + "description": "Parameter docs" + }, + "microbit.scale-2": { + "message": "scale", + "description": "(function name) Converts a value from a range to a floating point range." + }, + "microbit.scale-2.summary": { + "message": "Konvertiert einen Wert von einem Bereich in einen Gleitkommabereich.", + "description": "Converts a value from a range to a floating point range." + }, + "microbit.scale-2.param-name.from_": { + "message": "from", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-2.param-doc.from_": { + "message": "Ein Tupel, das den Bereich definiert, aus dem konvertiert werden soll.", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.to": { + "message": "to", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-2.param-doc.to": { + "message": "Ein Tupel, das den Bereich definiert, in den konvertiert werden soll.", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.value": { + "message": "wert", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-2.param-doc.value": { + "message": "Eine umzurechnende Zahl.", + "description": "Parameter docs" + }, + "microbit.sleep": { + "message": "sleep", + "description": "(function name) Wait for ``n`` milliseconds." + }, + "microbit.sleep.summary": { + "message": "Warte auf {{n}} Millisekunden.", + "description": "Wait for ``n`` milliseconds." + }, + "microbit.sleep.param-name.n": { + "message": "n", + "description": "(parameter name) The number of milliseconds to wait" + }, + "microbit.sleep.param-doc.n": { + "message": "Die Anzahl der zu wartenden Millisekunden", + "description": "Parameter docs" + }, + "microbit.running_time": { + "message": "running time", + "description": "(function name) Get the running time of the board." + }, + "microbit.running_time.summary": { + "message": "Ermittelt die Laufzeit des Boards.", + "description": "Get the running time of the board." + }, + "microbit.temperature": { + "message": "temperature", + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.temperature.summary": { + "message": "Ermittelt die Temperatur des micro:bit in Grad Celcius.", + "description": "Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.set_volume": { + "message": "set volume", + "description": "(function name) Sets the volume." + }, + "microbit.set_volume.summary": { + "message": "Legt die Lautstärke fest.", + "description": "Sets the volume." + }, + "microbit.set_volume.param-name.v": { + "message": "v", + "description": "(parameter name) a value between 0 (low) and 255 (high)." + }, + "microbit.set_volume.param-doc.v": { + "message": "ein Wert zwischen 0 (niedrig) und 255 (hoch).", + "description": "Parameter docs" + }, + "microbit.Button": { + "message": "button", + "description": "(class name) The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.summary": { + "message": "Die Klasse für die Tasten {{button_a}} und {{button_b}}.", + "description": "The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.is_pressed": { + "message": "is pressed", + "description": "(function name) Check if the button is pressed." + }, + "microbit.Button.is_pressed.summary": { + "message": "Überprüft, ob die Taste gedrückt ist.", + "description": "Check if the button is pressed." + }, + "microbit.Button.was_pressed": { + "message": "was pressed", + "description": "(function name) Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.was_pressed.summary": { + "message": "Überprüft, ob die Taste seit dem Start des Geräts oder dem letzten Aufruf dieser Methode gedrückt wurde.", + "description": "Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.get_presses": { + "message": "get presses", + "description": "(function name) Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.Button.get_presses.summary": { + "message": "Ermittelt die Gesamtzahl der Tastendrücke und setzt diese Summe auf Null zurück, bevor sie zurückgegeben wird.", + "description": "Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.button_a": { + "message": "button a", + "description": "(field name) The left button ``Button`` object." + }, + "microbit.button_a.summary": { + "message": "Das {{Button}}-Objekt der linken Taste.", + "description": "The left button ``Button`` object." + }, + "microbit.button_b": { + "message": "button b", + "description": "(field name) The right button ``Button`` object." + }, + "microbit.button_b.summary": { + "message": "Das {{Button}}-Objekt der rechten Taste.", + "description": "The right button ``Button`` object." + }, + "microbit.MicroBitDigitalPin": { + "message": "microbitdigitalpin", + "description": "(class name) A digital pin." + }, + "microbit.MicroBitDigitalPin.summary": { + "message": "Ein digitaler Pin.", + "description": "A digital pin." + }, + "microbit.MicroBitDigitalPin.read_digital": { + "message": "read digital", + "description": "(function name) Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.read_digital.summary": { + "message": "Ermittelt den digitalen Wert des Pins.", + "description": "Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital": { + "message": "digital schreiben", + "description": "(function name) Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.summary": { + "message": "Stellt den digitalen Wert des Pins ein.", + "description": "Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.param-name.value": { + "message": "wert", + "description": "(parameter name) 1 to set the pin high or 0 to set the pin low" + }, + "microbit.MicroBitDigitalPin.write_digital.param-doc.value": { + "message": "1, um den Pin zu aktivieren, oder 0, um den Pin zu deaktivieren", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_pull": { + "message": "setze Pull-Widerstand", + "description": "(function name) Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.summary": { + "message": "Setze den Status des Pull-Widerstands auf einen von drei möglichen Werten: {{PULL_UP}}, {{PULL_DOWN}} oder {{NO_PULL}}.", + "description": "Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-name.value": { + "message": "wert", + "description": "(parameter name) The pull state from the relevant pin, e.g. ``pin0.PULL_UP``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-doc.value": { + "message": "Der Status des Pull-Widerstands vom relevanten Pin, z.B. {{pin0.PULL_UP}}.", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.get_pull": { + "message": "gib Pull-Widerstand", + "description": "(function name) Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_pull.summary": { + "message": "Abrufen des Status des Pull-Widerstands eines Pins.", + "description": "Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_mode": { + "message": "gib Pin-Modus", + "description": "(function name) Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.get_mode.summary": { + "message": "Gibt den Pin-Modus zurück.", + "description": "Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.write_analog": { + "message": "analog schreiben", + "description": "(function name) Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.summary": { + "message": "Erzeugt ein PWM-Signal am Pin mit der Einschaltdauer proportional zu {{value}}.", + "description": "Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.param-name.value": { + "message": "wert", + "description": "(parameter name) An integer or a floating point number between 0 (0% duty cycle) and 1023 (100% duty)." + }, + "microbit.MicroBitDigitalPin.write_analog.param-doc.value": { + "message": "Eine Ganzzahl oder eine Gleitpunktzahl zwischen 0 (0% Einschaltdauer) und 1023 (100% Einschaltdauer).", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period": { + "message": "setze analoge Periodendauer", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.summary": { + "message": "Setzt die Periodendauer des PWM-Signals, das ausgegeben wird, auf {{period}} in Millisekunden.", + "description": "Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-name.period": { + "message": "Periodendauer", + "description": "(parameter name) The period in milliseconds with a minimum valid value of 1ms." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-doc.period": { + "message": "Der Periodendauer in Millisekunden mit einem Mindestwert von 1ms.", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds": { + "message": "setze analoge Periodendauer", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.summary": { + "message": "Setze die Periodendauer für die Ausgabe des PWM-Signals auf {{period}} in Mikrosekunden.", + "description": "Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-name.period": { + "message": "Periodendauer", + "description": "(parameter name) The period in microseconds with a minimum valid value of 256µs." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-doc.period": { + "message": "Die Periodendauer in Mikrosekunden mit einem Mindestwert von 256μs.", + "description": "Parameter docs" + }, + "microbit.MicroBitAnalogDigitalPin": { + "message": "microbitanalogdigitalpin", + "description": "(class name) A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.summary": { + "message": "Ein Pin, der analogen und digitalen Signale erlaubt.", + "description": "A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog": { + "message": "analog lesen", + "description": "(function name) Read the voltage applied to the pin." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog.summary": { + "message": "Einlesen der Spannung, die am Pin anliegt.", + "description": "Read the voltage applied to the pin." + }, + "microbit.MicroBitTouchPin": { + "message": "microbittouchpin", + "description": "(class name) A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.summary": { + "message": "Ein Pin mit analogen, digitalen und Touchfunktionen.", + "description": "A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.is_touched": { + "message": "wird berührt", + "description": "(function name) Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.is_touched.summary": { + "message": "Überprüft, ob der Pin berührt wird.", + "description": "Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.set_touch_mode": { + "message": "definiert Berührungsmodus", + "description": "(function name) Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.summary": { + "message": "Legt den Touchmodus für den Pin fest.", + "description": "Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-name.value": { + "message": "wert", + "description": "(parameter name) ``CAPACITIVE`` or ``RESISTIVE`` from the relevant pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-doc.value": { + "message": "{{CAPACITIVE}} oder {{RESISTIVE}} Touchmodus des entsprechenden Pins.", + "description": "Parameter docs" + }, + "microbit.pin0": { + "message": "pin0", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin0.summary": { + "message": "Pin mit digitalen, analogen und Touchfunktionen.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin1": { + "message": "pin1", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin1.summary": { + "message": "Pin mit digitalen, analogen und Touchfunktionen.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin2": { + "message": "pin2", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin2.summary": { + "message": "Pin mit digitalen, analogen und Touchfunktionen.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin3": { + "message": "pin3", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin3.summary": { + "message": "Pin mit digitalen und analogen Funktionen.", + "description": "Pin with digital and analog features." + }, + "microbit.pin4": { + "message": "pin4", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin4.summary": { + "message": "Pin mit digitalen und analogen Funktionen.", + "description": "Pin with digital and analog features." + }, + "microbit.pin5": { + "message": "pin5", + "description": "(field name) Pin with digital features." + }, + "microbit.pin5.summary": { + "message": "Pin mit Unterstützung für digitale Signale.", + "description": "Pin with digital features." + }, + "microbit.pin6": { + "message": "pin6", + "description": "(field name) Pin with digital features." + }, + "microbit.pin6.summary": { + "message": "Pin mit Unterstützung für digitale Signale.", + "description": "Pin with digital features." + }, + "microbit.pin7": { + "message": "pin7", + "description": "(field name) Pin with digital features." + }, + "microbit.pin7.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin8": { + "message": "pin8", + "description": "(field name) Pin with digital features." + }, + "microbit.pin8.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin9": { + "message": "pin9", + "description": "(field name) Pin with digital features." + }, + "microbit.pin9.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin10": { + "message": "pin10", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin10.summary": { + "message": "Pin mit digitalen und analogen Funktionen.", + "description": "Pin with digital and analog features." + }, + "microbit.pin11": { + "message": "pin11", + "description": "(field name) Pin with digital features." + }, + "microbit.pin11.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin12": { + "message": "pin12", + "description": "(field name) Pin with digital features." + }, + "microbit.pin12.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin13": { + "message": "pin13", + "description": "(field name) Pin with digital features." + }, + "microbit.pin13.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin14": { + "message": "pin14", + "description": "(field name) Pin with digital features." + }, + "microbit.pin14.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin15": { + "message": "pin15", + "description": "(field name) Pin with digital features." + }, + "microbit.pin15.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin16": { + "message": "pin16", + "description": "(field name) Pin with digital features." + }, + "microbit.pin16.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin19": { + "message": "pin19", + "description": "(field name) Pin with digital features." + }, + "microbit.pin19.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin20": { + "message": "pin20", + "description": "(field name) Pin with digital features." + }, + "microbit.pin20.summary": { + "message": "Pin mit digitalen Funktionen.", + "description": "Pin with digital features." + }, + "microbit.pin_logo": { + "message": "pin logo", + "description": "(field name) A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_logo.summary": { + "message": "Ein berührungsempfindlicher Logo-Pin auf der Vorderseite des micro:bit, der standardmäßig auf den kapazitiven Touch-Modus eingestellt ist.", + "description": "A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_speaker": { + "message": "pin speaker", + "description": "(field name) A pin to address the micro:bit speaker." + }, + "microbit.pin_speaker.summary": { + "message": "Ein Pin zur Ansteuerung des micro:bit Lautsprechers.", + "description": "A pin to address the micro:bit speaker." + }, + "microbit.Image": { + "message": "image", + "description": "(class name) An image to show on the micro:bit LED display." + }, + "microbit.Image.summary": { + "message": "Ein Bild, das auf dem micro:bit LED-Display angezeigt werden soll.", + "description": "An image to show on the micro:bit LED display." + }, + "microbit.Image.HEART": { + "message": "heart", + "description": "(field name) Heart image." + }, + "microbit.Image.HEART.summary": { + "message": "Herz-Bild.", + "description": "Heart image." + }, + "microbit.Image.HEART_SMALL": { + "message": "heart small", + "description": "(field name) Small heart image." + }, + "microbit.Image.HEART_SMALL.summary": { + "message": "Kleines Herz-Bild.", + "description": "Small heart image." + }, + "microbit.Image.HAPPY": { + "message": "happy", + "description": "(field name) Happy face image." + }, + "microbit.Image.HAPPY.summary": { + "message": "Glückliches Gesichtsbild.", + "description": "Happy face image." + }, + "microbit.Image.SMILE": { + "message": "smile", + "description": "(field name) Smiling face image." + }, + "microbit.Image.SMILE.summary": { + "message": "Lächelndes Gesichtsbild.", + "description": "Smiling face image." + }, + "microbit.Image.SAD": { + "message": "sad", + "description": "(field name) Sad face image." + }, + "microbit.Image.SAD.summary": { + "message": "Trauriges Gesichtsbild.", + "description": "Sad face image." + }, + "microbit.Image.CONFUSED": { + "message": "confused", + "description": "(field name) Confused face image." + }, + "microbit.Image.CONFUSED.summary": { + "message": "Verwirrtes Gesichtsbild.", + "description": "Confused face image." + }, + "microbit.Image.ANGRY": { + "message": "angry", + "description": "(field name) Angry face image." + }, + "microbit.Image.ANGRY.summary": { + "message": "Wütendes Gesichtsbild.", + "description": "Angry face image." + }, + "microbit.Image.ASLEEP": { + "message": "asleep", + "description": "(field name) Sleeping face image." + }, + "microbit.Image.ASLEEP.summary": { + "message": "Schlafendes Gesichtsbild.", + "description": "Sleeping face image." + }, + "microbit.Image.SURPRISED": { + "message": "surprised", + "description": "(field name) Surprised face image." + }, + "microbit.Image.SURPRISED.summary": { + "message": "Überraschtes Gesichtsbild.", + "description": "Surprised face image." + }, + "microbit.Image.SILLY": { + "message": "silly", + "description": "(field name) Silly face image." + }, + "microbit.Image.SILLY.summary": { + "message": "Albernes Gesichtsbild.", + "description": "Silly face image." + }, + "microbit.Image.FABULOUS": { + "message": "fabelhaft", + "description": "(field name) Sunglasses face image." + }, + "microbit.Image.FABULOUS.summary": { + "message": "Bild mit Sonnenbrillengesicht.", + "description": "Sunglasses face image." + }, + "microbit.Image.MEH": { + "message": "meh", + "description": "(field name) Unimpressed face image." + }, + "microbit.Image.MEH.summary": { + "message": "Gleichgültiges Gesicht Bild.", + "description": "Unimpressed face image." + }, + "microbit.Image.YES": { + "message": "yes", + "description": "(field name) Tick image." + }, + "microbit.Image.YES.summary": { + "message": "abgehakt-Bild", + "description": "Tick image." + }, + "microbit.Image.NO": { + "message": "no", + "description": "(field name) Cross image." + }, + "microbit.Image.NO.summary": { + "message": "angekreuzt-Bild", + "description": "Cross image." + }, + "microbit.Image.CLOCK12": { + "message": "clock12", + "description": "(field name) Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK12.summary": { + "message": "Bild mit Linie, die auf 12 Uhr zeigt.", + "description": "Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK11": { + "message": "clock11", + "description": "(field name) Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK11.summary": { + "message": "Bild mit Linie, die auf 11 Uhr zeigt.", + "description": "Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK10": { + "message": "clock10", + "description": "(field name) Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK10.summary": { + "message": "Bild mit Linie, die auf 10 Uhr zeigt.", + "description": "Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK9": { + "message": "clock9", + "description": "(field name) Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK9.summary": { + "message": "Bild mit Linie, die auf 9 Uhr zeigt.", + "description": "Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK8": { + "message": "clock8", + "description": "(field name) Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK8.summary": { + "message": "Bild mit Linie, die auf 8 Uhr zeigt.", + "description": "Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK7": { + "message": "clock7", + "description": "(field name) Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK7.summary": { + "message": "Bild mit Linie, die auf 7 Uhr zeigt.", + "description": "Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK6": { + "message": "clock6", + "description": "(field name) Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK6.summary": { + "message": "Bild mit Linie, die auf 6 Uhr zeigt.", + "description": "Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK5": { + "message": "clock5", + "description": "(field name) Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK5.summary": { + "message": "Bild mit Linie, die auf 5 Uhr zeigt.", + "description": "Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK4": { + "message": "clock4", + "description": "(field name) Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK4.summary": { + "message": "Bild mit Linie, die auf 4 Uhr zeigt.", + "description": "Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK3": { + "message": "clock3", + "description": "(field name) Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK3.summary": { + "message": "Bild mit Linie, die auf 3 Uhr zeigt.", + "description": "Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK2": { + "message": "clock2", + "description": "(field name) Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK2.summary": { + "message": "Bild mit Linie, die auf 2 Uhr zeigt.", + "description": "Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK1": { + "message": "clock1", + "description": "(field name) Image with line pointing to 1 o'clock." + }, + "microbit.Image.CLOCK1.summary": { + "message": "Bild mit Linie, die auf 1 Uhr zeigt.", + "description": "Image with line pointing to 1 o'clock." + }, + "microbit.Image.ARROW_N": { + "message": "arrow n", + "description": "(field name) Image of arrow pointing north." + }, + "microbit.Image.ARROW_N.summary": { + "message": "Bild eines Pfeils, der nach Norden zeigt.", + "description": "Image of arrow pointing north." + }, + "microbit.Image.ARROW_NE": { + "message": "arrow ne", + "description": "(field name) Image of arrow pointing north east." + }, + "microbit.Image.ARROW_NE.summary": { + "message": "Bild eines Pfeils, der nach Nordosten zeigt.", + "description": "Image of arrow pointing north east." + }, + "microbit.Image.ARROW_E": { + "message": "arrow e", + "description": "(field name) Image of arrow pointing east." + }, + "microbit.Image.ARROW_E.summary": { + "message": "Bild eines Pfeils, der nach Osten zeigt.", + "description": "Image of arrow pointing east." + }, + "microbit.Image.ARROW_SE": { + "message": "arrow se", + "description": "(field name) Image of arrow pointing south east." + }, + "microbit.Image.ARROW_SE.summary": { + "message": "Bild eines Pfeils, der nach Südosten zeigt.", + "description": "Image of arrow pointing south east." + }, + "microbit.Image.ARROW_S": { + "message": "arrow s", + "description": "(field name) Image of arrow pointing south." + }, + "microbit.Image.ARROW_S.summary": { + "message": "Bild eines Pfeils, der nach Süden zeigt.", + "description": "Image of arrow pointing south." + }, + "microbit.Image.ARROW_SW": { + "message": "arrow sw", + "description": "(field name) Image of arrow pointing south west." + }, + "microbit.Image.ARROW_SW.summary": { + "message": "Bild eines Pfeils, der nach Südwesten zeigt.", + "description": "Image of arrow pointing south west." + }, + "microbit.Image.ARROW_W": { + "message": "arrow w", + "description": "(field name) Image of arrow pointing west." + }, + "microbit.Image.ARROW_W.summary": { + "message": "Bild eines Pfeils, der nach Westen zeigt.", + "description": "Image of arrow pointing west." + }, + "microbit.Image.ARROW_NW": { + "message": "arrow nw", + "description": "(field name) Image of arrow pointing north west." + }, + "microbit.Image.ARROW_NW.summary": { + "message": "Bild eines Pfeils, der nach Nordwesten zeigt.", + "description": "Image of arrow pointing north west." + }, + "microbit.Image.TRIANGLE": { + "message": "triangle", + "description": "(field name) Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE.summary": { + "message": "Bild eines Dreiecks, das nach oben zeigt.", + "description": "Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE_LEFT": { + "message": "triangle left", + "description": "(field name) Image of a triangle in the left corner." + }, + "microbit.Image.TRIANGLE_LEFT.summary": { + "message": "Bild eines Dreiecks in der linken Ecke.", + "description": "Image of a triangle in the left corner." + }, + "microbit.Image.CHESSBOARD": { + "message": "chessboard", + "description": "(field name) Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.CHESSBOARD.summary": { + "message": "Abwechselnd leuchtende LEDs in einem Schachbrettmuster.", + "description": "Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.DIAMOND": { + "message": "diamond", + "description": "(field name) Diamond image." + }, + "microbit.Image.DIAMOND.summary": { + "message": "Diamant-Bild.", + "description": "Diamond image." + }, + "microbit.Image.DIAMOND_SMALL": { + "message": "diamond small", + "description": "(field name) Small diamond image." + }, + "microbit.Image.DIAMOND_SMALL.summary": { + "message": "Kleines Diamant-Bild.", + "description": "Small diamond image." + }, + "microbit.Image.SQUARE": { + "message": "square", + "description": "(field name) Square image." + }, + "microbit.Image.SQUARE.summary": { + "message": "Quadrat-Bild", + "description": "Square image." + }, + "microbit.Image.SQUARE_SMALL": { + "message": "square small", + "description": "(field name) Small square image." + }, + "microbit.Image.SQUARE_SMALL.summary": { + "message": "Kleines Quadrat-Bild.", + "description": "Small square image." + }, + "microbit.Image.RABBIT": { + "message": "rabbit", + "description": "(field name) Rabbit image." + }, + "microbit.Image.RABBIT.summary": { + "message": "Kaninchen-Bild.", + "description": "Rabbit image." + }, + "microbit.Image.COW": { + "message": "cow", + "description": "(field name) Cow image." + }, + "microbit.Image.COW.summary": { + "message": "Kuh-Bild.", + "description": "Cow image." + }, + "microbit.Image.MUSIC_CROTCHET": { + "message": "music crotchet", + "description": "(field name) Crotchet note image." + }, + "microbit.Image.MUSIC_CROTCHET.summary": { + "message": "Viertelnoten-Bild.", + "description": "Crotchet note image." + }, + "microbit.Image.MUSIC_QUAVER": { + "message": "music quaver", + "description": "(field name) Quaver note image." + }, + "microbit.Image.MUSIC_QUAVER.summary": { + "message": "Achtelnoten-Bild.", + "description": "Quaver note image." + }, + "microbit.Image.MUSIC_QUAVERS": { + "message": "music quavers", + "description": "(field name) Pair of quavers note image." + }, + "microbit.Image.MUSIC_QUAVERS.summary": { + "message": "Achtelnotenpaar-Bild.", + "description": "Pair of quavers note image." + }, + "microbit.Image.PITCHFORK": { + "message": "pitchfork", + "description": "(field name) Pitchfork image." + }, + "microbit.Image.PITCHFORK.summary": { + "message": "Heugabel-Bild", + "description": "Pitchfork image." + }, + "microbit.Image.XMAS": { + "message": "xmas", + "description": "(field name) Christmas tree image." + }, + "microbit.Image.XMAS.summary": { + "message": "Weihnachtsbaum-Bild.", + "description": "Christmas tree image." + }, + "microbit.Image.PACMAN": { + "message": "pacman", + "description": "(field name) Pac-Man arcade character image." + }, + "microbit.Image.PACMAN.summary": { + "message": "Pac-Man Spielfigurenbild.", + "description": "Pac-Man arcade character image." + }, + "microbit.Image.TARGET": { + "message": "target", + "description": "(field name) Target image." + }, + "microbit.Image.TARGET.summary": { + "message": "Ziel-Bild", + "description": "Target image." + }, + "microbit.Image.TSHIRT": { + "message": "tshirt", + "description": "(field name) T-shirt image." + }, + "microbit.Image.TSHIRT.summary": { + "message": "T-Shirt-Bild.", + "description": "T-shirt image." + }, + "microbit.Image.ROLLERSKATE": { + "message": "rollerskate", + "description": "(field name) Rollerskate image." + }, + "microbit.Image.ROLLERSKATE.summary": { + "message": "Rollerskate-Bild.", + "description": "Rollerskate image." + }, + "microbit.Image.DUCK": { + "message": "duck", + "description": "(field name) Duck image." + }, + "microbit.Image.DUCK.summary": { + "message": "Ente-Bild", + "description": "Duck image." + }, + "microbit.Image.HOUSE": { + "message": "house", + "description": "(field name) House image." + }, + "microbit.Image.HOUSE.summary": { + "message": "Haus-Bild", + "description": "House image." + }, + "microbit.Image.TORTOISE": { + "message": "tortoise", + "description": "(field name) Tortoise image." + }, + "microbit.Image.TORTOISE.summary": { + "message": "Schildkröte-Bild", + "description": "Tortoise image." + }, + "microbit.Image.BUTTERFLY": { + "message": "butterfly", + "description": "(field name) Butterfly image." + }, + "microbit.Image.BUTTERFLY.summary": { + "message": "Schmetterling-Bild.", + "description": "Butterfly image." + }, + "microbit.Image.STICKFIGURE": { + "message": "stickfigure", + "description": "(field name) Stick figure image." + }, + "microbit.Image.STICKFIGURE.summary": { + "message": "Strichmännchen-Bild.", + "description": "Stick figure image." + }, + "microbit.Image.GHOST": { + "message": "ghost", + "description": "(field name) Ghost image." + }, + "microbit.Image.GHOST.summary": { + "message": "Geist-Bild.", + "description": "Ghost image." + }, + "microbit.Image.SWORD": { + "message": "sword", + "description": "(field name) Sword image." + }, + "microbit.Image.SWORD.summary": { + "message": "Schwert-Bild", + "description": "Sword image." + }, + "microbit.Image.GIRAFFE": { + "message": "giraffe", + "description": "(field name) Giraffe image." + }, + "microbit.Image.GIRAFFE.summary": { + "message": "Giraffe-Bild.", + "description": "Giraffe image." + }, + "microbit.Image.SKULL": { + "message": "skull", + "description": "(field name) Skull image." + }, + "microbit.Image.SKULL.summary": { + "message": "Schädel-Bild.", + "description": "Skull image." + }, + "microbit.Image.UMBRELLA": { + "message": "umbrella", + "description": "(field name) Umbrella image." + }, + "microbit.Image.UMBRELLA.summary": { + "message": "Bild eines Schirms.", + "description": "Umbrella image." + }, + "microbit.Image.SNAKE": { + "message": "Schlange", + "description": "(field name) Snake image." + }, + "microbit.Image.SNAKE.summary": { + "message": "Bild einer Schlange.", + "description": "Snake image." + }, + "microbit.Image.SCISSORS": { + "message": "Schere", + "description": "(field name) Scissors image." + }, + "microbit.Image.SCISSORS.summary": { + "message": "BIld einer Schere.", + "description": "Scissors image." + }, + "microbit.Image.ALL_CLOCKS": { + "message": "alle Uhren", + "description": "(field name) A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_CLOCKS.summary": { + "message": "Eine Liste mit allen CLOCK_ Bildern.", + "description": "A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_ARROWS": { + "message": "alle Pfeile", + "description": "(field name) A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.ALL_ARROWS.summary": { + "message": "Eine Liste mit allen ARROW_ Bildern.", + "description": "A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.__init__-1": { + "message": "init", + "description": "(function name) Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.summary": { + "message": "Erstellen Sie ein Bild aus einer Zeichenkette, die beschreibt, welche LEDs leuchten.", + "description": "Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.param-name.string": { + "message": "Zeichenkette", + "description": "(parameter name) The string describing the image." + }, + "microbit.Image.__init__-1.param-doc.string": { + "message": "Eine Zeichenkette, die das Bild beschreibt.", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2": { + "message": "init", + "description": "(function name) Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.summary": { + "message": "Erstelle ein leeres Bild mit {{width}} Spalten und {{height}} Zeilen.", + "description": "Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.param-name.buffer": { + "message": "Puffer", + "description": "(parameter name) Optional array or bytes of ``width``×``height`` integers in range 0-9 to initialize the image" + }, + "microbit.Image.__init__-2.param-doc.buffer": { + "message": "Optionales Array oder Bytes von {{width}}×{{height}} Ganzzahlen im Bereich 0-9 um das Bild zu initialisieren", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.height": { + "message": "Höhe", + "description": "(parameter name) Optional height of the image" + }, + "microbit.Image.__init__-2.param-doc.height": { + "message": "Optionale Höhe des Bildes", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.width": { + "message": "Breite", + "description": "(parameter name) Optional width of the image" + }, + "microbit.Image.__init__-2.param-doc.width": { + "message": "Optionale Breite des Bildes", + "description": "Parameter docs" + }, + "microbit.Image.width": { + "message": "Breite", + "description": "(function name) Get the number of columns." + }, + "microbit.Image.width.summary": { + "message": "Ermittelt die Anzahl der Spalten.", + "description": "Get the number of columns." + }, + "microbit.Image.height": { + "message": "Höhe", + "description": "(function name) Get the number of rows." + }, + "microbit.Image.height.summary": { + "message": "Ermittelt die Anzahl der Zeilen.", + "description": "Get the number of rows." + }, + "microbit.Image.set_pixel": { + "message": "Pixelwerte setzen", + "description": "(function name) Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.summary": { + "message": "Legt die Helligkeit eines Pixels fest.", + "description": "Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.param-name.value": { + "message": "wert", + "description": "(parameter name) The brightness as an integer between 0 (dark) and 9 (bright)" + }, + "microbit.Image.set_pixel.param-doc.value": { + "message": "Die Helligkeit als Ganzzahl zwischen 0 (dunkel) und 9 (hell)", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.set_pixel.param-doc.x": { + "message": "Die Spaltennummer", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.set_pixel.param-doc.y": { + "message": "Die Zeilennummer", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel": { + "message": "Pixelwerte holen", + "description": "(function name) Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.summary": { + "message": "Ermittle die Helligkeit eines Pixels.", + "description": "Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.get_pixel.param-doc.x": { + "message": "Die Spaltennummer", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.get_pixel.param-doc.y": { + "message": "Die Zeilennummer", + "description": "Parameter docs" + }, + "microbit.Image.shift_left": { + "message": "links verschieben", + "description": "(function name) Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.summary": { + "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach links verschieben.", + "description": "Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_left.param-doc.n": { + "message": "Die Anzahl der Spalten um die verschoben wird", + "description": "Parameter docs" + }, + "microbit.Image.shift_right": { + "message": "rechts verschieben", + "description": "(function name) Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.summary": { + "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach rechts verschieben.", + "description": "Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_right.param-doc.n": { + "message": "Die Anzahl der Spalten um die verschoben wird", + "description": "Parameter docs" + }, + "microbit.Image.shift_up": { + "message": "nach oben verschieben", + "description": "(function name) Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.summary": { + "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach oben verschoben wird.", + "description": "Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_up.param-doc.n": { + "message": "Die Anzahl der Zeilen um die verschoben wird", + "description": "Parameter docs" + }, + "microbit.Image.shift_down": { + "message": "nach unten verschieben", + "description": "(function name) Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.summary": { + "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach unten verschoben wird.", + "description": "Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_down.param-doc.n": { + "message": "Die Anzahl der Zeilen um die verschoben wird", + "description": "Parameter docs" + }, + "microbit.Image.crop": { + "message": "crop", + "description": "(function name) Create a new image by cropping the picture." + }, + "microbit.Image.crop.summary": { + "message": "Erstellen Sie ein neues Bild, indem das Bild zugeschnitten wird.", + "description": "Create a new image by cropping the picture." + }, + "microbit.Image.crop.param-name.h": { + "message": "h", + "description": "(parameter name) The crop height" + }, + "microbit.Image.crop.param-doc.h": { + "message": "Die Zuschneide-Höhe", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.w": { + "message": "w", + "description": "(parameter name) The crop width" + }, + "microbit.Image.crop.param-doc.w": { + "message": "Die Zuschneide-Breite", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.x": { + "message": "x", + "description": "(parameter name) The crop offset column" + }, + "microbit.Image.crop.param-doc.x": { + "message": "Die Offset-Spalte des Zuschneidens", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.y": { + "message": "y", + "description": "(parameter name) The crop offset row" + }, + "microbit.Image.crop.param-doc.y": { + "message": "Die Offset-Zeile des Zuschneidens", + "description": "Parameter docs" + }, + "microbit.Image.copy": { + "message": "kopieren", + "description": "(function name) Create an exact copy of the image." + }, + "microbit.Image.copy.summary": { + "message": "Erstellt eine exakte Kopie des Bildes.", + "description": "Create an exact copy of the image." + }, + "microbit.Image.invert": { + "message": "invert", + "description": "(function name) Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.invert.summary": { + "message": "Erstellt ein neues Bild, indem es die Helligkeit der Pixel des Ausgangsbildes invertiert.", + "description": "Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.fill": { + "message": "fill", + "description": "(function name) Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.summary": { + "message": "Legt die Helligkeit für alle Pixel des Bildes fest.", + "description": "Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.param-name.value": { + "message": "value", + "description": "(parameter name) The new brightness as a number between 0 (dark) and 9 (bright)." + }, + "microbit.Image.fill.param-doc.value": { + "message": "Die neue Helligkeit als Zahl zwischen 0 (dunkel) und 9 (hell).", + "description": "Parameter docs" + }, + "microbit.Image.blit": { + "message": "blit", + "description": "(function name) Copy an area from another image into this image." + }, + "microbit.Image.blit.summary": { + "message": "Kopiert einen Bereich aus einem anderen Bild in dieses Bild.", + "description": "Copy an area from another image into this image." + }, + "microbit.Image.blit.param-name.h": { + "message": "h", + "description": "(parameter name) The number of rows to copy" + }, + "microbit.Image.blit.param-doc.h": { + "message": "Die Anzahl der zu kopierenden Zeilen", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.src": { + "message": "src", + "description": "(parameter name) The source image" + }, + "microbit.Image.blit.param-doc.src": { + "message": "Das Ausgangsbild", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.w": { + "message": "w", + "description": "(parameter name) The number of columns to copy" + }, + "microbit.Image.blit.param-doc.w": { + "message": "Die Anzahl der zu kopierenden Spalten", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.x": { + "message": "x", + "description": "(parameter name) The starting column offset in the source image" + }, + "microbit.Image.blit.param-doc.x": { + "message": "Der Anfangsspalten-Offset im Ausgangsbild", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.xdest": { + "message": "xdest", + "description": "(parameter name) The column offset to modify in this image" + }, + "microbit.Image.blit.param-doc.xdest": { + "message": "Der Spalten-Offset, der in diesem Bild geändert werden soll", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.y": { + "message": "y", + "description": "(parameter name) The starting row offset in the source image" + }, + "microbit.Image.blit.param-doc.y": { + "message": "Der Anfangszeilen-Offset im Ausgangsbild", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.ydest": { + "message": "ydest", + "description": "(parameter name) The row offset to modify in this image" + }, + "microbit.Image.blit.param-doc.ydest": { + "message": "Der Zeilen-Offset, der in diesem Bild geändert werden soll", + "description": "Parameter docs" + }, + "microbit.Image.__repr__": { + "message": "repr", + "description": "(function name) Get a compact string representation of the image." + }, + "microbit.Image.__repr__.summary": { + "message": "Liefert eine kompakte Stringrepräsentation des Bildes.", + "description": "Get a compact string representation of the image." + }, + "microbit.Image.__str__": { + "message": "str", + "description": "(function name) Get a readable string representation of the image." + }, + "microbit.Image.__str__.summary": { + "message": "Liefert eine lesbare String-Repräsentation des Bildes.", + "description": "Get a readable string representation of the image." + }, + "microbit.Image.__add__": { + "message": "add", + "description": "(function name) Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.summary": { + "message": "Erstellt ein neues Bild, indem für jedes Pixel die Helligkeitswerte der beiden Bilder addiert werden.", + "description": "Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.param-name.other": { + "message": "other", + "description": "(parameter name) The image to add." + }, + "microbit.Image.__add__.param-doc.other": { + "message": "Das zu addierende Bild.", + "description": "Parameter docs" + }, + "microbit.Image.__sub__": { + "message": "sub", + "description": "(function name) Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.summary": { + "message": "Erstellt ein neues Bild, indem für jedes Pixel die Helligkeitswerte der beiden Bilder subtrahiert werden.", + "description": "Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.param-name.other": { + "message": "other", + "description": "(parameter name) The image to subtract." + }, + "microbit.Image.__sub__.param-doc.other": { + "message": "Das zu subtrahierende Bild.", + "description": "Parameter docs" + }, + "microbit.Image.__mul__": { + "message": "mul", + "description": "(function name) Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.summary": { + "message": "Erstellt ein neues Bild, indem der Helligkeitswert jedes Pixels mit {{n}} multipliziert wird.", + "description": "Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to multiply by." + }, + "microbit.Image.__mul__.param-doc.n": { + "message": "Der Wert, mit dem multipliziert werden soll.", + "description": "Parameter docs" + }, + "microbit.Image.__truediv__": { + "message": "truediv", + "description": "(function name) Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.summary": { + "message": "Erstellt ein neues Bild, indem der Helligkeitswert jedes Pixels durch {{n}} dividiert wird.", + "description": "Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to divide by." + }, + "microbit.Image.__truediv__.param-doc.n": { + "message": "Der Wert, durch den dividiert werden soll.", + "description": "Parameter docs" + }, + "microbit.SoundEvent.LOUD": { + "message": "loud", + "description": "(field name) Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.LOUD.summary": { + "message": "Stellt den Übergang von Klangereignissen von {{quiet}} auf {{loud}} dar; wie beim Klatschen oder Rufen.", + "description": "Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.QUIET": { + "message": "stumm", + "description": "(field name) Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.SoundEvent.QUIET.summary": { + "message": "Stellt den Übergang von akustischen Ereignissen, wie Sprechen oder Hintergrundmusik, von {{loud}} zu {{quiet}} dar.", + "description": "Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.Sound": { + "message": "sound", + "description": "(class name) The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.summary": { + "message": "Die eingebauten Klänge können mit {{audio.play(Sound.NAME)}} aufgerufen werden.", + "description": "The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.GIGGLE": { + "message": "giggle", + "description": "(field name) Giggling sound." + }, + "microbit.Sound.GIGGLE.summary": { + "message": "Kichern-Sound.", + "description": "Giggling sound." + }, + "microbit.Sound.HAPPY": { + "message": "happy", + "description": "(field name) Happy sound." + }, + "microbit.Sound.HAPPY.summary": { + "message": "Happy-Sound.", + "description": "Happy sound." + }, + "microbit.Sound.HELLO": { + "message": "hello", + "description": "(field name) Greeting sound." + }, + "microbit.Sound.HELLO.summary": { + "message": "Begrüßung-Sound", + "description": "Greeting sound." + }, + "microbit.Sound.MYSTERIOUS": { + "message": "mysterious", + "description": "(field name) Mysterious sound." + }, + "microbit.Sound.MYSTERIOUS.summary": { + "message": "Geheimnisvoll-Sound", + "description": "Mysterious sound." + }, + "microbit.Sound.SAD": { + "message": "sad", + "description": "(field name) Sad sound." + }, + "microbit.Sound.SAD.summary": { + "message": "Traurig-Sound.", + "description": "Sad sound." + }, + "microbit.Sound.SLIDE": { + "message": "slide", + "description": "(field name) Sliding sound." + }, + "microbit.Sound.SLIDE.summary": { + "message": "Gleitender Ton.", + "description": "Sliding sound." + }, + "microbit.Sound.SOARING": { + "message": "aufsteigend", + "description": "(field name) Soaring sound." + }, + "microbit.Sound.SOARING.summary": { + "message": "Aufsteigender Klang.", + "description": "Soaring sound." + }, + "microbit.Sound.SPRING": { + "message": "Sppringfeder", + "description": "(field name) Spring sound." + }, + "microbit.Sound.SPRING.summary": { + "message": "Springfeder Klang", + "description": "Spring sound." + }, + "microbit.Sound.TWINKLE": { + "message": "Funkeln", + "description": "(field name) Twinkling sound." + }, + "microbit.Sound.TWINKLE.summary": { + "message": "Funkeln Klang", + "description": "Twinkling sound." + }, + "microbit.Sound.YAWN": { + "message": "yawn", + "description": "(field name) Yawning sound." + }, + "microbit.Sound.YAWN.summary": { + "message": "Gähnen Klang", + "description": "Yawning sound." + }, + "microbit.accelerometer": { + "message": "Beschleunigungssensor", + "description": "(module name) Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.summary": { + "message": "Messen Sie die Beschleunigung des micro:bit und erkennen Sie Gesten.", + "description": "Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.get_x": { + "message": "erhalte x", + "description": "(function name) Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_x.summary": { + "message": "Erhalte die Beschleunigungsmessung in der {{x}} -Achse in Milli-g.", + "description": "Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_y": { + "message": "erhalte y", + "description": "(function name) Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_y.summary": { + "message": "Erhalte die Beschleunigungsmessung in der {{y}} -Achse in Milli-g.", + "description": "Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_z": { + "message": "erhalte z", + "description": "(function name) Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_z.summary": { + "message": "Erhalte die Beschleunigungsmessung in der {{z}} -Achse in Milli-g.", + "description": "Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_values": { + "message": "Werte erhalten", + "description": "(function name) Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_values.summary": { + "message": "Erhalten Sie die Beschleunigungsmessungen in allen Achsen auf einmal als Tupel.", + "description": "Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_strength": { + "message": "erhalte Stärke", + "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.get_strength.summary": { + "message": "Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der X-, Y- und Z-Achsen.", + "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.current_gesture": { + "message": "derzeitige Geste", + "description": "(function name) Get the name of the current gesture." + }, + "microbit.accelerometer.current_gesture.summary": { + "message": "Erhalte den Namen der aktuellen Geste.", + "description": "Get the name of the current gesture." + }, + "microbit.accelerometer.is_gesture": { + "message": "ist Geste", + "description": "(function name) Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.summary": { + "message": "Überprüft, ob die benannte Geste derzeit aktiv ist.", + "description": "Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.param-name.name": { + "message": "name", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.is_gesture.param-doc.name": { + "message": "Der Name der Geste.", + "description": "Parameter docs" + }, + "microbit.accelerometer.was_gesture": { + "message": "war Geste", + "description": "(function name) Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.summary": { + "message": "Überprüft, ob die benannte Geste seit dem letzten Aufruf aktiv war.", + "description": "Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.param-name.name": { + "message": "name", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.was_gesture.param-doc.name": { + "message": "Der Name der Geste.", + "description": "Parameter docs" + }, + "microbit.accelerometer.get_gestures": { + "message": "erhalte Gesten", + "description": "(function name) Return a tuple of the gesture history." + }, + "microbit.accelerometer.get_gestures.summary": { + "message": "Gibt ein Tupel der vergangenen Gesten zurück.", + "description": "Return a tuple of the gesture history." + }, + "microbit.accelerometer.set_range": { + "message": "Bereich einstellen", + "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.summary": { + "message": "Legen Sie den Bereich des Beschleunigungsmessers in g (Fallbeschleunigung) auf den nächstgelegenen Wert fest, welcher von der Hardware unterstützt wird. Diese sind {{2}}, {{4}}oder {{8}} g.", + "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.param-name.value": { + "message": "wert", + "description": "(parameter name) New range for the accelerometer, an integer in ``g``." + }, + "microbit.accelerometer.set_range.param-doc.value": { + "message": "Neuer Bereich für den Beschleunigungssensor, eine Ganzzahl in {{g}}.", + "description": "Parameter docs" + }, + "microbit.audio": { + "message": "Audio", + "description": "(module name) Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.summary": { + "message": "Töne mit dem micro:bit abspielen (Importiere {{audio}} für V1-Kompatibilität).", + "description": "Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.play": { + "message": "play", + "description": "(function name) Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.summary": { + "message": "Wiedergeben eines eingebauten Sounds, Soundeffekts oder benutzerdefinierten Aufnahme .", + "description": "Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.param-name.pin": { + "message": "pin", + "description": "(parameter name) An optional argument to specify the output pin can be used to override the default of ``pin0``. If we do not want any sound to play we can use ``pin=None``." + }, + "microbit.audio.play.param-doc.pin": { + "message": "Ein optionales Argument für den Ausgabepin kann angegeben werden, um die Standardeinstellung von {{pin0}}zu überschreiben. Wenn kein Ton wiedergegeben werden soll, kann {{pin=None}} verwendet werden.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.return_pin": { + "message": "erhalte Pin", + "description": "(parameter name) Specifies a differential edge connector pin to connect to an external speaker instead of ground. This is ignored for the **V2** revision." + }, + "microbit.audio.play.param-doc.return_pin": { + "message": "Bestimmt einen Pin, mit dem der externen Lautsprecher anstatt mit Ground verbunden wird. Dies wird bei der **V2** Revision ignoriert.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.source": { + "message": "Quelle", + "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." + }, + "microbit.audio.play.param-doc.source": { + "message": "Ein eingebauter {{Sound}} wie {{Sound.GIGGLE}}, ein {{SoundEffect}} oder Beispieldaten als Teil eines {{AudioFrame}} Objekts.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the sound is complete." + }, + "microbit.audio.play.param-doc.wait": { + "message": "Wenn {{wait}} {{True}} ist, wird diese Funktion blockiert, bis der Klang abgeschlossen ist.", + "description": "Parameter docs" + }, + "microbit.audio.is_playing": { + "message": "spielt gerade", + "description": "(function name) Check whether a sound is playing." + }, + "microbit.audio.is_playing.summary": { + "message": "Überprüfen Sie, ob ein Ton abgespielt wird.", + "description": "Check whether a sound is playing." + }, + "microbit.audio.stop": { + "message": "Stop", + "description": "(function name) Stop all audio playback." + }, + "microbit.audio.stop.summary": { + "message": "Stoppe jede Audio-Wiedergabe.", + "description": "Stop all audio playback." + }, + "microbit.audio.SoundEffect": { + "message": "soundeffect", + "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.summary": { + "message": "Ein Soundeffekt, zusammengestellt aus einer Reihe von Parametern, die über den Konstruktor oder durch Attribute konfiguriert werden.", + "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE": { + "message": "Sinuswelle", + "description": "(field name) Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { + "message": "Sinuswelle als Parameter für {{waveform}}.", + "description": "Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { + "message": "Sägezahnkurve", + "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { + "message": "Sägezahnkurve als Parameter für {{waveform}}.", + "description": "Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE": { + "message": "Dreiecksignal", + "description": "(field name) Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE.summary": { + "message": "Dreiecksignal als Parameter für {{waveform}}.", + "description": "Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE": { + "message": "Rechtecksignal", + "description": "(field name) Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { + "message": "Rechtecksignal als Parameter für {{waveform}}.", + "description": "Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE": { + "message": "Rauschsignal", + "description": "(field name) Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE.summary": { + "message": "Rauschsignal als Parameter für {{waveform}}.", + "description": "Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR": { + "message": "lineare Interpolation", + "description": "(field name) Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR.summary": { + "message": "Lineare Interpolation als Parameter für {{shape}}.", + "description": "Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE": { + "message": "geschwungene Kurve", + "description": "(field name) Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE.summary": { + "message": "Kurven-Interpolation als Parameter für {{shape}}.", + "description": "Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG": { + "message": "logarithmische Interpolation", + "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG.summary": { + "message": "Logarithmische Interpolation als Parameter für {{shape}}.", + "description": "Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE": { + "message": "kein fx", + "description": "(field name) No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE.summary": { + "message": "Kein Effekt für {{fx}} verwendet.", + "description": "No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO": { + "message": "fx Tremolo", + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO.summary": { + "message": "Tremelo-Effekt als Parameter für {{fx}}.", + "description": "Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO": { + "message": "fx Vibrato", + "description": "(field name) Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO.summary": { + "message": "Vibrato-Effekt als Parameter für {{fx}}.", + "description": "Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE": { + "message": "fx Trillereffekt", + "description": "(field name) Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE.summary": { + "message": "Triller-Effekt als Parameter für {{fx}}.", + "description": "Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.freq_start": { + "message": "Startfrequenz", + "description": "(field name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_start.summary": { + "message": "Startfrequenz in Hertz (Hz), eine Zahl zwischen {{0}} und {{9999}}", + "description": "Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end": { + "message": "Endfrequenz", + "description": "(field name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end.summary": { + "message": "Endfrequenz in Hertz (Hz), eine Zahl zwischen {{0}} und {{9999}}", + "description": "End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration": { + "message": "Dauer", + "description": "(field name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration.summary": { + "message": "Dauer des Klangs in Millisekunden, eine Zahl zwischen {{0}} und {{9999}}", + "description": "Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.vol_start": { + "message": "vol Start", + "description": "(field name) Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_start.summary": { + "message": "Startlautstärke, eine Zahl zwischen {{0}} und {{255}}", + "description": "Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end": { + "message": "vol Ende", + "description": "(field name) End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end.summary": { + "message": "Endlautstärke, eine Nummer zwischen {{0}} und {{255}}", + "description": "End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.waveform": { + "message": "waveform", + "description": "(field name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.waveform.summary": { + "message": "Typ der Sinuswelle, einer dieser Werte: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (zufällig generiertes Geräusch)", + "description": "Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.fx": { + "message": "fx", + "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.fx.summary": { + "message": "Effekt, der dem Sound hinzugefügt werden soll, in Frage kommende Werte: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, oder {{FX_NONE}}", + "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.shape": { + "message": "shape", + "description": "(field name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.shape.summary": { + "message": "Die Art der Interpolationskurve zwischen der Anfangs- und der Endfrequenz. Verschiedene Wellenformen haben unterschiedliche Frequenzänderungsraten. In Frage kommende Werte: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", + "description": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.__init__": { + "message": "init", + "description": "(function name) Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.summary": { + "message": "Erstelle einen neuen Soundeffekt. ", + "description": "Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.param-name.duration": { + "message": "Dauer", + "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.duration": { + "message": "Dauer des Tons in Millisekunden, eine Zahl zwischen {{0}} und {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_end": { + "message": "Endfrequenz", + "description": "(parameter name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_end": { + "message": "Endfrequenz in Hertz (Hz), eine Zahl zwischen {{0}} und {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_start": { + "message": "Startfrequenz", + "description": "(parameter name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_start": { + "message": "Startfrequenz in Hertz (Hz), eine Zahl zwischen {{0}} und {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.fx": { + "message": "fx", + "description": "(parameter name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.fx": { + "message": "Effekt, der dem Sound hinzugefügt werden soll, in Frage kommende Werte: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, oder {{FX_NONE}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.shape": { + "message": "shape", + "description": "(parameter name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.shape": { + "message": "Die Art der Interpolationskurve zwischen der Anfangs- und der Endfrequenz. Verschiedene Wellenformen haben unterschiedliche Frequenzänderungsraten. In Frage kommende Werte: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_end": { + "message": "vol Ende", + "description": "(parameter name) End volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_end": { + "message": "Endlautstärke, eine Nummer zwischen {{0}} und {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_start": { + "message": "vol Start", + "description": "(parameter name) Start volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_start": { + "message": "Startlautstärke, eine Zahl zwischen {{0}} und {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.waveform": { + "message": "waveform", + "description": "(parameter name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)." + }, + "microbit.audio.SoundEffect.__init__.param-doc.waveform": { + "message": "Typ der Sinuswelle, einer dieser Werte: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (zufällig generiertes Geräusch). ", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.copy": { + "message": "kopieren", + "description": "(function name) Create a copy of this ``SoundEffect``." + }, + "microbit.audio.SoundEffect.copy.summary": { + "message": "Erstelle eine Kopie dieses {{SoundEffect}}. ", + "description": "Create a copy of this ``SoundEffect``." + }, + "microbit.audio.AudioFrame": { + "message": "audioframe", + "description": "(class name) An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.summary": { + "message": "Ein {{AudioFrame}}-Objekt ist eine Liste von 32 Samples, von denen jedes ein vorzeichenloses Byte ist \n(ganze Zahl zwischen 0 und 255).", + "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.copyfrom": { + "message": "copyfrom", + "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.summary": { + "message": "Überschreibe die Daten in diesem {{AudioFrame}} mit den Daten einer anderen {{AudioFrame}} Instanz. ", + "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.param-name.other": { + "message": "other", + "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." + }, + "microbit.audio.AudioFrame.copyfrom.param-doc.other": { + "message": "{{AudioFrame}} Instanz von der die Daten kopiert werden sollen.", + "description": "Parameter docs" + }, + "microbit.compass": { + "message": "Kompass", + "description": "(module name) Use the built-in compass." + }, + "microbit.compass.summary": { + "message": "Benutze den eingebauten Kompass. ", + "description": "Use the built-in compass." + }, + "microbit.compass.calibrate": { + "message": "calibrate", + "description": "(function name) Starts the calibration process." + }, + "microbit.compass.calibrate.summary": { + "message": "Startet den Kalibrierungsprozess. ", + "description": "Starts the calibration process." + }, + "microbit.compass.is_calibrated": { + "message": "ist kalibriert", + "description": "(function name) Check is the compass is calibrated." + }, + "microbit.compass.is_calibrated.summary": { + "message": "Überprüfe, dass der Kompass kalibriert ist. ", + "description": "Check is the compass is calibrated." + }, + "microbit.compass.clear_calibration": { + "message": "clear calibration", + "description": "(function name) Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.clear_calibration.summary": { + "message": "Setzt die Kalibrierung zurück, sodass der Kompass nicht mehr kalibriert ist. ", + "description": "Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.get_x": { + "message": "erhalte x", + "description": "(function name) Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_x.summary": { + "message": "Ermittle die Magnetfeldstärke der {{x}}-Achse. ", + "description": "Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_y": { + "message": "erhalte y", + "description": "(function name) Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_y.summary": { + "message": "Ermittle die Magnetfeldstärke der {{y}}-Achse. ", + "description": "Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_z": { + "message": "erhalte z", + "description": "(function name) Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.get_z.summary": { + "message": "Ermittle die Magnetfeldstärke der {{z}}-Achse. ", + "description": "Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.heading": { + "message": "Ausrichtung", + "description": "(function name) Get the compass heading." + }, + "microbit.compass.heading.summary": { + "message": "Ermittle die Kompassrichtung. ", + "description": "Get the compass heading." + }, + "microbit.compass.get_field_strength": { + "message": "get field strength", + "description": "(function name) Get the magnitude of the magnetic field around the device." + }, + "microbit.compass.get_field_strength.summary": { + "message": "Ermittle die Größe des Magnetfelds um das Gerät herum.", + "description": "Get the magnitude of the magnetic field around the device." + }, + "microbit.display": { + "message": "Display", + "description": "(module name) Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.summary": { + "message": "Texte, Bilder und Animationen auf dem 5x5 LED-Display anzeigen.", + "description": "Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.get_pixel": { + "message": "Pixelwerte holen", + "description": "(function name) Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.summary": { + "message": "Ermittle die Helligkeit der LED auf Spalte {{x}} und Zeile {{y}}. ", + "description": "Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.get_pixel.param-doc.x": { + "message": "Die Anzeige-Spalte (0..4)", + "description": "Parameter docs" + }, + "microbit.display.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.get_pixel.param-doc.y": { + "message": "Die Anzeigezeile (0..4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel": { + "message": "Pixelwerte setzen", + "description": "(function name) Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.summary": { + "message": "Ändere die Helligkeit der LED auf Spalte {{x}} und Zeile {{y}}. ", + "description": "Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.param-name.value": { + "message": "wert", + "description": "(parameter name) The brightness between 0 (off) and 9 (bright)" + }, + "microbit.display.set_pixel.param-doc.value": { + "message": "Die Helligkeit zwischen 0 (aus) und 9 (am hellsten)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.set_pixel.param-doc.x": { + "message": "Die Anzeige-Spalte (0..4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.set_pixel.param-doc.y": { + "message": "Die Anzeigezeile (0..4)", + "description": "Parameter docs" + }, + "microbit.display.clear": { + "message": "löschen", + "description": "(function name) Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.clear.summary": { + "message": "Setzt die Helligkeit aller LEDs auf 0 (aus).", + "description": "Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.show": { + "message": "show", + "description": "(function name) Shows images, letters or digits on the LED display." + }, + "microbit.display.show.summary": { + "message": "Zeigt Bilder, Buchstaben oder Ziffern auf der LED-Anzeige an.", + "description": "Shows images, letters or digits on the LED display." + }, + "microbit.display.show.param-name.clear": { + "message": "löschen", + "description": "(parameter name) If ``clear`` is ``True``, the display will be cleared after the sequence has finished." + }, + "microbit.display.show.param-doc.clear": { + "message": "Wenn {{clear}} {{True}}ist, wird die Anzeige ausgeschaltet, nachdem die Sequenz beendet ist.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.delay": { + "message": "Verzögerung", + "description": "(parameter name) Each letter, digit or image is shown with ``delay`` milliseconds between them." + }, + "microbit.display.show.param-doc.delay": { + "message": "Jeder Buchstabe, Ziffer oder Bild wird mit {{delay}} Millisekunden zwischen ihnen angezeigt.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.image": { + "message": "image", + "description": "(parameter name) A string, number, image or list of images to show." + }, + "microbit.display.show.param-doc.image": { + "message": "Eine Zeichenkette, Nummer, Bild oder Liste der anzuzeigenden Bilder.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.loop": { + "message": "loop", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.show.param-doc.loop": { + "message": "Wenn {{loop}} {{True}}ist, wird sich die Animation für immer wiederholen.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.show.param-doc.wait": { + "message": "Wenn {{wait}} {{True}}ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden.", + "description": "Parameter docs" + }, + "microbit.display.scroll": { + "message": "scrollen", + "description": "(function name) Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.summary": { + "message": "Scrollt eine Zahl oder einen Text auf dem LED-Display.", + "description": "Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.param-name.delay": { + "message": "Verzögerung", + "description": "(parameter name) The ``delay`` parameter controls how fast the text is scrolling." + }, + "microbit.display.scroll.param-doc.delay": { + "message": "Der {{delay}} -Parameter bestimmt, wie schnell der Text scrollt.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.loop": { + "message": "loop", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.scroll.param-doc.loop": { + "message": "Wenn {{loop}} {{True}}ist, wird sich die Animation für immer wiederholen.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.monospace": { + "message": "Monospace", + "description": "(parameter name) If ``monospace`` is ``True``, the characters will all take up 5 pixel-columns in width, otherwise there will be exactly 1 blank pixel-column between each character as they scroll." + }, + "microbit.display.scroll.param-doc.monospace": { + "message": "Wenn {{monospace}} {{True}}ist, werden alle Zeichen 5 Pixel breit sein. Zwischen den Zeichen gibt es beim scrollen genau 1 leere Pixelspalte.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.text": { + "message": "text ", + "description": "(parameter name) The string to scroll. If ``text`` is an integer or float it is first converted to a string using ``str()``." + }, + "microbit.display.scroll.param-doc.text": { + "message": "Der zu wiederzugebende String. Wenn {{text}} eine Ganzzahl oder ein Float ist, wird er zuerst mit {{str()}} in einen String konvertiert.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.scroll.param-doc.wait": { + "message": "Wenn {{wait}} {{True}}ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden.", + "description": "Parameter docs" + }, + "microbit.display.on": { + "message": "an", + "description": "(function name) Turn on the LED display." + }, + "microbit.display.on.summary": { + "message": "Schalten Sie das LED-Display ein.", + "description": "Turn on the LED display." + }, + "microbit.display.off": { + "message": "off", + "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.off.summary": { + "message": "Schalten Sie die LED-Anzeige aus (das Deaktivieren des Displays erlaubt es Ihnen, die GPIO-Pins für andere Zwecke zu verwenden).", + "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.is_on": { + "message": "ist an", + "description": "(function name) Check whether the LED display is enabled." + }, + "microbit.display.is_on.summary": { + "message": "Überprüfen Sie, ob die LED-Anzeige aktiviert ist.", + "description": "Check whether the LED display is enabled." + }, + "microbit.display.read_light_level": { + "message": "bestimme Licht Intensität", + "description": "(function name) Read the light level." + }, + "microbit.display.read_light_level.summary": { + "message": "Bestimmt die Lichtintensität.", + "description": "Read the light level." + }, + "microbit.i2c": { + "message": "i2c", + "description": "(module name) Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.summary": { + "message": "Kommunikation mit Geräten über das I2C-Busprotokoll.", + "description": "Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.init": { + "message": "init", + "description": "(function name) Re-initialize a peripheral." + }, + "microbit.i2c.init.summary": { + "message": "Eine Peripherie neu initialisieren.", + "description": "Re-initialize a peripheral." + }, + "microbit.i2c.init.param-name.freq": { + "message": "freq", + "description": "(parameter name) clock frequency" + }, + "microbit.i2c.init.param-doc.freq": { + "message": "Taktfrequenz", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.scl": { + "message": "scl", + "description": "(parameter name) ``scl`` pin (default 19)" + }, + "microbit.i2c.init.param-doc.scl": { + "message": "{{scl}} Pin (standardmäßig 19)", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.sda": { + "message": "sda", + "description": "(parameter name) ``sda`` pin (default 20)" + }, + "microbit.i2c.init.param-doc.sda": { + "message": "{{sda}} Pin (standardmäßig 20)", + "description": "Parameter docs" + }, + "microbit.i2c.scan": { + "message": "scan", + "description": "(function name) Scan the bus for devices." + }, + "microbit.i2c.scan.summary": { + "message": "Scannt den Bus nach Geräten.", + "description": "Scan the bus for devices." + }, + "microbit.i2c.read": { + "message": "read", + "description": "(function name) Read bytes from a device." + }, + "microbit.i2c.read.summary": { + "message": "Liest Bytes von einem Gerät..", + "description": "Read bytes from a device." + }, + "microbit.i2c.read.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.read.param-doc.addr": { + "message": "Die 7-Bit-Adresse des Geräts", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.n": { + "message": "n", + "description": "(parameter name) The number of bytes to read" + }, + "microbit.i2c.read.param-doc.n": { + "message": "Die Anzahl der zu lesenden Bytes", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.repeat": { + "message": "wiederholen", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.read.param-doc.repeat": { + "message": "Wenn {{True}}wird kein Stop-Bit gesendet", + "description": "Parameter docs" + }, + "microbit.i2c.write": { + "message": "schreiben", + "description": "(function name) Write bytes to a device." + }, + "microbit.i2c.write.summary": { + "message": "Schreibe Bytes auf ein Gerät.", + "description": "Write bytes to a device." + }, + "microbit.i2c.write.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.write.param-doc.addr": { + "message": "Die 7-Bit-Adresse des Geräts", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A buffer containing the bytes to write" + }, + "microbit.i2c.write.param-doc.buf": { + "message": "Ein Puffer mit den zu schreibenden Bytes", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.repeat": { + "message": "wiederholen", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.write.param-doc.repeat": { + "message": "Wenn {{True}}wird kein Stop-Bit gesendet", + "description": "Parameter docs" + }, + "microbit.microphone": { + "message": "Mikrofon", + "description": "(module name) Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.summary": { + "message": "Reagiere auf Ton mithilfe des integrierten Mikrofons (nur V2). ", + "description": "Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.current_event": { + "message": "current event", + "description": "(function name) Get the last recorded sound event" + }, + "microbit.microphone.current_event.summary": { + "message": "Abrufen des letzten aufgezeichneten Sound-Ereignisses", + "description": "Get the last recorded sound event" + }, + "microbit.microphone.was_event": { + "message": "was event", + "description": "(function name) Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.summary": { + "message": "Überprüfung, ob seit dem letzten Anruf mindestens einmal ein Geräusch gehört wurde.", + "description": "Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.param-name.event": { + "message": "event", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.was_event.param-doc.event": { + "message": "Das Ereignis, auf das geprüft werden soll, z. B. {{SoundEvent.LOUD}} oder {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.is_event": { + "message": "is event", + "description": "(function name) Check the most recent sound event detected." + }, + "microbit.microphone.is_event.summary": { + "message": "Überprüfe das zuletzt erkannte Sound-Ereignis.", + "description": "Check the most recent sound event detected." + }, + "microbit.microphone.is_event.param-name.event": { + "message": "event", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.is_event.param-doc.event": { + "message": "Das Ereignis, auf das geprüft werden soll, z. B. {{SoundEvent.LOUD}} oder {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.get_events": { + "message": "get events", + "description": "(function name) Get the sound event history as a tuple." + }, + "microbit.microphone.get_events.summary": { + "message": "Liefert den Verlauf der Sound-Ereignisse in Form eines Tupels.", + "description": "Get the sound event history as a tuple." + }, + "microbit.microphone.set_threshold": { + "message": "set threshold", + "description": "(function name) Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.summary": { + "message": "Legt den Schwellenwert für ein Sound-Ereignis fest.", + "description": "Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.param-name.event": { + "message": "event", + "description": "(parameter name) A sound event, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``." + }, + "microbit.microphone.set_threshold.param-doc.event": { + "message": "Ein Sound-Ereignis, wie {{SoundEvent.LOUD}} oder {{SoundEvent.QUIET}}.", + "description": "Parameter docs" + }, + "microbit.microphone.set_threshold.param-name.value": { + "message": "wert", + "description": "(parameter name) The threshold level in the range 0-255." + }, + "microbit.microphone.set_threshold.param-doc.value": { + "message": "Der Schwellenwert im Bereich 0-255.", + "description": "Parameter docs" + }, + "microbit.microphone.sound_level": { + "message": "Lautstärke", + "description": "(function name) Get the sound pressure level." + }, + "microbit.microphone.sound_level.summary": { + "message": "Ermittle den Schalldruckpegel. ", + "description": "Get the sound pressure level." + }, + "microbit.speaker": { + "message": "Lautsprecher", + "description": "(module name) Control the built-in speaker (V2 only)." + }, + "microbit.speaker.summary": { + "message": "Steuere den integrierten Lautsprecher (nur V2). ", + "description": "Control the built-in speaker (V2 only)." + }, + "microbit.speaker.off": { + "message": "off", + "description": "(function name) Turn the speaker off." + }, + "microbit.speaker.off.summary": { + "message": "Lautsprecher ausschalten. ", + "description": "Turn the speaker off." + }, + "microbit.speaker.on": { + "message": "an", + "description": "(function name) Turn the speaker on." + }, + "microbit.speaker.on.summary": { + "message": "Lautsprecher einschalten. ", + "description": "Turn the speaker on." + }, + "microbit.spi": { + "message": "spi", + "description": "(module name) Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.summary": { + "message": "Kommunikation mit Geräten über die serielle Schnittstelle (SPI). ", + "description": "Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.init": { + "message": "init", + "description": "(function name) Initialize SPI communication." + }, + "microbit.spi.init.summary": { + "message": "SPI-Kommunikation initialisieren. ", + "description": "Initialize SPI communication." + }, + "microbit.spi.init.param-name.baudrate": { + "message": "baudrate", + "description": "(parameter name) The speed of communication." + }, + "microbit.spi.init.param-doc.baudrate": { + "message": "Die Übertragungsgeschwindigkeit.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.bits": { + "message": "bits", + "description": "(parameter name) The width in bits of each transfer. Currently only ``bits=8`` is supported. However, this may change in the future." + }, + "microbit.spi.init.param-doc.bits": { + "message": "Die Breite in Bits jeder Übertragung. Derzeit wird nur {{bits=8}} unterstützt. Dies kann sich jedoch in Zukunft ändern.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.miso": { + "message": "miso", + "description": "(parameter name) miso pin (default 14)" + }, + "microbit.spi.init.param-doc.miso": { + "message": "miso pin (Voreinstellung 14)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mode": { + "message": "mode", + "description": "(parameter name) Determines the combination of clock polarity and phase - `see online table `_." + }, + "microbit.spi.init.param-doc.mode": { + "message": "Legt die Kombination aus Taktpolarität und Phase fest - `siehe Online-Tabelle `_.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mosi": { + "message": "mosi", + "description": "(parameter name) mosi pin (default 15)" + }, + "microbit.spi.init.param-doc.mosi": { + "message": "MOSI Pin (standardmäßig 15)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.sclk": { + "message": "sclk", + "description": "(parameter name) sclk pin (default 13)" + }, + "microbit.spi.init.param-doc.sclk": { + "message": "SCLK Pin (standardmäßig 13)", + "description": "Parameter docs" + }, + "microbit.spi.read": { + "message": "read", + "description": "(function name) Read bytes." + }, + "microbit.spi.read.summary": { + "message": "Bytes lesen.", + "description": "Read bytes." + }, + "microbit.spi.read.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) Maximum number of bytes to read." + }, + "microbit.spi.read.param-doc.nbytes": { + "message": "Maximum der zu lesenden Bytes. ", + "description": "Parameter docs" + }, + "microbit.spi.write": { + "message": "schreiben", + "description": "(function name) Write bytes to the bus." + }, + "microbit.spi.write.summary": { + "message": "Schreibe Bytes auf den Bus. ", + "description": "Write bytes to the bus." + }, + "microbit.spi.write.param-name.buffer": { + "message": "Puffer", + "description": "(parameter name) A buffer to read data from." + }, + "microbit.spi.write.param-doc.buffer": { + "message": "Ein Puffer, von dem Daten gelesen werden.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto": { + "message": "write readinto", + "description": "(function name) Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.summary": { + "message": "Schreibe den {{out}} Zwischenspeicher (Buffer) auf den Bus und lies jede Antwort in den {{in_}} Buffer.", + "description": "Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.param-name.in_": { + "message": "in", + "description": "(parameter name) The buffer to read data from." + }, + "microbit.spi.write_readinto.param-doc.in_": { + "message": "Der Puffer, von dem Daten gelesen werden.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto.param-name.out": { + "message": "out", + "description": "(parameter name) The buffer to write any response to." + }, + "microbit.spi.write_readinto.param-doc.out": { + "message": "Der Puffer, in den eine Antwort geschrieben werden soll.", + "description": "Parameter docs" + }, + "microbit.uart": { + "message": "uart", + "description": "(module name) Communicate with a device using a serial interface." + }, + "microbit.uart.summary": { + "message": "Verbindet mit einem Gerät über eine serielle Schnittstelle.", + "description": "Communicate with a device using a serial interface." + }, + "microbit.uart.ODD": { + "message": "odd", + "description": "(field name) Odd parity" + }, + "microbit.uart.ODD.summary": { + "message": "Ungerade Parität", + "description": "Odd parity" + }, + "microbit.uart.EVEN": { + "message": "gerade", + "description": "(field name) Even parity" + }, + "microbit.uart.EVEN.summary": { + "message": "Gerade Parität", + "description": "Even parity" + }, + "microbit.uart.init": { + "message": "init", + "description": "(function name) Initialize serial communication." + }, + "microbit.uart.init.summary": { + "message": "Initialisiere die serielle Kommunikation.", + "description": "Initialize serial communication." + }, + "microbit.uart.init.param-name.baudrate": { + "message": "Baudrate", + "description": "(parameter name) The speed of communication." + }, + "microbit.uart.init.param-doc.baudrate": { + "message": "Die Übertragungsgeschwindigkeit.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.bits": { + "message": "Bits", + "description": "(parameter name) The size of bytes being transmitted. micro:bit only supports 8." + }, + "microbit.uart.init.param-doc.bits": { + "message": "Die Größe der Bytes die übertragen werden. micro:bit unterstützt nur 8.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.parity": { + "message": "Parität", + "description": "(parameter name) How parity is checked, ``None``, ``uart.ODD`` or ``uart.EVEN``." + }, + "microbit.uart.init.param-doc.parity": { + "message": "Wie Parität geprüft wird, {{None}}, {{uart.ODD}} oder {{uart.EVEN}}.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.rx": { + "message": "rx", + "description": "(parameter name) Receiving pin." + }, + "microbit.uart.init.param-doc.rx": { + "message": "Empfangspin.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.stop": { + "message": "Stop", + "description": "(parameter name) The number of stop bits, has to be 1 for micro:bit." + }, + "microbit.uart.init.param-doc.stop": { + "message": "Die Anzahl der Stopbits, muss 1 für micro:bit sein.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.tx": { + "message": "tx", + "description": "(parameter name) Transmitting pin." + }, + "microbit.uart.init.param-doc.tx": { + "message": "Sendepin.", + "description": "Parameter docs" + }, + "microbit.uart.any": { + "message": "any", + "description": "(function name) Check if any data is waiting." + }, + "microbit.uart.any.summary": { + "message": "Überprüfen Sie, ob irgendwelche Daten warten.", + "description": "Check if any data is waiting." + }, + "microbit.uart.read": { + "message": "read", + "description": "(function name) Read bytes." + }, + "microbit.uart.read.summary": { + "message": "Bytes lesen.", + "description": "Read bytes." + }, + "microbit.uart.read.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read as many bytes as possible" + }, + "microbit.uart.read.param-doc.nbytes": { + "message": "Wenn {{nbytes}} angegeben ist, werden höchstens so viele Bytes gelesen. Andernfalls werden so viele Bytes wie möglich gelesen.", + "description": "Parameter docs" + }, + "microbit.uart.readinto": { + "message": "readinto", + "description": "(function name) Read bytes into the ``buf``." + }, + "microbit.uart.readinto.summary": { + "message": "Lese Bytes in {{buf}}.", + "description": "Read bytes into the ``buf``." + }, + "microbit.uart.readinto.param-name.buf": { + "message": "buf", + "description": "(parameter name) The buffer to write to." + }, + "microbit.uart.readinto.param-doc.buf": { + "message": "Der Puffer, in den geschrieben werden soll.", + "description": "Parameter docs" + }, + "microbit.uart.readinto.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read ``len(buf)`` bytes." + }, + "microbit.uart.readinto.param-doc.nbytes": { + "message": "Wenn {{nbytes}} angegeben ist, werden höchstens so viele Bytes gelesen. Andernfalls werden {{len(buf)}} Bytes gelesen.", + "description": "Parameter docs" + }, + "microbit.uart.readline": { + "message": "readline", + "description": "(function name) Read a line, ending in a newline character." + }, + "microbit.uart.readline.summary": { + "message": "Liest eine Zeile bis zum Zeilenumbruch.", + "description": "Read a line, ending in a newline character." + }, + "microbit.uart.write": { + "message": "schreiben", + "description": "(function name) Write a buffer to the bus." + }, + "microbit.uart.write.summary": { + "message": "Schreibt einen Puffer auf den Bus.", + "description": "Write a buffer to the bus." + }, + "microbit.uart.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A bytes object or a string." + }, + "microbit.uart.write.param-doc.buf": { + "message": "Ein Byte-Objekt oder ein String. ", + "description": "Parameter docs" + }, + "micropython": { + "message": "micropython", + "description": "(module name) MicroPython internals." + }, + "micropython.summary": { + "message": "MicroPython Grundlagen.", + "description": "MicroPython internals." + }, + "micropython.const": { + "message": "const", + "description": "(function name) Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.summary": { + "message": "Wird verwendet, um zu deklarieren, dass der Ausdruck eine Konstante ist, damit der Compiler ihn optimieren kann.", + "description": "Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.param-name.expr": { + "message": "expr", + "description": "(parameter name) A constant expression." + }, + "micropython.const.param-doc.expr": { + "message": "Ein konstant bleibender Ausdruck.", + "description": "Parameter docs" + }, + "micropython.opt_level-1": { + "message": "opt level", + "description": "(function name) Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-1.summary": { + "message": "Ermittelt die aktuelle Optimierungsstufe für die Kompilierung von Skripten.", + "description": "Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-2": { + "message": "opt level", + "description": "(function name) Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.summary": { + "message": "Legt die Optimierungsstufe für die nachfolgende Kompilierung von Skripten fest.", + "description": "Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.param-name.level": { + "message": "level", + "description": "(parameter name) An integer optimisation level." + }, + "micropython.opt_level-2.param-doc.level": { + "message": "Eine ganzzahlige Optimierungsstufe.", + "description": "Parameter docs" + }, + "micropython.mem_info": { + "message": "mem info", + "description": "(function name) Print information about currently used memory." + }, + "micropython.mem_info.summary": { + "message": "Gibt Informationen über den aktuell verwendeten Speicher zurück.", + "description": "Print information about currently used memory." + }, + "micropython.mem_info.param-name.verbose": { + "message": "verbose", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.mem_info.param-doc.verbose": { + "message": "Wenn das Argument {{verbose}} angegeben wird, werden zusätzliche Informationen ausgegeben.", + "description": "Parameter docs" + }, + "micropython.qstr_info": { + "message": "qstr info", + "description": "(function name) Print information about currently interned strings." + }, + "micropython.qstr_info.summary": { + "message": "Gibt Informationen zu aktuell eingebetteten Strings zurück.", + "description": "Print information about currently interned strings." + }, + "micropython.qstr_info.param-name.verbose": { + "message": "verbose", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.qstr_info.param-doc.verbose": { + "message": "Wenn das Argument {{verbose}} angegeben wird, werden zusätzliche Informationen ausgegeben.", + "description": "Parameter docs" + }, + "micropython.stack_use": { + "message": "stack use", + "description": "(function name) Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.stack_use.summary": { + "message": "Gibt einen Integerwert zurück, der dem aktuell verwendeten Stack-Speicher entspricht.", + "description": "Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.heap_lock": { + "message": "heap lock", + "description": "(function name) Lock the heap." + }, + "micropython.heap_lock.summary": { + "message": "Heap-Speicher sperren.", + "description": "Lock the heap." + }, + "micropython.heap_unlock": { + "message": "heap unlock", + "description": "(function name) Unlock the heap." + }, + "micropython.heap_unlock.summary": { + "message": "Heap-Speicher entsperren.", + "description": "Unlock the heap." + }, + "micropython.kbd_intr": { + "message": "kbd intr", + "description": "(function name) Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.summary": { + "message": "Zeichen festlegen, das eine {{KeyboardInterrupt}}-Exception auslöst.", + "description": "Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.param-name.chr": { + "message": "chr", + "description": "(parameter name) Character code to raise the interrupt or -1 to disable capture of Ctrl-C." + }, + "micropython.kbd_intr.param-doc.chr": { + "message": "Zeichencode, um den Interrupt auszulösen, oder -1, um die Erfassung von Ctrl-C zu deaktivieren.", + "description": "Parameter docs" + }, + "music": { + "message": "Musik", + "description": "(module name) Create and play melodies." + }, + "music.summary": { + "message": "Erstelle und spiele Lieder.", + "description": "Create and play melodies." + }, + "music.DADADADUM": { + "message": "dadadadaam", + "description": "(field name) Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.DADADADUM.summary": { + "message": "Melodie: der Anfang von Beethovens 5. Symphonie in c-Moll.", + "description": "Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.ENTERTAINER": { + "message": "Entertainer", + "description": "(field name) Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.ENTERTAINER.summary": { + "message": "Melodie: die ersten Takte des Ragtime-Klassikers \"The Entertainer\" von Scott Joplin.", + "description": "Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.PRELUDE": { + "message": "prelude", + "description": "(field name) Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.PRELUDE.summary": { + "message": "Melodie: Beginn des ersten Präludiums in C-Dur der 48 Präludien und Fugen von J.S. Bach.", + "description": "Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.ODE": { + "message": "Ode", + "description": "(field name) Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.ODE.summary": { + "message": "Melodie: Die „Ode an die Freude“ von Beethovens neunter Symphonie in d-Moll.", + "description": "Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.NYAN": { + "message": "Nyan", + "description": "(field name) Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.NYAN.summary": { + "message": "Melodie: Die Nyan-Katze (http://www.nyan.cat/)", + "description": "Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.RINGTONE": { + "message": "Klingelton", + "description": "(field name) Melody: something that sounds like a mobile phone ringtone." + }, + "music.RINGTONE.summary": { + "message": "Melodie: Etwas das wie ein Handy-Klingelton klingt.", + "description": "Melody: something that sounds like a mobile phone ringtone." + }, + "music.FUNK": { + "message": "Funk", + "description": "(field name) Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.FUNK.summary": { + "message": "Melodie: eine funkige Basslinie für Geheimagenten und Superschurken.", + "description": "Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.BLUES": { + "message": "Blues", + "description": "(field name) Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BLUES.summary": { + "message": "Melodie: ein 12-taktiger Boogie-Woogie-Blues mit Walking Bass.", + "description": "Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BIRTHDAY": { + "message": "Geburtstag", + "description": "(field name) Melody: “Happy Birthday to You…”" + }, + "music.BIRTHDAY.summary": { + "message": "Melodie: „Alles Gute zum Geburtstag…“", + "description": "Melody: “Happy Birthday to You…”" + }, + "music.WEDDING": { + "message": "Hochzeit", + "description": "(field name) Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.WEDDING.summary": { + "message": "Melodie: der Hochzeitschor aus Wagners Oper \"Lohengrin\".", + "description": "Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.FUNERAL": { + "message": "Beerdigung", + "description": "(field name) Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.FUNERAL.summary": { + "message": "Melodie: der \"Trauermarsch\", auch bekannt als Frédéric Chopins Klaviersonate Nr. 2 in b-Moll, op. 35.", + "description": "Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.PUNCHLINE": { + "message": "punchline", + "description": "(field name) Melody: a fun fragment that signifies a joke has been made." + }, + "music.PUNCHLINE.summary": { + "message": "Melodie: ein lustiges Fragment, das anzeigt, dass ein Scherz gemacht worden ist.", + "description": "Melody: a fun fragment that signifies a joke has been made." + }, + "music.PYTHON": { + "message": "python", + "description": "(field name) Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.PYTHON.summary": { + "message": "Melodie: John Philip Sousas Marsch \"Liberty Bell\", auch bekannt als das Thema von \"Monty Python's Flying Circus\" (nach dem die Programmiersprache Python benannt ist).", + "description": "Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.BADDY": { + "message": "baddy", + "description": "(field name) Melody: silent movie era entrance of a baddy." + }, + "music.BADDY.summary": { + "message": "Melodie: Auftritt eines Stummfilm-Bösewichts.", + "description": "Melody: silent movie era entrance of a baddy." + }, + "music.CHASE": { + "message": "chase", + "description": "(field name) Melody: silent movie era chase scene." + }, + "music.CHASE.summary": { + "message": "Melodie: Stummfilm-Verfolgungsszene.", + "description": "Melody: silent movie era chase scene." + }, + "music.BA_DING": { + "message": "ba ding", + "description": "(field name) Melody: a short signal to indicate something has happened." + }, + "music.BA_DING.summary": { + "message": "Melodie: ein kurzes Signal, um anzuzeigen, dass etwas passiert ist.", + "description": "Melody: a short signal to indicate something has happened." + }, + "music.WAWAWAWAA": { + "message": "wawawawaa", + "description": "(field name) Melody: a very sad trombone." + }, + "music.WAWAWAWAA.summary": { + "message": "Melody: Eine sehr traurige Posaune.", + "description": "Melody: a very sad trombone." + }, + "music.JUMP_UP": { + "message": "jump up", + "description": "(field name) Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_UP.summary": { + "message": "Melodie: zur Verwendung in einem Spiel, um eine Aufwärtsbewegung zu untermalen.", + "description": "Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_DOWN": { + "message": "jump down", + "description": "(field name) Melody: for use in a game, indicating downward movement." + }, + "music.JUMP_DOWN.summary": { + "message": "Melodie: zur Verwendung in einem Spiel, um eine Abwärtsbewegung zu untermalen.", + "description": "Melody: for use in a game, indicating downward movement." + }, + "music.POWER_UP": { + "message": "power up", + "description": "(field name) Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_UP.summary": { + "message": "Melodie: eine Fanfare, die einen Erfolg anzeigt oder dass etwas freigeschalten wurde.", + "description": "Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_DOWN": { + "message": "power down", + "description": "(field name) Melody: a sad fanfare to indicate an achievement lost." + }, + "music.POWER_DOWN.summary": { + "message": "Melodie: eine traurige Fanfare, wenn etwas nicht geklappt hat.", + "description": "Melody: a sad fanfare to indicate an achievement lost." + }, + "music.set_tempo": { + "message": "set tempo", + "description": "(function name) Sets the approximate tempo for playback." + }, + "music.set_tempo.summary": { + "message": "Legt das ungefähre Tempo für die Wiedergabe fest.", + "description": "Sets the approximate tempo for playback." + }, + "music.set_tempo.param-name.bpm": { + "message": "bpm", + "description": "(parameter name) An integer determining how many beats per minute." + }, + "music.set_tempo.param-doc.bpm": { + "message": "Ein Integerwert, der die Beats pro Minute angibt.", + "description": "Parameter docs" + }, + "music.set_tempo.param-name.ticks": { + "message": "ticks", + "description": "(parameter name) The number of ticks constituting a beat." + }, + "music.set_tempo.param-doc.ticks": { + "message": "Die Anzahl der Ticks in einem Beat.", + "description": "Parameter docs" + }, + "music.get_tempo": { + "message": "get tempo", + "description": "(function name) Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.get_tempo.summary": { + "message": "Gibt das aktuelle Tempo als Tupel von Integerwerten zurück: {{(ticks, bpm)}}.", + "description": "Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.play": { + "message": "play", + "description": "(function name) Plays music." + }, + "music.play.summary": { + "message": "Spielt Musik.", + "description": "Plays music." + }, + "music.play.param-name.loop": { + "message": "loop", + "description": "(parameter name) If ``loop`` is set to ``True``, the tune repeats until ``stop`` is called or the blocking call is interrupted." + }, + "music.play.param-doc.loop": { + "message": "Wenn {{loop}} auf {{True}} gesetzt ist, wird die Melodie wiederholt, bis {{stop}} aufgerufen oder der blockierende Aufruf unterbrochen wird.", + "description": "Parameter docs" + }, + "music.play.param-name.music": { + "message": "Musik", + "description": "(parameter name) music specified in `a special notation `_" + }, + "music.play.param-doc.music": { + "message": "Musik, die in `einer speziellen Notation `_ angegeben ist", + "description": "Parameter docs" + }, + "music.play.param-name.pin": { + "message": "pin", + "description": "(parameter name) the output pin for use with an external speaker (default ``pin0``), ``None`` for no sound." + }, + "music.play.param-doc.pin": { + "message": "der Ausgangspin zur Verwendung mit einem externen Lautsprecher (Voreinstellung {{pin0}}), {{None}} für keinen Ton.", + "description": "Parameter docs" + }, + "music.play.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.play.param-doc.wait": { + "message": "Wenn {{wait}} auf {{True}} gesetzt ist, stoppt diese Funktion die weitere Codeausführung.", + "description": "Parameter docs" + }, + "music.pitch": { + "message": "Tonhöhe", + "description": "(function name) Play a note." + }, + "music.pitch.summary": { + "message": "Musiknoten spielen", + "description": "Play a note." + }, + "music.pitch.param-name.duration": { + "message": "Dauer", + "description": "(parameter name) A millisecond duration. If negative then sound is continuous until the next call or a call to ``stop``." + }, + "music.pitch.param-doc.duration": { + "message": "Eine Dauer in Millisekunden. Bei negativem Wert erhält man bis zum nächsten Aufruf oder einem Aufruf von {{stop}} einen Dauerton.", + "description": "Parameter docs" + }, + "music.pitch.param-name.frequency": { + "message": "Frequenz", + "description": "(parameter name) An integer frequency" + }, + "music.pitch.param-doc.frequency": { + "message": "Eine ganzzahlige Frequenz", + "description": "Parameter docs" + }, + "music.pitch.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional output pin (default ``pin0``)." + }, + "music.pitch.param-doc.pin": { + "message": "Optionaler Ausgabepin (Standard {{pin0}}).", + "description": "Parameter docs" + }, + "music.pitch.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.pitch.param-doc.wait": { + "message": "Wenn {{wait}} auf {{True}} gesetzt ist, stoppt diese Funktion die weitere Codeausführung.", + "description": "Parameter docs" + }, + "music.stop": { + "message": "stop", + "description": "(function name) Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.summary": { + "message": "Stoppt die Musikwiedergabe über den eingebauten Lautsprecher sowie jeden Pin, der Sound ausgibt.", + "description": "Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.param-name.pin": { + "message": "pin", + "description": "(parameter name) An optional argument can be provided to specify a pin, e.g. ``music.stop(pin1)``." + }, + "music.stop.param-doc.pin": { + "message": "Ein optionales Argument kann zur Angabe eines Pins angegeben werden, z. B. {{music.stop(pin1)}}.", + "description": "Parameter docs" + }, + "music.reset": { + "message": "zurücksetzen", + "description": "(function name) Resets ticks, bpm, duration and octave to their default values." + }, + "music.reset.summary": { + "message": "Setzt Ticks, bpm, Dauer und Oktave auf ihre Standardwerte zurück.", + "description": "Resets ticks, bpm, duration and octave to their default values." + }, + "neopixel": { + "message": "neopixel", + "description": "(module name) Individually addressable RGB and RGBW LED strips." + }, + "neopixel.summary": { + "message": "Individuell adressierbare RGB- und RGBW-LED-Streifen.", + "description": "Individually addressable RGB and RGBW LED strips." + }, + "neopixel.NeoPixel.__init__": { + "message": "init", + "description": "(function name) Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.summary": { + "message": "Initialisierung eines neuen Streifens von Neopixel-LEDs, die über einen Pin gesteuert werden.", + "description": "Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.param-name.bpp": { + "message": "bpp", + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + }, + "neopixel.NeoPixel.__init__.param-doc.bpp": { + "message": "Bytes pro Pixel. Für die RGBW Neopixel-Unterstützung, müssen 4 statt der standardmäßigen 3 Bytes pro Pixel für RGB und GRB übergeben werden.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.n": { + "message": "n", + "description": "(parameter name) The number of neopixels in the strip." + }, + "neopixel.NeoPixel.__init__.param-doc.n": { + "message": "Die Anzahl der Neopixel auf dem Streifen.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.pin": { + "message": "pin", + "description": "(parameter name) The pin controlling the neopixel strip." + }, + "neopixel.NeoPixel.__init__.param-doc.pin": { + "message": "Der Pin, der den Neopixelstreifen steuert.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.clear": { + "message": "löschen", + "description": "(function name) Clear all the pixels." + }, + "neopixel.NeoPixel.clear.summary": { + "message": "Lösche alle Pixel.", + "description": "Clear all the pixels." + }, + "neopixel.NeoPixel.show": { + "message": "show", + "description": "(function name) Show the pixels." + }, + "neopixel.NeoPixel.show.summary": { + "message": "Die Pixel anzeigen.", + "description": "Show the pixels." + }, + "neopixel.NeoPixel.write": { + "message": "schreiben", + "description": "(function name) Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.write.summary": { + "message": "Pixel anzeigen (nur micro:bit V2)", + "description": "Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill": { + "message": "fill", + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.summary": { + "message": "Alle Pixel mit einem bestimmten RGB/RGBW-Wert färben.", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.param-name.colour": { + "message": "Farbe", + "description": "(parameter name) A tuple of the same length as the number of bytes per pixel (bpp)." + }, + "neopixel.NeoPixel.fill.param-doc.colour": { + "message": "Ein Tupel mit der gleichen Länge wie die Anzahl der Bytes pro Pixel (bpp).", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__": { + "message": "setitem", + "description": "(function name) Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.summary": { + "message": "Eine Pixelfarbe festlegen.", + "description": "Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.param-name.key": { + "message": "key", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__setitem__.param-doc.key": { + "message": "Die Pixelnummer.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__.param-name.value": { + "message": "wert", + "description": "(parameter name) The colour." + }, + "neopixel.NeoPixel.__setitem__.param-doc.value": { + "message": "Die Farbe.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__getitem__": { + "message": "getitem", + "description": "(function name) Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.summary": { + "message": "Eine Pixelfarbe erfassen.", + "description": "Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.param-name.key": { + "message": "key", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__getitem__.param-doc.key": { + "message": "Die Pixelnummer.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__len__": { + "message": "len", + "description": "(function name) Get length of this pixel strip." + }, + "neopixel.NeoPixel.__len__.summary": { + "message": "Erhalte die Länge des Pixelstreifens.", + "description": "Get length of this pixel strip." + }, + "os": { + "message": "os", + "description": "(module name) Access the file system." + }, + "os.summary": { + "message": "Auf das Dateisystem zugreifen.", + "description": "Access the file system." + }, + "os.listdir": { + "message": "listdir", + "description": "(function name) List files." + }, + "os.listdir.summary": { + "message": "Dateien auflisten.", + "description": "List files." + }, + "os.remove": { + "message": "Entfernen", + "description": "(function name) Remove (delete) a file." + }, + "os.remove.summary": { + "message": "Entferne (lösche) eine Datei.", + "description": "Remove (delete) a file." + }, + "os.remove.param-name.filename": { + "message": "Dateiname", + "description": "(parameter name) The file to delete." + }, + "os.remove.param-doc.filename": { + "message": "Die zu löschende Datei.", + "description": "Parameter docs" + }, + "os.size": { + "message": "size", + "description": "(function name) Returns the size of a file." + }, + "os.size.summary": { + "message": "Gibt die Größe einer Datei zurück", + "description": "Returns the size of a file." + }, + "os.size.param-name.filename": { + "message": "Dateiname", + "description": "(parameter name) The file" + }, + "os.size.param-doc.filename": { + "message": "Die Datei", + "description": "Parameter docs" + }, + "os.uname_result": { + "message": "uname result", + "description": "(class name) Result of ``os.uname()``" + }, + "os.uname_result.summary": { + "message": "Ergebnis von {{os.uname()}}", + "description": "Result of ``os.uname()``" + }, + "os.uname_result.sysname": { + "message": "sysname", + "description": "(field name) Operating system name." + }, + "os.uname_result.sysname.summary": { + "message": "Name des Betriebssystems.", + "description": "Operating system name." + }, + "os.uname_result.nodename": { + "message": "Knotenname", + "description": "(field name) Name of machine on network (implementation-defined)." + }, + "os.uname_result.nodename.summary": { + "message": "Name des Rechners im Netz (durch die Implementierung definiert).", + "description": "Name of machine on network (implementation-defined)." + }, + "os.uname_result.release": { + "message": "Veröffentlichung", + "description": "(field name) Operating system release." + }, + "os.uname_result.release.summary": { + "message": "Betriebssystemveröffentlichung.", + "description": "Operating system release." + }, + "os.uname_result.version": { + "message": "Version", + "description": "(field name) Operating system version." + }, + "os.uname_result.version.summary": { + "message": "Betriebssystemversion.", + "description": "Operating system version." + }, + "os.uname_result.machine": { + "message": "maschine", + "description": "(field name) Hardware identifier." + }, + "os.uname_result.machine.summary": { + "message": "Hardware-Kennung.", + "description": "Hardware identifier." + }, + "os.uname": { + "message": "uname", + "description": "(function name) Returns information identifying the current operating system." + }, + "os.uname.summary": { + "message": "Gibt Informationen zum aktuellen Betriebssystem zurück.", + "description": "Returns information identifying the current operating system." + }, + "radio": { + "message": "radio", + "description": "(module name) Communicate between micro:bits with the built-in radio." + }, + "radio.summary": { + "message": "Kommunikation zwischen micro:bits mit dem integrierten Funk.", + "description": "Communicate between micro:bits with the built-in radio." + }, + "radio.RATE_1MBIT": { + "message": "rate 1mbit", + "description": "(field name) Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_1MBIT.summary": { + "message": "Konstante zur Angabe eines Durchsatzes von 1 MBit pro Sekunde.", + "description": "Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_2MBIT": { + "message": "rate 2mbit", + "description": "(field name) Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.RATE_2MBIT.summary": { + "message": "Konstante zur Angabe eines Durchsatzes von 2 MBit pro Sekunde.", + "description": "Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.on": { + "message": "an", + "description": "(function name) Turns the radio on." + }, + "radio.on.summary": { + "message": "Schaltet den Funk ein.", + "description": "Turns the radio on." + }, + "radio.off": { + "message": "off", + "description": "(function name) Turns off the radio, saving power and memory." + }, + "radio.off.summary": { + "message": "Schaltet den Funk aus, um Strom und Speicherplatz zu sparen.", + "description": "Turns off the radio, saving power and memory." + }, + "radio.config": { + "message": "config", + "description": "(function name) Configures the radio." + }, + "radio.config.summary": { + "message": "Konfiguriert den Funk.", + "description": "Configures the radio." + }, + "radio.config.param-name.address": { + "message": "adresse", + "description": "(parameter name) (default=0x75626974) an arbitrary name, expressed as a 32-bit address, that's used to filter incoming packets at the hardware level, keeping only those that match the address you set.\nThe default used by other micro:bit related platforms is the default setting used here." + }, + "radio.config.param-doc.address": { + "message": "(default=0x75626974) ein beliebiger Name, ausgedrückt als 32-Bit-Adresse, der verwendet wird, um eingehende Pakete auf der Hardware-Ebene zu filtern und nur diejenigen zu behalten, die mit der eingestellten Adresse übereinstimmen. \nDie Standardeinstellung, die von anderen micro:bit-verwandten Plattformen verwendet wird, wird auch hier verwendet.", + "description": "Parameter docs" + }, + "radio.config.param-name.channel": { + "message": "channel", + "description": "(parameter name) (default=7) an integer value from 0 to 83 (inclusive) that defines an arbitrary \"channel\" to which the radio is tuned.\nMessages will be sent via this channel and only messages received via this channel will be put onto the incoming message queue. Each step is 1MHz wide, based at 2400MHz." + }, + "radio.config.param-doc.channel": { + "message": "(default=7) ein Integer-Wert zwischen 0 und 83 (einschließlich), der einen beliebigen \"Kanal\" definiert, auf den der Funk eingestellt ist.\nNachrichten werden über diesen Kanal gesendet und nur Nachrichten, die über diesen Kanal empfangen werden, werden in die Warteschlange der eingehenden Nachricht aufgenommen. Jeder Schritt ist 1MHz breit, beginnend mit 2400MHz.", + "description": "Parameter docs" + }, + "radio.config.param-name.data_rate": { + "message": "data rate", + "description": "(parameter name) (default=``radio.RATE_1MBIT``) indicates the speed at which data throughput takes place.\nCan be one of the following constants defined in the ``radio`` module: ``RATE_250KBIT``, ``RATE_1MBIT`` or ``RATE_2MBIT``." + }, + "radio.config.param-doc.data_rate": { + "message": "(default={{radio.RATE_1MBIT}}) zeigt die Geschwindigkeit an, mit der der Datendurchsatz stattfindet.\nKann eine der folgenden Konstanten sein, die im Modul {{radio}} definiert sind: {{RATE_250KBIT}}, {{RATE_1MBIT}} oder {{RATE_2MBIT}}.", + "description": "Parameter docs" + }, + "radio.config.param-name.group": { + "message": "group", + "description": "(parameter name) (default=0) an 8-bit value (0-255) used with the ``address`` when filtering messages.\nConceptually, \"address\" is like a house/office address and \"group\" is like the person at that address to which you want to send your message." + }, + "radio.config.param-doc.group": { + "message": "(default=0) ein 8-Bit-Wert (0-255), der zusammen mit {{address}} beim Filtern von Nachrichten verwendet wird. \"address\" ist wie eine Haus-/Büroadresse und \"group\" ist wie die Person an dieser Adresse, an die die Nachricht gesendet werden soll.", + "description": "Parameter docs" + }, + "radio.config.param-name.length": { + "message": "length", + "description": "(parameter name) (default=32) defines the maximum length, in bytes, of a message sent via the radio.\nIt can be up to 251 bytes long (254 - 3 bytes for S0, LENGTH and S1 preamble)." + }, + "radio.config.param-doc.length": { + "message": "(default=32) legt die maximale Länge einer über Funk gesendeten Nachricht in Bytes fest. Sie kann bis zu 251 Bytes lang sein (254 - 3 Bytes für S0, LENGTH und S1-Präambel).", + "description": "Parameter docs" + }, + "radio.config.param-name.power": { + "message": "power", + "description": "(parameter name) (default=6) is an integer value from 0 to 7 (inclusive) to indicate the strength of signal used when broadcasting a message.\nThe higher the value the stronger the signal, but the more power is consumed by the device. The numbering translates to positions in the following list of dBm (decibel milliwatt) values: -30, -20, -16, -12, -8, -4, 0, 4." + }, + "radio.config.param-doc.power": { + "message": "(default=6) ist ein ganzzahliger Wert von 0 bis 7 (einschließlich), der die Stärke des Signals angibt, das beim Senden einer Nachricht verwendet wird. Je höher der Wert, desto stärker ist das Signal, aber desto mehr Strom wird vom Gerät verbraucht. Die Nummerierung entspricht den Positionen in der folgenden Liste von dBm-Werten (Dezibel Milliwatt): -30, -20, -16, -12, -8, -4, 0, 4.", + "description": "Parameter docs" + }, + "radio.config.param-name.queue": { + "message": "queue", + "description": "(parameter name) (default=3) specifies the number of messages that can be stored on the incoming message queue.\nIf there are no spaces left on the queue for incoming messages, then the incoming message is dropped." + }, + "radio.config.param-doc.queue": { + "message": "(default=3) gibt die Anzahl der Nachrichten an, die in der Warteschlange für eingehende Nachrichten gespeichert werden können. Wenn in der Warteschlange kein Platz mehr für eingehende Nachrichten ist, wird die eingehende Nachricht verworfen.", + "description": "Parameter docs" + }, + "radio.reset": { + "message": "zurücksetzen", + "description": "(function name) Reset the settings to their default values." + }, + "radio.reset.summary": { + "message": "Setzt die Einstellungen auf ihre Standardwerte zurück.", + "description": "Reset the settings to their default values." + }, + "radio.send_bytes": { + "message": "send bytes", + "description": "(function name) Sends a message containing bytes." + }, + "radio.send_bytes.summary": { + "message": "Sendet eine Nachricht bestehend aus Bytes.", + "description": "Sends a message containing bytes." + }, + "radio.send_bytes.param-name.message": { + "message": "message", + "description": "(parameter name) The bytes to send." + }, + "radio.send_bytes.param-doc.message": { + "message": "Die zu sendenden Bytes.", + "description": "Parameter docs" + }, + "radio.receive_bytes": { + "message": "receive bytes", + "description": "(function name) Receive the next incoming message on the message queue." + }, + "radio.receive_bytes.summary": { + "message": "Empfängt die nächste eingehende Nachricht in der Nachrichtenwarteschlange.", + "description": "Receive the next incoming message on the message queue." + }, + "radio.receive_bytes_into": { + "message": "receive bytes into", + "description": "(function name) Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.summary": { + "message": "Kopiert die nächste eingehende Nachricht in der Nachrichtenwarteschlange in einen Puffer.", + "description": "Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.param-name.buffer": { + "message": "Puffer", + "description": "(parameter name) The target buffer. The message is truncated if larger than the buffer." + }, + "radio.receive_bytes_into.param-doc.buffer": { + "message": "Der Zielpuffer. Die Nachricht wird abgeschnitten, wenn sie größer als der Puffer ist.", + "description": "Parameter docs" + }, + "radio.send": { + "message": "send", + "description": "(function name) Sends a message string." + }, + "radio.send.summary": { + "message": "Sendet eine Nachricht als String.", + "description": "Sends a message string." + }, + "radio.send.param-name.message": { + "message": "message", + "description": "(parameter name) The string to send." + }, + "radio.send.param-doc.message": { + "message": "Der zu sendende String.", + "description": "Parameter docs" + }, + "radio.receive": { + "message": "receive", + "description": "(function name) Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive.summary": { + "message": "Funktioniert genauso wie {{receive_bytes}}, gibt aber zurück, was gesendet wurde.", + "description": "Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive_full": { + "message": "receive full", + "description": "(function name) Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "radio.receive_full.summary": { + "message": "Gibt ein Tupel mit drei Werten zurück, die die nächste eingehende Nachricht in der Nachrichtenwarteschlange darstellen.", + "description": "Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "random": { + "message": "random", + "description": "(module name) Generate random numbers." + }, + "random.summary": { + "message": "Gibt eine Zufallszahl zurück.", + "description": "Generate random numbers." + }, + "random.getrandbits": { + "message": "getrandbits", + "description": "(function name) Generate an integer with ``n`` random bits." + }, + "random.getrandbits.summary": { + "message": "Erzeugt einen Integerwert mit {{n}} zufälligen Bits.", + "description": "Generate an integer with ``n`` random bits." + }, + "random.getrandbits.param-name.n": { + "message": "n", + "description": "(parameter name) A value between 1-30 (inclusive)." + }, + "random.getrandbits.param-doc.n": { + "message": "Ein Wert zwischen 1-30 (einschließlich).", + "description": "Parameter docs" + }, + "random.seed": { + "message": "seed", + "description": "(function name) Initialize the random number generator." + }, + "random.seed.summary": { + "message": "Initialisiert den Zufallszahlengenerator.", + "description": "Initialize the random number generator." + }, + "random.seed.param-name.n": { + "message": "n", + "description": "(parameter name) The integer seed" + }, + "random.seed.param-doc.n": { + "message": "Der Integer-Seed", + "description": "Parameter docs" + }, + "random.randint": { + "message": "randint", + "description": "(function name) Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.summary": { + "message": "Wählt eine zufällige Ganzzahl zwischen {{a}} und {{b}} (einschließlich) aus.", + "description": "Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.randint.param-doc.a": { + "message": "Anfangswert für den Bereich (inklusiv)", + "description": "Parameter docs" + }, + "random.randint.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.randint.param-doc.b": { + "message": "Endwert für den Bereich (inklusiv)", + "description": "Parameter docs" + }, + "random.randrange-1": { + "message": "randrange", + "description": "(function name) Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.summary": { + "message": "Wählt eine zufällige Ganzzahl zwischen Null und {{stop}} (exklusiv) aus.", + "description": "Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.param-name.stop": { + "message": "stop", + "description": "(parameter name) End value for the range (exclusive)" + }, + "random.randrange-1.param-doc.stop": { + "message": "Endwert für den Bereich (exklusiv)", + "description": "Parameter docs" + }, + "random.randrange-2": { + "message": "randrange", + "description": "(function name) Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.summary": { + "message": "Wählt ein zufälliges Element aus {{range(start, stop, step)}}.", + "description": "Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.param-name.start": { + "message": "start", + "description": "(parameter name) The start of the range (inclusive)" + }, + "random.randrange-2.param-doc.start": { + "message": "Anfang des Bereichs (inklusiv)", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.step": { + "message": "step", + "description": "(parameter name) The step." + }, + "random.randrange-2.param-doc.step": { + "message": "Schrittweite", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.stop": { + "message": "stop", + "description": "(parameter name) The end of the range (exclusive)" + }, + "random.randrange-2.param-doc.stop": { + "message": "Das Ende des Bereichs (exklusiv)", + "description": "Parameter docs" + }, + "random.choice": { + "message": "choice", + "description": "(function name) Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.summary": { + "message": "Wählt ein zufälliges Element aus der nicht leeren Sequenz {{seq}}.", + "description": "Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.param-name.seq": { + "message": "seq", + "description": "(parameter name) A sequence." + }, + "random.choice.param-doc.seq": { + "message": "Eine Sequenz.", + "description": "Parameter docs" + }, + "random.random": { + "message": "random", + "description": "(function name) Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.random.summary": { + "message": "Erzeugt eine zufällige Fließkommazahl im Bereich [0.0, 1.0).", + "description": "Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.uniform": { + "message": "uniform", + "description": "(function name) Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.summary": { + "message": "Gibt eine zufällige Fließkommazahl zwischen {{a}} und {{b}} inklusiv aus.", + "description": "Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.uniform.param-doc.a": { + "message": "Anfangswert für den Bereich (inklusiv)", + "description": "Parameter docs" + }, + "random.uniform.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.uniform.param-doc.b": { + "message": "Endwert für den Bereich (inklusiv)", + "description": "Parameter docs" + }, + "speech": { + "message": "speech", + "description": "(module name) Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.summary": { + "message": "Bringe den micro:bit dazu zu Sprechen, zu Singen und andere sprachähnliche Geräusche zu machen.", + "description": "Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.translate": { + "message": "translate", + "description": "(function name) Translate English words to phonemes." + }, + "speech.translate.summary": { + "message": "Übersetze englische Wörter in Sprache.", + "description": "Translate English words to phonemes." + }, + "speech.translate.param-name.words": { + "message": "Wörter", + "description": "(parameter name) A string of English words." + }, + "speech.translate.param-doc.words": { + "message": "Ein String englischer Wörter.", + "description": "Parameter docs" + }, + "speech.pronounce": { + "message": "pronounce", + "description": "(function name) Pronounce phonemes." + }, + "speech.pronounce.summary": { + "message": "Laute aussprechen.", + "description": "Pronounce phonemes." + }, + "speech.pronounce.param-name.mouth": { + "message": "Mund", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.pronounce.param-doc.mouth": { + "message": "Eine Zahl, die den Mund der Stimme repräsentiert", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.phonemes": { + "message": "Phoneme", + "description": "(parameter name) The string of phonemes to pronounce" + }, + "speech.pronounce.param-doc.phonemes": { + "message": "Die auszusprechenden Phoneme als Zeichenkette", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.pronounce.param-doc.pin": { + "message": "Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von {{pin0}} zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir {{pin=None}} verwenden. nur micro:bit V2.", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pitch": { + "message": "Tonhöhe", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.pronounce.param-doc.pitch": { + "message": "Eine Zahl, die die Tonhöhe der Stimme angibt", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.speed": { + "message": "tempo", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.pronounce.param-doc.speed": { + "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.throat": { + "message": "klang ", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.pronounce.param-doc.throat": { + "message": "Eine Zahl, die den Klang der Stimme angibt", + "description": "Parameter docs" + }, + "speech.say": { + "message": "sage", + "description": "(function name) Say English words." + }, + "speech.say.summary": { + "message": "Sage englische Wörter", + "description": "Say English words." + }, + "speech.say.param-name.mouth": { + "message": "Mund", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.say.param-doc.mouth": { + "message": "Eine Zahl, die den Mund der Stimme repräsentiert", + "description": "Parameter docs" + }, + "speech.say.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.say.param-doc.pin": { + "message": "Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von {{pin0}} zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir {{pin=None}} verwenden. nur micro:bit V2.", + "description": "Parameter docs" + }, + "speech.say.param-name.pitch": { + "message": "Tonhöhe", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.say.param-doc.pitch": { + "message": "Eine Zahl, die die Tonhöhe der Stimme angibt", + "description": "Parameter docs" + }, + "speech.say.param-name.speed": { + "message": "tempo", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.say.param-doc.speed": { + "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt", + "description": "Parameter docs" + }, + "speech.say.param-name.throat": { + "message": "klang ", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.say.param-doc.throat": { + "message": "Eine Zahl, die den Klang der Stimme angibt", + "description": "Parameter docs" + }, + "speech.say.param-name.words": { + "message": "Wörter", + "description": "(parameter name) The string of words to say." + }, + "speech.say.param-doc.words": { + "message": "Der zu sagene String", + "description": "Parameter docs" + }, + "speech.sing": { + "message": "sing", + "description": "(function name) Sing phonemes." + }, + "speech.sing.summary": { + "message": "Singe Phoneme", + "description": "Sing phonemes." + }, + "speech.sing.param-name.mouth": { + "message": "Mund", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.sing.param-doc.mouth": { + "message": "Eine Zahl, die den Mund der Stimme repräsentiert", + "description": "Parameter docs" + }, + "speech.sing.param-name.phonemes": { + "message": "Phoneme", + "description": "(parameter name) The string of words to sing." + }, + "speech.sing.param-doc.phonemes": { + "message": "Der zu singende String", + "description": "Parameter docs" + }, + "speech.sing.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.sing.param-doc.pin": { + "message": "Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von {{pin0}} zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir {{pin=None}} verwenden. nur micro:bit V2.", + "description": "Parameter docs" + }, + "speech.sing.param-name.pitch": { + "message": "Tonhöhe", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.sing.param-doc.pitch": { + "message": "Eine Zahl, die die Tonhöhe der Stimme angibt", + "description": "Parameter docs" + }, + "speech.sing.param-name.speed": { + "message": "tempo", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.sing.param-doc.speed": { + "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt", + "description": "Parameter docs" + }, + "speech.sing.param-name.throat": { + "message": "klang ", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.sing.param-doc.throat": { + "message": "Eine Zahl, die den Klang der Stimme angibt", + "description": "Parameter docs" + }, + "struct": { + "message": "struktur", + "description": "(module name) Pack and unpack primitive data types." + }, + "struct.summary": { + "message": "Packe und entpacke primitive Datentypen.", + "description": "Pack and unpack primitive data types." + }, + "struct.calcsize": { + "message": "calcsize", + "description": "(function name) Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.summary": { + "message": "Rufe die Anzahl der benötigten Bytes ab, um den angegebenen {{fmt}} zu speichern.", + "description": "Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) A format string." + }, + "struct.calcsize.param-doc.fmt": { + "message": "Ein Format-String.", + "description": "Parameter docs" + }, + "struct.pack": { + "message": "packen", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack.summary": { + "message": "Werte nach einem Format-String packen.", + "description": "Pack values according to a format string." + }, + "struct.pack.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack.param-doc.*vn": { + "message": "Die verbleibenden Werte.", + "description": "Parameter docs" + }, + "struct.pack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack.param-doc.fmt": { + "message": "Der Formatstring", + "description": "Parameter docs" + }, + "struct.pack.param-name.v1": { + "message": "v1", + "description": "(parameter name) The first value." + }, + "struct.pack.param-doc.v1": { + "message": "Der erste Wert.", + "description": "Parameter docs" + }, + "struct.pack_into": { + "message": "packen in", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack_into.summary": { + "message": "Werte nach einem Format-String packen.", + "description": "Pack values according to a format string." + }, + "struct.pack_into.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack_into.param-doc.*vn": { + "message": "Die verbleibenden Werte.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.buffer": { + "message": "Puffer", + "description": "(parameter name) The target buffer to write into." + }, + "struct.pack_into.param-doc.buffer": { + "message": "Der Buffer, in den geschrieben werden soll.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack_into.param-doc.fmt": { + "message": "Der Formatstring", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.offset": { + "message": "offset", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.pack_into.param-doc.offset": { + "message": "Der Offset in den Puffer. Kann negativ sein, um vom Ende des Puffers aus zu zählen.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.v1": { + "message": "v1", + "description": "(parameter name) The first value." + }, + "struct.pack_into.param-doc.v1": { + "message": "Der erste Wert.", + "description": "Parameter docs" + }, + "struct.unpack": { + "message": "unpack", + "description": "(function name) Unpack data according to a format string." + }, + "struct.unpack.summary": { + "message": "Daten nach einem Format-String entpacken.", + "description": "Unpack data according to a format string." + }, + "struct.unpack.param-name.data": { + "message": "Daten", + "description": "(parameter name) The data." + }, + "struct.unpack.param-doc.data": { + "message": "Die Daten.", + "description": "Parameter docs" + }, + "struct.unpack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack.param-doc.fmt": { + "message": "Der Formatstring", + "description": "Parameter docs" + }, + "struct.unpack_from": { + "message": "entpacken von", + "description": "(function name) Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.summary": { + "message": "Daten aus einem Puffer nach einem Format-String entpacken.", + "description": "Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.param-name.buffer": { + "message": "Puffer", + "description": "(parameter name) The source buffer to read from." + }, + "struct.unpack_from.param-doc.buffer": { + "message": "Der Quellpuffer, von dem gelesen werden soll.", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack_from.param-doc.fmt": { + "message": "Der Formatstring", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.offset": { + "message": "offset", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.unpack_from.param-doc.offset": { + "message": "Der Offset in den Puffer. Kann negativ sein, um vom Ende des Puffers aus zu zählen.", + "description": "Parameter docs" + }, + "sys": { + "message": "sys", + "description": "(module name) System specific functions" + }, + "sys.summary": { + "message": "Systemspezifische Funktionen", + "description": "System specific functions" + }, + "sys.exit": { + "message": "exit", + "description": "(function name) Terminate current program with a given exit code." + }, + "sys.exit.summary": { + "message": "Ein Programm mit dem gegebenen Exit-Code beenden.", + "description": "Terminate current program with a given exit code." + }, + "sys.exit.param-name.retval": { + "message": "retval", + "description": "(parameter name) The exit code or message." + }, + "sys.exit.param-doc.retval": { + "message": "Der Exit-Code oder die Nachricht.", + "description": "Parameter docs" + }, + "sys.print_exception": { + "message": "Ausnahme ausgeben", + "description": "(function name) Print an exception with a traceback." + }, + "sys.print_exception.summary": { + "message": "Eine Ausnahme mit einem Traceback ausgeben.", + "description": "Print an exception with a traceback." + }, + "sys.print_exception.param-name.exc": { + "message": "exc", + "description": "(parameter name) The exception to print" + }, + "sys.print_exception.param-doc.exc": { + "message": "Die auszugebende Ausnahme", + "description": "Parameter docs" + }, + "sys.argv": { + "message": "argv", + "description": "(field name) A mutable list of arguments the current program was started with." + }, + "sys.argv.summary": { + "message": "Eine veränderbare Liste von Argumenten, mit denen das aktuelle Programm gestartet wurde.", + "description": "A mutable list of arguments the current program was started with." + }, + "sys.byteorder": { + "message": "byteorder", + "description": "(field name) The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.byteorder.summary": { + "message": "Die Byte-Reihenfolge des Systems ({{\"little\"}} oder {{\"big\"}}).", + "description": "The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.implementation": { + "message": "Implementierung", + "description": "(field name) Object with information about the current Python implementation." + }, + "sys.implementation.summary": { + "message": "Objekt mit Informationen über die aktuelle Python-Implementierung.", + "description": "Object with information about the current Python implementation." + }, + "sys.maxsize": { + "message": "maxsize", + "description": "(field name) \nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.maxsize.summary": { + "message": "Maximaler Wert, den ein nativer Integer-Typ auf der aktuellen Plattform halten kann, oder maximaler Wert, der durch den MicroPython-Integer-Typ darstellbar ist, wenn er kleiner ist als der maximale Plattformwert (das ist der Fall bei MicroPython-Ports ohne \"long int\"-Unterstützung).", + "description": "\nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.modules": { + "message": "module", + "description": "(field name) Dictionary of loaded modules. " + }, + "sys.modules.summary": { + "message": "Wörterbuch der geladenen Module. ", + "description": "Dictionary of loaded modules. " + }, + "sys.path": { + "message": "path", + "description": "(field name) A mutable list of directories to search for imported modules." + }, + "sys.path.summary": { + "message": "Eine veränderbare Liste von Verzeichnissen zum Suchen nach importierten Modulen.", + "description": "A mutable list of directories to search for imported modules." + }, + "sys.platform": { + "message": "plattform", + "description": "(field name) The platform that MicroPython is running on. " + }, + "sys.platform.summary": { + "message": "Die Plattform, auf der MicroPython läuft. ", + "description": "The platform that MicroPython is running on. " + }, + "sys.version": { + "message": "Version", + "description": "(field name) Python language version that this implementation conforms to, as a string." + }, + "sys.version.summary": { + "message": "Python-Sprachversion, der diese Implementierung als String entspricht.", + "description": "Python language version that this implementation conforms to, as a string." + }, + "sys.version_info": { + "message": "Versionsinformationen", + "description": "(field name) Python language version that this implementation conforms to, as a tuple of ints." + }, + "sys.version_info.summary": { + "message": "Python-Sprachversion, der diese Implementierung als Tuple mit Ints entspricht.", + "description": "Python language version that this implementation conforms to, as a tuple of ints." + }, + "time": { + "message": "Zeit", + "description": "(module name) Measure time and add delays to programs." + }, + "time.summary": { + "message": "Messe Zeit und füge Verzögerung zu Programmen hinzu.", + "description": "Measure time and add delays to programs." + }, + "time.sleep": { + "message": "sleep", + "description": "(function name) Delay a number of seconds." + }, + "time.sleep.summary": { + "message": "Warte eine bestimmte Zahl in Sekunden.", + "description": "Delay a number of seconds." + }, + "time.sleep.param-name.seconds": { + "message": "sekunden", + "description": "(parameter name) The number of seconds to sleep for.\nUse a floating-point number to sleep for a fractional number of seconds." + }, + "time.sleep.param-doc.seconds": { + "message": "Die Anzahl der Sekunden für die der Ruhezustand angezeigt wird.\nBenutze eine Gleitkommazahl für eine Bruchzahl von Sekunden.", + "description": "Parameter docs" + }, + "time.sleep_ms": { + "message": "schlafe ms", + "description": "(function name) Delay for given number of milliseconds." + }, + "time.sleep_ms.summary": { + "message": "Verzögerung für die angegebene Anzahl von Millisekunden.", + "description": "Delay for given number of milliseconds." + }, + "time.sleep_ms.param-name.ms": { + "message": "ms", + "description": "(parameter name) The number of milliseconds delay (>= 0)." + }, + "time.sleep_ms.param-doc.ms": { + "message": "Die Anzahl der zu wartenden Millisekunden (>= 0).", + "description": "Parameter docs" + }, + "time.sleep_us": { + "message": "sleep us", + "description": "(function name) Delay for given number of microseconds." + }, + "time.sleep_us.summary": { + "message": "Verzögerung für die angegebene Anzahl von Mikrosekunden.", + "description": "Delay for given number of microseconds." + }, + "time.sleep_us.param-name.us": { + "message": "us", + "description": "(parameter name) The number of microseconds delay (>= 0)." + }, + "time.sleep_us.param-doc.us": { + "message": "Die Anzahl der zu wartenden Mikrosekunden (>= 0).", + "description": "Parameter docs" + }, + "time.ticks_ms": { + "message": "ticks ms", + "description": "(function name) Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_ms.summary": { + "message": "Holt einen ansteigenden Millisekunden-Zähler mit einem beliebigen Referenzpunkt, der nach einem bestimmten Wert weiterläuft.", + "description": "Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us": { + "message": "ticks us", + "description": "(function name) Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us.summary": { + "message": "Holt einen ansteigenden Mikrosekunden-Zähler mit einem beliebigen Referenzpunkt, der nach einem bestimmten Wert weiterläuft.", + "description": "Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_add": { + "message": "ticks add", + "description": "(function name) Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.summary": { + "message": "Versetzt den Tick-Wert um eine bestimmte Zahl, die entweder positiv oder negativ sein kann.", + "description": "Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.param-name.delta": { + "message": "delta", + "description": "(parameter name) An integer offset" + }, + "time.ticks_add.param-doc.delta": { + "message": "Ein ganzzahliger Offset", + "description": "Parameter docs" + }, + "time.ticks_add.param-name.ticks": { + "message": "ticks", + "description": "(parameter name) A ticks value" + }, + "time.ticks_add.param-doc.ticks": { + "message": "Ein Tick-Wert", + "description": "Parameter docs" + }, + "time.ticks_diff": { + "message": "ticks diff", + "description": "(function name) Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.summary": { + "message": "Messung der Ticks-Differenz zwischen den Werten, die von {{time.ticks_ms()}} oder {{ticks_us()}} zurückgegeben werden, als vorzeichenbehafteter Wert der umgeschlagen werden kann.", + "description": "Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.param-name.ticks1": { + "message": "ticks1", + "description": "(parameter name) The value to subtract from" + }, + "time.ticks_diff.param-doc.ticks1": { + "message": "Der zu subtrahierende Wert von", + "description": "Parameter docs" + }, + "time.ticks_diff.param-name.ticks2": { + "message": "ticks2", + "description": "(parameter name) The value to subtract" + }, + "time.ticks_diff.param-doc.ticks2": { + "message": "Der zu subtrahierende Wert", + "description": "Parameter docs" + } +} \ No newline at end of file diff --git a/crowdin/translated/api.es-es.json b/crowdin/translated/api.es-es.json index 900bd26..7479f1a 100644 --- a/crowdin/translated/api.es-es.json +++ b/crowdin/translated/api.es-es.json @@ -128,11 +128,11 @@ "description": "Set up the log file header." }, "log.set_labels.param-name.*labels": { - "message": "*labels", + "message": "*Etiquetas", "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." }, "log.set_labels.param-doc.*labels": { - "message": "Any number of positional arguments, each corresponding to an entry in the log header.", + "message": "Cualquier número de argumentos posicionales, cada uno correspondiente a una entrada en el encabezado del registro.", "description": "Parameter docs" }, "log.set_labels.param-name.timestamp": { @@ -140,7 +140,7 @@ "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." }, "log.set_labels.param-doc.timestamp": { - "message": "Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} or {{None}} to disable the timestamp. The default value is {{log.SECONDS}}.", + "message": "Seleccione la unidad de marca de tiempo que se añadirá automáticamente como la primera columna de cada fila. Los valores de la marca de tiempo pueden ser {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} o {{None}} para desactivar la marca de tiempo. El valor por defecto es {{log.SECONDS}}.", "description": "Parameter docs" }, "log.add-1": { @@ -152,11 +152,11 @@ "description": "Add a data row to the log by passing a dictionary of headers and values." }, "log.add-1.param-name.data_dictionary": { - "message": "data dictionary", + "message": "diccionario de datos", "description": "(parameter name) The data to log as a dictionary with a key for each header." }, "log.add-1.param-doc.data_dictionary": { - "message": "The data to log as a dictionary with a key for each header.", + "message": "Los datos a registrar como un diccionario con una clave para cada cabecera.", "description": "Parameter docs" }, "log.add-2": { @@ -180,7 +180,7 @@ "description": "(parameter name) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method." }, "log.delete.param-doc.full": { - "message": "{{True}} selects a “full” erase and {{False}} selects the “fast” erase method.", + "message": "{{True}} selecciona un borrador “completo” y {{False}} selecciona el método de borrado “rápido”.", "description": "Parameter docs" }, "log.set_mirroring": { @@ -188,7 +188,7 @@ "description": "(function name) Configure mirroring of the data logging activity to the serial output." }, "log.set_mirroring.summary": { - "message": "Configure mirroring of the data logging activity to the serial output.", + "message": "Configure la duplicación de la actividad de registro de datos en la salida en serie.", "description": "Configure mirroring of the data logging activity to the serial output." }, "log.set_mirroring.param-name.serial": { @@ -196,7 +196,7 @@ "description": "(parameter name) ``True`` enables mirroring data to the serial output." }, "log.set_mirroring.param-doc.serial": { - "message": "{{True}} enables mirroring data to the serial output.", + "message": "{{True}} habilita la reproducción de datos en la salida de serie.", "description": "Parameter docs" }, "machine": { @@ -844,7 +844,7 @@ "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.summary": { - "message": "Schedule to run a function at the interval specified by the time arguments **V2 only**.", + "message": "Programe para ejecutar una función en el intervalo especificado por los argumentos de tiempo **V2 solamente**.", "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.param-name.callback": { @@ -852,7 +852,7 @@ "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." }, "microbit.run_every.param-doc.callback": { - "message": "Function to call at the provided interval. Omit when using as a decorator.", + "message": "Función para llamar al intervalo proporcionado. Omitir cuando se utiliza como decorador.", "description": "Parameter docs" }, "microbit.run_every.param-name.days": { @@ -860,7 +860,7 @@ "description": "(parameter name) Sets the day mark for the scheduling." }, "microbit.run_every.param-doc.days": { - "message": "Sets the day mark for the scheduling.", + "message": "Establece la marca del día para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.h": { @@ -868,7 +868,7 @@ "description": "(parameter name) Sets the hour mark for the scheduling." }, "microbit.run_every.param-doc.h": { - "message": "Sets the hour mark for the scheduling.", + "message": "Establece la marca de hora para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.min": { @@ -876,7 +876,7 @@ "description": "(parameter name) Sets the minute mark for the scheduling." }, "microbit.run_every.param-doc.min": { - "message": "Sets the minute mark for the scheduling.", + "message": "Establece la marca de minuto para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.ms": { @@ -884,7 +884,7 @@ "description": "(parameter name) Sets the millisecond mark for the scheduling." }, "microbit.run_every.param-doc.ms": { - "message": "Sets the millisecond mark for the scheduling.", + "message": "Establece la marca de milisegundos para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.s": { @@ -892,7 +892,7 @@ "description": "(parameter name) Sets the second mark for the scheduling." }, "microbit.run_every.param-doc.s": { - "message": "Sets the second mark for the scheduling.", + "message": "Establece la segunda marca para la programación.", "description": "Parameter docs" }, "microbit.panic": { @@ -920,27 +920,27 @@ "description": "Restart the board." }, "microbit.scale-1": { - "message": "scale", + "message": "escala", "description": "(function name) Converts a value from a range to an integer range." }, "microbit.scale-1.summary": { - "message": "Converts a value from a range to an integer range.", + "message": "Convierte un valor de un rango a un rango de números enteros.", "description": "Converts a value from a range to an integer range." }, "microbit.scale-1.param-name.from_": { - "message": "from", + "message": "de", "description": "(parameter name) A tuple to define the range to convert from." }, "microbit.scale-1.param-doc.from_": { - "message": "A tuple to define the range to convert from.", + "message": "Una tupla para definir el rango desde el que convertir.", "description": "Parameter docs" }, "microbit.scale-1.param-name.to": { - "message": "to", + "message": "a", "description": "(parameter name) A tuple to define the range to convert to." }, "microbit.scale-1.param-doc.to": { - "message": "A tuple to define the range to convert to.", + "message": "Una tupla para definir el rango al que convertir.", "description": "Parameter docs" }, "microbit.scale-1.param-name.value": { @@ -948,31 +948,31 @@ "description": "(parameter name) A number to convert." }, "microbit.scale-1.param-doc.value": { - "message": "A number to convert.", + "message": "Un número a convertir.", "description": "Parameter docs" }, "microbit.scale-2": { - "message": "scale", + "message": "escala", "description": "(function name) Converts a value from a range to a floating point range." }, "microbit.scale-2.summary": { - "message": "Converts a value from a range to a floating point range.", + "message": "Convierte un valor de un rango a un rango de punto flotante.", "description": "Converts a value from a range to a floating point range." }, "microbit.scale-2.param-name.from_": { - "message": "from", + "message": "de", "description": "(parameter name) A tuple to define the range to convert from." }, "microbit.scale-2.param-doc.from_": { - "message": "A tuple to define the range to convert from.", + "message": "Una tupla para definir el rango desde el que convertir.", "description": "Parameter docs" }, "microbit.scale-2.param-name.to": { - "message": "to", + "message": "a", "description": "(parameter name) A tuple to define the range to convert to." }, "microbit.scale-2.param-doc.to": { - "message": "A tuple to define the range to convert to.", + "message": "Una tupla para definir el rango al que convertir.", "description": "Parameter docs" }, "microbit.scale-2.param-name.value": { @@ -980,7 +980,7 @@ "description": "(parameter name) A number to convert." }, "microbit.scale-2.param-doc.value": { - "message": "A number to convert.", + "message": "Un número a convertir.", "description": "Parameter docs" }, "microbit.sleep": { @@ -1920,11 +1920,11 @@ "description": "Snake image." }, "microbit.Image.SCISSORS": { - "message": "scissors", + "message": "tijeras", "description": "(field name) Scissors image." }, "microbit.Image.SCISSORS.summary": { - "message": "Scissors image.", + "message": "Imagen de tijeras.", "description": "Scissors image." }, "microbit.Image.ALL_CLOCKS": { @@ -2488,11 +2488,11 @@ "description": "Get the acceleration measurements in all axes at once as a tuple." }, "microbit.accelerometer.get_strength": { - "message": "get strength", + "message": "obtener fuerza", "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.get_strength.summary": { - "message": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes.", + "message": "Obtener la medición de aceleración de todos los ejes combinados, como un entero positivo. Esta es la suma de Pitagórica de los ejes X, Y y Z.", "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.current_gesture": { @@ -2544,11 +2544,11 @@ "description": "Return a tuple of the gesture history." }, "microbit.accelerometer.set_range": { - "message": "set range", + "message": "establecer rango", "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.summary": { - "message": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either {{2}}, {{4}}, or {{8}} g.", + "message": "Establecer el rango de sensibilidad acelerómetro, en g (gravedad estándar), a los valores más cercanos soportados por el hardware, así que se redondea a {{2}}, {{4}}o {{8}} g.", "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.param-name.value": { @@ -2556,7 +2556,7 @@ "description": "(parameter name) New range for the accelerometer, an integer in ``g``." }, "microbit.accelerometer.set_range.param-doc.value": { - "message": "New range for the accelerometer, an integer in {{g}}.", + "message": "Nuevo rango para el acelerómetro, un entero en {{g}}.", "description": "Parameter docs" }, "microbit.audio": { @@ -2572,7 +2572,7 @@ "description": "(function name) Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.summary": { - "message": "Play a built-in sound, sound effect or custom audio frames.", + "message": "Reproducir un sonido, un efecto de sonido o marcos de audio personalizados.", "description": "Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.param-name.pin": { @@ -2596,7 +2596,7 @@ "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." }, "microbit.audio.play.param-doc.source": { - "message": "A built-in {{Sound}} such as {{Sound.GIGGLE}}, a {{SoundEffect}} or sample data as an iterable of {{AudioFrame}} objects.", + "message": "Un {{Sound}} integrado como {{Sound.GIGGLE}}, un {{SoundEffect}} o datos de muestra como un iterable de objetos {{AudioFrame}}.", "description": "Parameter docs" }, "microbit.audio.play.param-name.wait": { @@ -2624,83 +2624,83 @@ "description": "Stop all audio playback." }, "microbit.audio.SoundEffect": { - "message": "soundeffect", + "message": "efecto de sonido", "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." }, "microbit.audio.SoundEffect.summary": { - "message": "A sound effect, composed by a set of parameters configured via the constructor or attributes.", + "message": "Un efecto de sonido, compuesto por un conjunto de parámetros configurados a través del constructor o atributos.", "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." }, "microbit.audio.SoundEffect.WAVEFORM_SINE": { - "message": "waveform sine", + "message": "forma de onda sinusoidal", "description": "(field name) Sine wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { - "message": "Sine wave option used for the {{waveform}} parameter.", + "message": "Opción de onda sinusoidal utilizada para el parámetro {{waveform}}.", "description": "Sine wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { - "message": "waveform sawtooth", + "message": "diente de sierra de forma de onda", "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { - "message": "Sawtooth wave option used for the {{waveform}} parameter.", + "message": "Opción de onda con diente de sierra usada para el parámetro {{waveform}}.", "description": "Sawtooth wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE": { - "message": "waveform triangle", + "message": "forma de onda triangular", "description": "(field name) Triangle wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE.summary": { - "message": "Triangle wave option used for the {{waveform}} parameter.", + "message": "Opción de onda triangular usada para el parámetro {{waveform}}.", "description": "Triangle wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SQUARE": { - "message": "waveform square", + "message": "forma de onda cuadrada", "description": "(field name) Square wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { - "message": "Square wave option used for the {{waveform}} parameter.", + "message": "Opción de onda cuadrada usada para el parámetro {{waveform}}.", "description": "Square wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_NOISE": { - "message": "waveform noise", + "message": "forma de onda de ruido", "description": "(field name) Noise option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_NOISE.summary": { - "message": "Noise option used for the {{waveform}} parameter.", + "message": "Opción de ruido usada para el parámetro {{waveform}}.", "description": "Noise option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LINEAR": { - "message": "shape linear", + "message": "forma lineal", "description": "(field name) Linear interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LINEAR.summary": { - "message": "Linear interpolation option used for the {{shape}} parameter.", + "message": "Opción de interpolación lineal usada para el parámetro {{shape}}.", "description": "Linear interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_CURVE": { - "message": "shape curve", + "message": "forma curva", "description": "(field name) Curve interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_CURVE.summary": { - "message": "Curve interpolation option used for the {{shape}} parameter.", + "message": "Opción de interpolación de curva usada para el parámetro {{shape}}.", "description": "Curve interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LOG": { - "message": "shape log", + "message": "registro de forma", "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.SHAPE_LOG.summary": { - "message": "Logarithmic interpolation option used for the {{shape}} parameter.", + "message": "Opción de interpolación logarítmica usada para el parámetro {{shape}}.", "description": "Logarithmic interpolation option used for the ``shape`` parameter." }, "microbit.audio.SoundEffect.FX_NONE": { - "message": "fx none", + "message": "fx ninguno", "description": "(field name) No effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_NONE.summary": { - "message": "No effect option used for the {{fx}} parameter.", + "message": "Ninguna opción de efecto usada para el parámetro {{fx}}.", "description": "No effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO": { @@ -2708,7 +2708,7 @@ "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { - "message": "Tremolo effect option used for the {{fx}} parameter.", + "message": "Opción de efecto Trémolo usada para el parámetro {{fx}}.", "description": "Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO": { @@ -2716,31 +2716,31 @@ "description": "(field name) Vibrato effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_VIBRATO.summary": { - "message": "Vibrato effect option used for the {{fx}} parameter.", + "message": "Opción de efecto vibrato utilizada para el parámetro {{fx}}.", "description": "Vibrato effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_WARBLE": { - "message": "fx warble", + "message": "fx gorjeo", "description": "(field name) Warble effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_WARBLE.summary": { - "message": "Warble effect option used for the {{fx}} parameter.", + "message": "Opción de efecto gorjeo utilizada para el parámetro {{fx}}.", "description": "Warble effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.freq_start": { - "message": "freq start", + "message": "frecuencia de inicio", "description": "(field name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.freq_start.summary": { - "message": "Start frequency in Hertz (Hz), a number between {{0}} and {{9999}}", + "message": "Frecuencia de inicio en Hertz (Hz), un número entre {{0}} y {{9999}}", "description": "Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.freq_end": { - "message": "freq end", + "message": "frecuencia final", "description": "(field name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.freq_end.summary": { - "message": "End frequency in Hertz (Hz), a number between {{0}} and {{9999}}", + "message": "Frecuencia final en Hertz (Hz), un número entre {{0}} y {{9999}}", "description": "End frequency in Hertz (Hz), a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.duration": { @@ -2748,31 +2748,31 @@ "description": "(field name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.duration.summary": { - "message": "Duration of the sound in milliseconds, a number between {{0}} and {{9999}}", + "message": "Duración del sonido en milisegundos, un número entre {{0}} y {{9999}}", "description": "Duration of the sound in milliseconds, a number between ``0`` and ``9999``" }, "microbit.audio.SoundEffect.vol_start": { - "message": "vol start", + "message": "volumen de inicio", "description": "(field name) Start volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.vol_start.summary": { - "message": "Start volume value, a number between {{0}} and {{255}}", + "message": "Valor de volumen inicial, un número entre {{0}} y {{255}}", "description": "Start volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.vol_end": { - "message": "vol end", + "message": "volumen final", "description": "(field name) End volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.vol_end.summary": { - "message": "End volume value, a number between {{0}} and {{255}}", + "message": "Valor final del volumen, un número entre {{0}} y {{255}}", "description": "End volume value, a number between ``0`` and ``255``" }, "microbit.audio.SoundEffect.waveform": { - "message": "waveform", + "message": "forma de onda", "description": "(field name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" }, "microbit.audio.SoundEffect.waveform.summary": { - "message": "Type of waveform shape, one of these values: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (randomly generated noise)", + "message": "Tipo de forma ondulada, uno de estos valores: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (ruido generado aleatoriamente)", "description": "Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" }, "microbit.audio.SoundEffect.fx": { @@ -2780,15 +2780,15 @@ "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" }, "microbit.audio.SoundEffect.fx.summary": { - "message": "Effect to add on the sound, one of the following values: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, or {{FX_NONE}}", + "message": "Efecto para añadir en el sonido, uno de los siguientes valores: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}o {{FX_NONE}}", "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" }, "microbit.audio.SoundEffect.shape": { - "message": "shape", + "message": "forma", "description": "(field name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" }, "microbit.audio.SoundEffect.shape.summary": { - "message": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", + "message": "El tipo de curva de interpolación entre las frecuencias de inicio y final, diferentes formas de onda tienen diferentes tasas de cambio en la frecuencia. Uno de los siguientes valores: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", "description": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" }, "microbit.audio.SoundEffect.__init__": { @@ -2796,7 +2796,7 @@ "description": "(function name) Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.summary": { - "message": "Create a new sound effect.", + "message": "Crear un nuevo efecto de sonido.", "description": "Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.param-name.duration": { @@ -2804,23 +2804,23 @@ "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." }, "microbit.audio.SoundEffect.__init__.param-doc.duration": { - "message": "Duration of the sound in milliseconds, a number between {{0}} and {{9999}}.", + "message": "Duración del sonido en milisegundos, un número entre {{0}} y {{9999}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.freq_end": { - "message": "freq end", + "message": "frecuencia final", "description": "(parameter name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``." }, "microbit.audio.SoundEffect.__init__.param-doc.freq_end": { - "message": "End frequency in Hertz (Hz), a number between {{0}} and {{9999}}.", + "message": "Frecuencia final en Hertz (Hz), un número entre {{0}} y {{9999}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.freq_start": { - "message": "freq start", + "message": "frecuencia de inicio", "description": "(parameter name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``." }, "microbit.audio.SoundEffect.__init__.param-doc.freq_start": { - "message": "Start frequency in Hertz (Hz), a number between {{0}} and {{9999}}.", + "message": "Frecuencia de inicio en Hertz (Hz), un número entre {{0}} y {{9999}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.fx": { @@ -2828,39 +2828,39 @@ "description": "(parameter name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``." }, "microbit.audio.SoundEffect.__init__.param-doc.fx": { - "message": "Effect to add on the sound, one of the following values: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, or {{FX_NONE}}.", + "message": "Efecto para añadir en el sonido, uno de los siguientes valores: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}o {{FX_NONE}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.shape": { - "message": "shape", + "message": "forma", "description": "(parameter name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``." }, "microbit.audio.SoundEffect.__init__.param-doc.shape": { - "message": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}.", + "message": "El tipo de curva de interpolación entre las frecuencias de inicio y final, diferentes formas de onda tienen diferentes tasas de cambio en la frecuencia. Uno de los siguientes valores: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.vol_end": { - "message": "vol end", + "message": "volumen final", "description": "(parameter name) End volume value, a number between ``0`` and ``255``." }, "microbit.audio.SoundEffect.__init__.param-doc.vol_end": { - "message": "End volume value, a number between {{0}} and {{255}}.", + "message": "Valor de volumen final, un número entre {{0}} y {{255}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.vol_start": { - "message": "vol start", + "message": "volumen inicial", "description": "(parameter name) Start volume value, a number between ``0`` and ``255``." }, "microbit.audio.SoundEffect.__init__.param-doc.vol_start": { - "message": "Start volume value, a number between {{0}} and {{255}}.", + "message": "Valor de volumen inicial, un número entre {{0}} y {{255}}.", "description": "Parameter docs" }, "microbit.audio.SoundEffect.__init__.param-name.waveform": { - "message": "waveform", + "message": "forma de onda", "description": "(parameter name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)." }, "microbit.audio.SoundEffect.__init__.param-doc.waveform": { - "message": "Type of waveform shape, one of these values: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (randomly generated noise).", + "message": "Tipo de forma de onda, uno de estos valores: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (ruido generado aleatoriamente).", "description": "Parameter docs" }, "microbit.audio.SoundEffect.copy": { @@ -2868,7 +2868,7 @@ "description": "(function name) Create a copy of this ``SoundEffect``." }, "microbit.audio.SoundEffect.copy.summary": { - "message": "Create a copy of this {{SoundEffect}}.", + "message": "Crear una copia de este {{SoundEffect}}.", "description": "Create a copy of this ``SoundEffect``." }, "microbit.audio.AudioFrame": { @@ -2880,11 +2880,11 @@ "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." }, "microbit.audio.AudioFrame.copyfrom": { - "message": "copyfrom", + "message": "copiar forma", "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.summary": { - "message": "Overwrite the data in this {{AudioFrame}} with the data from another {{AudioFrame}} instance.", + "message": "Sobrescribir los datos en este {{AudioFrame}} con los datos de otra instancia de {{AudioFrame}}.", "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.param-name.other": { @@ -2892,7 +2892,7 @@ "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." }, "microbit.audio.AudioFrame.copyfrom.param-doc.other": { - "message": "{{AudioFrame}} instance from which to copy the data.", + "message": "Instancia {{AudioFrame}} desde la que copiar los datos.", "description": "Parameter docs" }, "microbit.compass": { diff --git a/crowdin/translated/api.ja.json b/crowdin/translated/api.ja.json index 4da1532..f320ef9 100644 --- a/crowdin/translated/api.ja.json +++ b/crowdin/translated/api.ja.json @@ -884,7 +884,7 @@ "description": "(parameter name) Sets the millisecond mark for the scheduling." }, "microbit.run_every.param-doc.ms": { - "message": "スケジューリングのための秒を設定します。", + "message": "スケジューリングのためのミリ秒を設定します。", "description": "Parameter docs" }, "microbit.run_every.param-name.s": { @@ -892,7 +892,7 @@ "description": "(parameter name) Sets the second mark for the scheduling." }, "microbit.run_every.param-doc.s": { - "message": "スケジューリングのためのミリ秒を設定します。", + "message": "スケジューリングのための秒を設定します。", "description": "Parameter docs" }, "microbit.panic": { @@ -1932,7 +1932,7 @@ "description": "(field name) A list containing all the CLOCK_ images in sequence." }, "microbit.Image.ALL_CLOCKS.summary": { - "message": "すべての CLOCK_ イメージを順番に並べたリスト。", + "message": "すべての時計イメージを順番に並べたリスト。", "description": "A list containing all the CLOCK_ images in sequence." }, "microbit.Image.ALL_ARROWS": { @@ -1940,7 +1940,7 @@ "description": "(field name) A list containing all the ARROW_ images in sequence." }, "microbit.Image.ALL_ARROWS.summary": { - "message": "すべての ARROW_ イメージを順番に並べたリスト。", + "message": "すべての矢印イメージを順番に並べたリスト。", "description": "A list containing all the ARROW_ images in sequence." }, "microbit.Image.__init__-1": { @@ -2660,7 +2660,7 @@ "description": "(field name) Square wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { - "message": "{{waveform}} パラメータに指定できる「方形波」オプション。", + "message": "{{waveform}} パラメータに指定できる「矩形波」オプション。", "description": "Square wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_NOISE": { @@ -2724,7 +2724,7 @@ "description": "(field name) Warble effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_WARBLE.summary": { - "message": "{{fx}} パラメータに指定できる「さえずり効果」オプション。", + "message": "{{fx}} パラメータに指定できる「ワブル効果」オプション。", "description": "Warble effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.freq_start": { diff --git a/lang/ca/typeshed/stdlib/neopixel.pyi b/lang/ca/typeshed/stdlib/neopixel.pyi index c5ec33b..ec85e74 100644 --- a/lang/ca/typeshed/stdlib/neopixel.pyi +++ b/lang/ca/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: diff --git a/lang/de/typeshed/stdlib/VERSIONS b/lang/de/typeshed/stdlib/VERSIONS new file mode 100644 index 0000000..67b710f --- /dev/null +++ b/lang/de/typeshed/stdlib/VERSIONS @@ -0,0 +1,50 @@ +# The structure of this file is as follows: +# - Blank lines and comments starting with `#` are ignored. +# - Lines contain the name of a module, followed by a colon, +# a space, and a version range (for example: `symbol: 2.7-3.9`). +# +# Version ranges may be of the form "X.Y-A.B" or "X.Y-". The +# first form means that a module was introduced in version X.Y and last +# available in version A.B. The second form means that the module was +# introduced in version X.Y and is still available in the latest +# version of Python. +# +# If a submodule is not listed separately, it has the same lifetime as +# its parent module. +# +# Python versions before 2.7 are ignored, so any module that was already +# present in 2.7 will have "2.7" as its minimum version. Version ranges +# for unsupported versions of Python 3 (currently 3.5 and lower) are +# generally accurate but we do not guarantee their correctness. + +antigravity: 3.0- +array: 3.0- +audio: 3.0- +builtins: 3.0- +errno: 3.0- +gc: 3.0- +love: 3.0- +machine: 3.0- +math: 3.0- +microbit: 3.0- +micropython: 3.0- +music: 3.0- +neopixel: 3.0- +os: 3.0- +radio: 3.0- +random: 3.0- +speech: 3.0- +struct: 3.0- +sys: 3.0- +this: 3.0- +time: 3.0- +typing_extensions: 3.0- +typing: 3.0- +uarray: 3.0- +ucollections: 3.0- +uerrno: 3.0- +uos: 3.0- +urandom: 3.0- +ustruct: 3.0- +usys: 3.0- +utime: 3.0- \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/_typeshed/__init__.pyi b/lang/de/typeshed/stdlib/_typeshed/__init__.pyi new file mode 100644 index 0000000..7bf6e72 --- /dev/null +++ b/lang/de/typeshed/stdlib/_typeshed/__init__.pyi @@ -0,0 +1,168 @@ +# Utility types for typeshed +# +# See the README.md file in this directory for more information. + +import array +import sys +from os import PathLike +from typing import AbstractSet, Any, Container, Iterable, Protocol, Tuple, TypeVar, Union +from typing_extensions import Literal, final + +_KT = TypeVar("_KT") +_KT_co = TypeVar("_KT_co", covariant=True) +_KT_contra = TypeVar("_KT_contra", contravariant=True) +_VT = TypeVar("_VT") +_VT_co = TypeVar("_VT_co", covariant=True) +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) + +# Use for "self" annotations: +# def __enter__(self: Self) -> Self: ... +Self = TypeVar("Self") # noqa Y001 + +# stable +class IdentityFunction(Protocol): + def __call__(self, __x: _T) -> _T: ... + +class SupportsLessThan(Protocol): + def __lt__(self, __other: Any) -> bool: ... + +SupportsLessThanT = TypeVar("SupportsLessThanT", bound=SupportsLessThan) # noqa: Y001 + +class SupportsDivMod(Protocol[_T_contra, _T_co]): + def __divmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsRDivMod(Protocol[_T_contra, _T_co]): + def __rdivmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsLenAndGetItem(Protocol[_T_co]): + def __len__(self) -> int: ... + def __getitem__(self, __k: int) -> _T_co: ... + +# Mapping-like protocols + +# stable +class SupportsItems(Protocol[_KT_co, _VT_co]): + def items(self) -> AbstractSet[Tuple[_KT_co, _VT_co]]: ... + +# stable +class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]): + def keys(self) -> Iterable[_KT]: ... + def __getitem__(self, __k: _KT) -> _VT_co: ... + +# stable +class SupportsGetItem(Container[_KT_contra], Protocol[_KT_contra, _VT_co]): + def __getitem__(self, __k: _KT_contra) -> _VT_co: ... + +# stable +class SupportsItemAccess(SupportsGetItem[_KT_contra, _VT], Protocol[_KT_contra, _VT]): + def __setitem__(self, __k: _KT_contra, __v: _VT) -> None: ... + def __delitem__(self, __v: _KT_contra) -> None: ... + +# These aliases are simple strings in Python 2. +StrPath = Union[str, PathLike[str]] # stable +BytesPath = Union[bytes, PathLike[bytes]] # stable +StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable + +OpenTextModeUpdating = Literal[ + "r+", + "+r", + "rt+", + "r+t", + "+rt", + "tr+", + "t+r", + "+tr", + "w+", + "+w", + "wt+", + "w+t", + "+wt", + "tw+", + "t+w", + "+tw", + "a+", + "+a", + "at+", + "a+t", + "+at", + "ta+", + "t+a", + "+ta", + "x+", + "+x", + "xt+", + "x+t", + "+xt", + "tx+", + "t+x", + "+tx", +] +OpenTextModeWriting = Literal["w", "wt", "tw", "a", "at", "ta", "x", "xt", "tx"] +OpenTextModeReading = Literal["r", "rt", "tr", "U", "rU", "Ur", "rtU", "rUt", "Urt", "trU", "tUr", "Utr"] +OpenTextMode = Union[OpenTextModeUpdating, OpenTextModeWriting, OpenTextModeReading] +OpenBinaryModeUpdating = Literal[ + "rb+", + "r+b", + "+rb", + "br+", + "b+r", + "+br", + "wb+", + "w+b", + "+wb", + "bw+", + "b+w", + "+bw", + "ab+", + "a+b", + "+ab", + "ba+", + "b+a", + "+ba", + "xb+", + "x+b", + "+xb", + "bx+", + "b+x", + "+bx", +] +OpenBinaryModeWriting = Literal["wb", "bw", "ab", "ba", "xb", "bx"] +OpenBinaryModeReading = Literal["rb", "br", "rbU", "rUb", "Urb", "brU", "bUr", "Ubr"] +OpenBinaryMode = Union[OpenBinaryModeUpdating, OpenBinaryModeReading, OpenBinaryModeWriting] + +# stable +class HasFileno(Protocol): + def fileno(self) -> int: ... + +FileDescriptor = int # stable +FileDescriptorLike = Union[int, HasFileno] # stable + +# stable +class SupportsRead(Protocol[_T_co]): + def read(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsReadline(Protocol[_T_co]): + def readline(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsNoArgReadline(Protocol[_T_co]): + def readline(self) -> _T_co: ... + +# stable +class SupportsWrite(Protocol[_T_contra]): + def write(self, __s: _T_contra) -> Any: ... + +ReadableBuffer = Union[bytes, bytearray, memoryview, array.array[Any]] # stable +WriteableBuffer = Union[bytearray, memoryview, array.array[Any]] # stable + +# stable +if sys.version_info >= (3, 10): + from types import NoneType as NoneType +else: + # Used by type checkers for checks involving None (does not exist at runtime) + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... diff --git a/lang/de/typeshed/stdlib/abc.pyi b/lang/de/typeshed/stdlib/abc.pyi new file mode 100644 index 0000000..18bb090 --- /dev/null +++ b/lang/de/typeshed/stdlib/abc.pyi @@ -0,0 +1,28 @@ +from _typeshed import SupportsWrite +from typing import Any, Callable, Tuple, Type, TypeVar + +_T = TypeVar("_T") +_FuncT = TypeVar("_FuncT", bound=Callable[..., Any]) + +# These definitions have special processing in mypy +class ABCMeta(type): + __abstractmethods__: frozenset[str] + def __init__( + self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any] + ) -> None: ... + def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ... + def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ... + def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ... + def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ... + +def abstractmethod(funcobj: _FuncT) -> _FuncT: ... + +class abstractproperty(property): ... + +# These two are deprecated and not supported by mypy +def abstractstaticmethod(callable: _FuncT) -> _FuncT: ... +def abstractclassmethod(callable: _FuncT) -> _FuncT: ... + +class ABC(metaclass=ABCMeta): ... + +def get_cache_token() -> object: ... diff --git a/lang/de/typeshed/stdlib/antigravity.pyi b/lang/de/typeshed/stdlib/antigravity.pyi new file mode 100644 index 0000000..e69de29 diff --git a/lang/de/typeshed/stdlib/array.pyi b/lang/de/typeshed/stdlib/array.pyi new file mode 100644 index 0000000..1e4e630 --- /dev/null +++ b/lang/de/typeshed/stdlib/array.pyi @@ -0,0 +1,42 @@ +from typing import Generic, Iterable, MutableSequence, TypeVar, Union, overload +from typing_extensions import Literal + +_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"] +_FloatTypeCode = Literal["f", "d"] +_TypeCode = Union[_IntTypeCode, _FloatTypeCode] + +_T = TypeVar("_T", int, float) + +class array(MutableSequence[_T], Generic[_T]): + @overload + def __init__( + self: array[int], + typecode: _IntTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self: array[float], + typecode: _FloatTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self, typecode: str, __initializer: Union[bytes, Iterable[_T]] = ... + ) -> None: ... + def append(self, __v: _T) -> None: ... + def decode(self) -> str: ... + def extend(self, __bb: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> _T: ... + @overload + def __getitem__(self, s: slice) -> array[_T]: ... + @overload # type: ignore # Overrides MutableSequence + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: array[_T]) -> None: ... + def __add__(self, x: array[_T]) -> array[_T]: ... + def __iadd__(self, x: array[_T]) -> array[_T]: ... # type: ignore # Overrides MutableSequence + +ArrayType = array diff --git a/lang/de/typeshed/stdlib/audio.pyi b/lang/de/typeshed/stdlib/audio.pyi new file mode 100644 index 0000000..b1d39c7 --- /dev/null +++ b/lang/de/typeshed/stdlib/audio.pyi @@ -0,0 +1,11 @@ +"""Play sounds using the micro:bit (import ``audio`` for V1 compatibility). +""" + +# Re-export for V1 compatibility. +from .microbit.audio import ( + is_playing as is_playing, + play as play, + stop as stop, + AudioFrame as AudioFrame, + SoundEffect as SoundEffect, +) diff --git a/lang/de/typeshed/stdlib/builtins.pyi b/lang/de/typeshed/stdlib/builtins.pyi new file mode 100644 index 0000000..8b7dfb9 --- /dev/null +++ b/lang/de/typeshed/stdlib/builtins.pyi @@ -0,0 +1,1334 @@ +import sys +import types +from _typeshed import ( + OpenBinaryMode, + OpenTextMode, + ReadableBuffer, + Self, + StrOrBytesPath, + SupportsDivMod, + SupportsKeysAndGetItem, + SupportsLenAndGetItem, + SupportsLessThan, + SupportsLessThanT, + SupportsRDivMod, + SupportsWrite, +) +from types import CodeType, TracebackType +from typing import ( + IO, + AbstractSet, + Any, + AsyncIterable, + AsyncIterator, + BinaryIO, + ByteString, + Callable, + FrozenSet, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + MutableMapping, + MutableSequence, + MutableSet, + NoReturn, + Protocol, + Reversible, + Sequence, + Set, + Sized, + SupportsAbs, + SupportsBytes, + SupportsComplex, + SupportsFloat, + SupportsInt, + SupportsRound, + TextIO, + Tuple, + Type, + TypeVar, + Union, + ValuesView, + overload, +) +from typing_extensions import Literal, SupportsIndex, final + +if sys.version_info >= (3, 9): + from types import GenericAlias + +class _SupportsTrunc(Protocol): + def __trunc__(self) -> int: ... + +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") +_S = TypeVar("_S") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T3 = TypeVar("_T3") +_T4 = TypeVar("_T4") +_T5 = TypeVar("_T5") +_TT = TypeVar("_TT", bound="type") +_TBE = TypeVar("_TBE", bound="BaseException") + +class object: + __doc__: str | None + __dict__: dict[str, Any] + __slots__: str | Iterable[str] + __module__: str + __annotations__: dict[str, Any] + @property + def __class__(self: _T) -> Type[_T]: ... + # Ignore errors about type mismatch between property getter and setter + @__class__.setter + def __class__(self, __type: Type[object]) -> None: ... # type: ignore # noqa: F811 + def __init__(self) -> None: ... + def __new__(cls: Type[_T]) -> _T: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __eq__(self, o: object) -> bool: ... + def __ne__(self, o: object) -> bool: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + def __format__(self, format_spec: str) -> str: ... + def __getattribute__(self, name: str) -> Any: ... + def __delattr__(self, name: str) -> None: ... + def __sizeof__(self) -> int: ... + def __reduce__(self) -> str | Tuple[Any, ...]: ... + if sys.version_info >= (3, 8): + def __reduce_ex__(self, protocol: SupportsIndex) -> str | Tuple[Any, ...]: ... + else: + def __reduce_ex__(self, protocol: int) -> str | Tuple[Any, ...]: ... + def __dir__(self) -> Iterable[str]: ... + def __init_subclass__(cls) -> None: ... + +class staticmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class classmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class type(object): + __base__: type + __bases__: Tuple[type, ...] + __basicsize__: int + __dict__: dict[str, Any] + __dictoffset__: int + __flags__: int + __itemsize__: int + __module__: str + __name__: str + __qualname__: str + __text_signature__: str | None + __weakrefoffset__: int + @overload + def __init__(self, o: object) -> None: ... + @overload + def __init__( + self, name: str, bases: Tuple[type, ...], dict: dict[str, Any], **kwds: Any + ) -> None: ... + @overload + def __new__(cls, o: object) -> type: ... + @overload + def __new__( + cls: Type[_TT], + name: str, + bases: Tuple[type, ...], + namespace: dict[str, Any], + **kwds: Any, + ) -> _TT: ... + def __call__(self, *args: Any, **kwds: Any) -> Any: ... + def __subclasses__(self: _TT) -> list[_TT]: ... + def __instancecheck__(self, instance: Any) -> bool: ... + def __subclasscheck__(self, subclass: type) -> bool: ... + @classmethod + def __prepare__( + metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any + ) -> Mapping[str, Any]: ... + if sys.version_info >= (3, 10): + def __or__(self, t: Any) -> types.UnionType: ... + def __ror__(self, t: Any) -> types.UnionType: ... + +class super(object): + @overload + def __init__(self, t: Any, obj: Any) -> None: ... + @overload + def __init__(self, t: Any) -> None: ... + @overload + def __init__(self) -> None: ... + +class int: + @overload + def __new__( + cls: Type[_T], + x: str | bytes | SupportsInt | SupportsIndex | _SupportsTrunc = ..., + ) -> _T: ... + @overload + def __new__( + cls: Type[_T], x: str | bytes | bytearray, base: SupportsIndex + ) -> _T: ... + def to_bytes( + self, + length: SupportsIndex, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> bytes: ... + @classmethod + def from_bytes( + cls, + bytes: Iterable[SupportsIndex] | SupportsBytes, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> int: ... # TODO buffer object argument + def __add__(self, x: int) -> int: ... + def __sub__(self, x: int) -> int: ... + def __mul__(self, x: int) -> int: ... + def __floordiv__(self, x: int) -> int: ... + def __truediv__(self, x: int) -> float: ... + def __mod__(self, x: int) -> int: ... + def __divmod__(self, x: int) -> Tuple[int, int]: ... + def __radd__(self, x: int) -> int: ... + def __rsub__(self, x: int) -> int: ... + def __rmul__(self, x: int) -> int: ... + def __rfloordiv__(self, x: int) -> int: ... + def __rtruediv__(self, x: int) -> float: ... + def __rmod__(self, x: int) -> int: ... + def __rdivmod__(self, x: int) -> Tuple[int, int]: ... + @overload + def __pow__(self, __x: Literal[2], __modulo: int | None = ...) -> int: ... + @overload + def __pow__( + self, __x: int, __modulo: int | None = ... + ) -> Any: ... # Return type can be int or float, depending on x. + def __rpow__(self, x: int, mod: int | None = ...) -> Any: ... + def __and__(self, n: int) -> int: ... + def __or__(self, n: int) -> int: ... + def __xor__(self, n: int) -> int: ... + def __lshift__(self, n: int) -> int: ... + def __rshift__(self, n: int) -> int: ... + def __rand__(self, n: int) -> int: ... + def __ror__(self, n: int) -> int: ... + def __rxor__(self, n: int) -> int: ... + def __rlshift__(self, n: int) -> int: ... + def __rrshift__(self, n: int) -> int: ... + def __neg__(self) -> int: ... + def __pos__(self) -> int: ... + def __invert__(self) -> int: ... + def __trunc__(self) -> int: ... + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + def __round__(self, ndigits: SupportsIndex = ...) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: int) -> bool: ... + def __le__(self, x: int) -> bool: ... + def __gt__(self, x: int) -> bool: ... + def __ge__(self, x: int) -> bool: ... + def __str__(self) -> str: ... + def __float__(self) -> float: ... + def __int__(self) -> int: ... + def __abs__(self) -> int: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + def __index__(self) -> int: ... + +class float: + def __new__( + cls: Type[_T], x: SupportsFloat | SupportsIndex | str | bytes | bytearray = ... + ) -> _T: ... + def __add__(self, x: float) -> float: ... + def __sub__(self, x: float) -> float: ... + def __mul__(self, x: float) -> float: ... + def __floordiv__(self, x: float) -> float: ... + def __truediv__(self, x: float) -> float: ... + def __mod__(self, x: float) -> float: ... + def __divmod__(self, x: float) -> Tuple[float, float]: ... + def __pow__( + self, x: float, mod: None = ... + ) -> float: ... # In Python 3, returns complex if self is negative and x is not whole + def __radd__(self, x: float) -> float: ... + def __rsub__(self, x: float) -> float: ... + def __rmul__(self, x: float) -> float: ... + def __rfloordiv__(self, x: float) -> float: ... + def __rtruediv__(self, x: float) -> float: ... + def __rmod__(self, x: float) -> float: ... + def __rdivmod__(self, x: float) -> Tuple[float, float]: ... + def __rpow__(self, x: float, mod: None = ...) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... + def __trunc__(self) -> int: ... + if sys.version_info >= (3, 9): + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + @overload + def __round__(self, ndigits: None = ...) -> int: ... + @overload + def __round__(self, ndigits: SupportsIndex) -> float: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: float) -> bool: ... + def __le__(self, x: float) -> bool: ... + def __gt__(self, x: float) -> bool: ... + def __ge__(self, x: float) -> bool: ... + def __neg__(self) -> float: ... + def __pos__(self) -> float: ... + def __str__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class complex: + @overload + def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], real: str | SupportsComplex | SupportsIndex | complex + ) -> _T: ... + @property + def real(self) -> float: ... + @property + def imag(self) -> float: ... + def __add__(self, x: complex) -> complex: ... + def __sub__(self, x: complex) -> complex: ... + def __mul__(self, x: complex) -> complex: ... + def __pow__(self, x: complex, mod: None = ...) -> complex: ... + def __truediv__(self, x: complex) -> complex: ... + def __radd__(self, x: complex) -> complex: ... + def __rsub__(self, x: complex) -> complex: ... + def __rmul__(self, x: complex) -> complex: ... + def __rpow__(self, x: complex, mod: None = ...) -> complex: ... + def __rtruediv__(self, x: complex) -> complex: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __neg__(self) -> complex: ... + def __pos__(self) -> complex: ... + def __str__(self) -> str: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class str(Sequence[str]): + @overload + def __new__(cls: Type[_T], o: object = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], o: bytes, encoding: str = ..., errors: str = ... + ) -> _T: ... + def count( + self, + x: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ... + def endswith( + self, + __suffix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def format(self, *args: object, **kwargs: object) -> str: ... + def index( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable: Iterable[str]) -> str: ... + def lower(self) -> str: ... + def lstrip(self, __chars: str | None = ...) -> str: ... + def replace(self, __old: str, __new: str, __count: SupportsIndex = ...) -> str: ... + def rfind( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def rstrip(self, __chars: str | None = ...) -> str: ... + def split( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def startswith( + self, + __prefix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __chars: str | None = ...) -> str: ... + def upper(self) -> str: ... + def __add__(self, s: str) -> str: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: str) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ge__(self, x: str) -> bool: ... + def __getitem__(self, i: int | slice) -> str: ... + def __gt__(self, x: str) -> bool: ... + def __hash__(self) -> int: ... + def __iter__(self) -> Iterator[str]: ... + def __le__(self, x: str) -> bool: ... + def __len__(self) -> int: ... + def __lt__(self, x: str) -> bool: ... + def __mod__(self, x: Any) -> str: ... + def __mul__(self, n: SupportsIndex) -> str: ... + def __ne__(self, x: object) -> bool: ... + def __repr__(self) -> str: ... + def __rmul__(self, n: SupportsIndex) -> str: ... + def __str__(self) -> str: ... + def __getnewargs__(self) -> Tuple[str]: ... + +class bytes(ByteString): + @overload + def __new__(cls: Type[_T], ints: Iterable[SupportsIndex]) -> _T: ... + @overload + def __new__(cls: Type[_T], string: str, encoding: str, errors: str = ...) -> _T: ... + @overload + def __new__(cls: Type[_T], length: SupportsIndex) -> _T: ... + @overload + def __new__(cls: Type[_T]) -> _T: ... + @overload + def __new__(cls: Type[_T], o: SupportsBytes) -> _T: ... + def count( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def endswith( + self, + __suffix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def index( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable_of_bytes: Iterable[ByteString | memoryview]) -> bytes: ... + def lower(self) -> bytes: ... + def lstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def replace( + self, __old: bytes, __new: bytes, __count: SupportsIndex = ... + ) -> bytes: ... + def rfind( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def rstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def split( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def startswith( + self, + __prefix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __bytes: bytes | None = ...) -> bytes: ... + def upper(self) -> bytes: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytes: ... + def __add__(self, s: bytes) -> bytes: ... + def __mul__(self, n: SupportsIndex) -> bytes: ... + def __rmul__(self, n: SupportsIndex) -> bytes: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + def __getnewargs__(self) -> Tuple[bytes]: ... + +class bytearray: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, ints: Iterable[SupportsIndex]) -> None: ... + @overload + def __init__(self, string: str, encoding: str, errors: str = ...) -> None: ... + @overload + def __init__(self, length: SupportsIndex) -> None: ... + def append(self, __item: SupportsIndex) -> None: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def extend(self, __iterable_of_ints: Iterable[SupportsIndex]) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytearray: ... + @overload + def __setitem__(self, i: SupportsIndex, x: SupportsIndex) -> None: ... + @overload + def __setitem__(self, s: slice, x: Iterable[SupportsIndex] | bytes) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, s: bytes) -> bytearray: ... + def __iadd__(self, s: Iterable[int]) -> bytearray: ... + def __mul__(self, n: SupportsIndex) -> bytearray: ... + def __rmul__(self, n: SupportsIndex) -> bytearray: ... + def __imul__(self, n: SupportsIndex) -> bytearray: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + +class memoryview(Sized, Sequence[int]): + def __init__(self, obj: ReadableBuffer) -> None: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> memoryview: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + def __len__(self) -> int: ... + @overload + def __setitem__(self, s: slice, o: bytes) -> None: ... + @overload + def __setitem__(self, i: SupportsIndex, o: SupportsIndex) -> None: ... + +@final +class bool(int): + def __new__(cls: Type[_T], __o: object = ...) -> _T: ... + @overload + def __and__(self, x: bool) -> bool: ... + @overload + def __and__(self, x: int) -> int: ... + @overload + def __or__(self, x: bool) -> bool: ... + @overload + def __or__(self, x: int) -> int: ... + @overload + def __xor__(self, x: bool) -> bool: ... + @overload + def __xor__(self, x: int) -> int: ... + @overload + def __rand__(self, x: bool) -> bool: ... + @overload + def __rand__(self, x: int) -> int: ... + @overload + def __ror__(self, x: bool) -> bool: ... + @overload + def __ror__(self, x: int) -> int: ... + @overload + def __rxor__(self, x: bool) -> bool: ... + @overload + def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + +class slice(object): + start: Any + step: Any + stop: Any + __hash__: None # type: ignore + def indices(self, len: SupportsIndex) -> Tuple[int, int, int]: ... + +class tuple(Sequence[_T_co], Generic[_T_co]): + def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ... + def __len__(self) -> int: ... + def __contains__(self, x: object) -> bool: ... + @overload + def __getitem__(self, x: int) -> _T_co: ... + @overload + def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __le__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ... + @overload + def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ... + @overload + def __add__(self, x: Tuple[_T, ...]) -> Tuple[_T_co | _T, ...]: ... + def __mul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def __rmul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def count(self, __value: Any) -> int: ... + def index( + self, __value: Any, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + +# Can we remove this? +class function: + # TODO not defined in builtins! + __name__: str + __module__: str + __code__: CodeType + __qualname__: str + __annotations__: dict[str, Any] + +class frozenset(AbstractSet[_T_co], Generic[_T_co]): + @overload + def __new__(cls: type[Self]) -> Self: ... + @overload + def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ... + def copy(self) -> FrozenSet[_T_co]: ... + def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def isdisjoint(self, s: Iterable[_T_co]) -> bool: ... + def issubset(self, s: Iterable[object]) -> bool: ... + def issuperset(self, s: Iterable[object]) -> bool: ... + def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class list(MutableSequence[_T], Generic[_T]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, iterable: Iterable[_T]) -> None: ... + def clear(self) -> None: ... + def copy(self) -> list[_T]: ... + def append(self, __object: _T) -> None: ... + def extend(self, __iterable: Iterable[_T]) -> None: ... + def pop(self, __index: SupportsIndex = ...) -> _T: ... + def index( + self, __value: _T, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + def count(self, __value: _T) -> int: ... + def insert(self, __index: SupportsIndex, __object: _T) -> None: ... + def remove(self, __value: _T) -> None: ... + def reverse(self) -> None: ... + @overload + def sort( + self: list[SupportsLessThanT], *, key: None = ..., reverse: bool = ... + ) -> None: ... + @overload + def sort( + self, *, key: Callable[[_T], SupportsLessThan], reverse: bool = ... + ) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> _T: ... + @overload + def __getitem__(self, s: slice) -> list[_T]: ... + @overload + def __setitem__(self, i: SupportsIndex, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, x: list[_T]) -> list[_T]: ... + def __iadd__(self: _S, x: Iterable[_T]) -> _S: ... + def __mul__(self, n: SupportsIndex) -> list[_T]: ... + def __rmul__(self, n: SupportsIndex) -> list[_T]: ... + def __imul__(self: _S, n: SupportsIndex) -> _S: ... + def __contains__(self, o: object) -> bool: ... + def __reversed__(self) -> Iterator[_T]: ... + def __gt__(self, x: list[_T]) -> bool: ... + def __ge__(self, x: list[_T]) -> bool: ... + def __lt__(self, x: list[_T]) -> bool: ... + def __le__(self, x: list[_T]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): + @overload + def __init__(self: dict[_KT, _VT]) -> None: ... + @overload + def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ... + @overload + def __init__( + self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT + ) -> None: ... + @overload + def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ... + def clear(self) -> None: ... + def copy(self) -> dict[_KT, _VT]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ... + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT]: ... + def items(self) -> ItemsView[_KT, _VT]: ... + @classmethod + @overload + def fromkeys( + cls, __iterable: Iterable[_T], __value: None = ... + ) -> dict[_T, Any | None]: ... + @classmethod + @overload + def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ... + def __len__(self) -> int: ... + def __getitem__(self, k: _KT) -> _VT: ... + def __setitem__(self, k: _KT, v: _VT) -> None: ... + def __delitem__(self, v: _KT) -> None: ... + def __iter__(self) -> Iterator[_KT]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __or__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ror__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ior__(self, __value: Mapping[_KT, _VT]) -> dict[_KT, _VT]: ... # type: ignore + +class set(MutableSet[_T], Generic[_T]): + def __init__(self, iterable: Iterable[_T] = ...) -> None: ... + def add(self, element: _T) -> None: ... + def clear(self) -> None: ... + def copy(self) -> Set[_T]: ... + def difference(self, *s: Iterable[Any]) -> Set[_T]: ... + def difference_update(self, *s: Iterable[Any]) -> None: ... + def discard(self, element: _T) -> None: ... + def intersection(self, *s: Iterable[Any]) -> Set[_T]: ... + def intersection_update(self, *s: Iterable[Any]) -> None: ... + def isdisjoint(self, s: Iterable[Any]) -> bool: ... + def issubset(self, s: Iterable[Any]) -> bool: ... + def issuperset(self, s: Iterable[Any]) -> bool: ... + def pop(self) -> _T: ... + def remove(self, element: _T) -> None: ... + def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ... + def symmetric_difference_update(self, s: Iterable[_T]) -> None: ... + def union(self, *s: Iterable[_T]) -> Set[_T]: ... + def update(self, *s: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __or__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ior__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __sub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __isub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __xor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ixor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): + def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ... + def __iter__(self) -> Iterator[Tuple[int, _T]]: ... + def __next__(self) -> Tuple[int, _T]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class range(Sequence[int]): + start: int + stop: int + step: int + @overload + def __init__(self, stop: SupportsIndex) -> None: ... + @overload + def __init__( + self, start: SupportsIndex, stop: SupportsIndex, step: SupportsIndex = ... + ) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> range: ... + def __repr__(self) -> str: ... + def __reversed__(self) -> Iterator[int]: ... + +class property(object): + fget: Callable[[Any], Any] | None + fset: Callable[[Any, Any], None] | None + fdel: Callable[[Any], None] | None + def __init__( + self, + fget: Callable[[Any], Any] | None = ..., + fset: Callable[[Any, Any], None] | None = ..., + fdel: Callable[[Any], None] | None = ..., + doc: str | None = ..., + ) -> None: ... + def getter(self, fget: Callable[[Any], Any]) -> property: ... + def setter(self, fset: Callable[[Any, Any], None]) -> property: ... + def deleter(self, fdel: Callable[[Any], None]) -> property: ... + def __get__(self, obj: Any, type: type | None = ...) -> Any: ... + def __set__(self, obj: Any, value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +class _NotImplementedType(Any): # type: ignore + # A little weird, but typing the __call__ as NotImplemented makes the error message + # for NotImplemented() much better + __call__: NotImplemented # type: ignore + +NotImplemented: _NotImplementedType + +def abs(__x: SupportsAbs[_T]) -> _T: ... +def all(__iterable: Iterable[object]) -> bool: ... +def any(__iterable: Iterable[object]) -> bool: ... +def bin(__number: int | SupportsIndex) -> str: ... + +if sys.version_info >= (3, 7): + def breakpoint(*args: Any, **kws: Any) -> None: ... + +def callable(__obj: object) -> bool: ... +def chr(__i: int) -> str: ... + +# We define this here instead of using os.PathLike to avoid import cycle issues. +# See https://github.com/python/typeshed/pull/991#issuecomment-288160993 +_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True) + +class _PathLike(Protocol[_AnyStr_co]): + def __fspath__(self) -> _AnyStr_co: ... + +if sys.version_info >= (3, 10): + def aiter(__iterable: AsyncIterable[_T]) -> AsyncIterator[_T]: ... + @overload + async def anext(__i: AsyncIterator[_T]) -> _T: ... + @overload + async def anext(__i: AsyncIterator[_T], default: _VT) -> _T | _VT: ... + +def delattr(__obj: Any, __name: str) -> None: ... +def dir(__o: object = ...) -> list[str]: ... +@overload +def divmod(__x: SupportsDivMod[_T_contra, _T_co], __y: _T_contra) -> _T_co: ... +@overload +def divmod(__x: _T_contra, __y: SupportsRDivMod[_T_contra, _T_co]) -> _T_co: ... +def eval( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... +def exec( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... + +class filter(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __function: None, __iterable: Iterable[_T | None]) -> None: ... + @overload + def __init__( + self, __function: Callable[[_T], Any], __iterable: Iterable[_T] + ) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +@overload +def getattr(__o: object, name: str) -> Any: ... + +# While technically covered by the last overload, spelling out the types for None and bool +# help mypy out in some tricky situations involving type context (aka bidirectional inference) +@overload +def getattr(__o: object, name: str, __default: None) -> Any | None: ... +@overload +def getattr(__o: object, name: str, __default: bool) -> Any | bool: ... +@overload +def getattr(__o: object, name: str, __default: _T) -> Any | _T: ... +def globals() -> dict[str, Any]: ... +def hasattr(__obj: object, __name: str) -> bool: ... +def hash(__obj: object) -> int: ... +def help(*args: Any, **kwds: Any) -> None: ... +def hex(__number: int | SupportsIndex) -> str: ... +def id(__obj: object) -> int: ... +def input(__prompt: Any = ...) -> str: ... +@overload +def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T | None], __sentinel: None) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ... + +if sys.version_info >= (3, 10): + def isinstance( + __obj: object, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + def issubclass( + __cls: type, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + +else: + def isinstance( + __obj: object, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + def issubclass( + __cls: type, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + +def len(__obj: Sized) -> int: ... +def locals() -> dict[str, Any]: ... + +class map(Iterator[_S], Generic[_S]): + @overload + def __init__(self, __func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[..., _S], + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> None: ... + def __iter__(self) -> Iterator[_S]: ... + def __next__(self) -> _S: ... + +@overload +def max( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def max( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def max(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def max( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def min( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def min( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def min(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def min( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def next(__i: Iterator[_T]) -> _T: ... +@overload +def next(__i: Iterator[_T], default: _VT) -> _T | _VT: ... +def oct(__number: int | SupportsIndex) -> str: ... + +_OpenFile = Union[StrOrBytesPath, int] +_Opener = Callable[[str, int], int] + +# Text mode: always returns a TextIOWrapper +@overload +def open( + file: _OpenFile, + mode: OpenTextMode = ..., + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> TextIO: ... + +# Unbuffered binary mode: returns a FileIO +@overload +def open( + file: _OpenFile, + mode: OpenBinaryMode, + buffering: int = ..., + encoding: None = ..., + errors: None = ..., + newline: None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> BinaryIO: ... + +# Fallback if mode is not specified +@overload +def open( + file: _OpenFile, + mode: str, + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> IO[Any]: ... +def ord(__c: str | bytes) -> int: ... +def print( + *values: object, + sep: str | None = ..., + end: str | None = ..., + file: SupportsWrite[str] | None = ..., + flush: bool = ..., +) -> None: ... + +_E = TypeVar("_E", contravariant=True) +_M = TypeVar("_M", contravariant=True) + +class _SupportsPow2(Protocol[_E, _T_co]): + def __pow__(self, __other: _E) -> _T_co: ... + +class _SupportsPow3(Protocol[_E, _M, _T_co]): + def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ... + +if sys.version_info >= (3, 8): + @overload + def pow( + base: int, exp: int, mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(base: int, exp: int, mod: int) -> int: ... + @overload + def pow(base: float, exp: float, mod: None = ...) -> float: ... + @overload + def pow(base: _SupportsPow2[_E, _T_co], exp: _E) -> _T_co: ... + @overload + def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ... + +else: + @overload + def pow( + __base: int, __exp: int, __mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(__base: int, __exp: int, __mod: int) -> int: ... + @overload + def pow(__base: float, __exp: float, __mod: None = ...) -> float: ... + @overload + def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ... + @overload + def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ... + +class reversed(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __sequence: Reversible[_T]) -> None: ... + @overload + def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +def repr(__obj: object) -> str: ... +@overload +def round(number: SupportsRound[Any]) -> int: ... +@overload +def round(number: SupportsRound[Any], ndigits: None) -> int: ... +@overload +def round(number: SupportsRound[_T], ndigits: SupportsIndex) -> _T: ... +def setattr(__obj: object, __name: str, __value: Any) -> None: ... +@overload +def sorted( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., reverse: bool = ... +) -> list[SupportsLessThanT]: ... +@overload +def sorted( + __iterable: Iterable[_T], + *, + key: Callable[[_T], SupportsLessThan], + reverse: bool = ..., +) -> list[_T]: ... + +if sys.version_info >= (3, 8): + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], start: _S) -> _T | _S: ... + +else: + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], __start: _S) -> _T | _S: ... + +class zip(Iterator[_T_co], Generic[_T_co]): + @overload + def __new__(cls, __iter1: Iterable[_T1]) -> zip[Tuple[_T1]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2] + ) -> zip[Tuple[_T1, _T2]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3] + ) -> zip[Tuple[_T1, _T2, _T3]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> zip[Tuple[_T1, _T2, _T3, _T4]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> zip[Tuple[Any, ...]]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __next__(self) -> _T_co: ... + +def __import__( + name: str, + globals: Mapping[str, Any] | None = ..., + locals: Mapping[str, Any] | None = ..., + fromlist: Sequence[str] = ..., + level: int = ..., +) -> Any: ... + +# Actually the type of Ellipsis is , but since it's +# not exposed anywhere under that name, we make it private here. +class ellipsis: ... + +Ellipsis: ellipsis + +class BaseException(object): + args: Tuple[Any, ...] + __cause__: BaseException | None + __context__: BaseException | None + __suppress_context__: bool + __traceback__: TracebackType | None + def __init__(self, *args: object) -> None: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def with_traceback(self: _TBE, tb: TracebackType | None) -> _TBE: ... + +class GeneratorExit(BaseException): ... +class KeyboardInterrupt(BaseException): ... + +class SystemExit(BaseException): + code: int + +class Exception(BaseException): ... + +class StopIteration(Exception): + value: Any + +_StandardError = Exception + +class OSError(Exception): + errno: int + strerror: str + # filename, filename2 are actually str | bytes | None + filename: Any + filename2: Any + if sys.platform == "win32": + winerror: int + +if sys.platform == "win32": + WindowsError = OSError + +class ArithmeticError(_StandardError): ... +class AssertionError(_StandardError): ... + +class AttributeError(_StandardError): + if sys.version_info >= (3, 10): + name: str + obj: object + +class EOFError(_StandardError): ... + +class ImportError(_StandardError): + def __init__( + self, *args: object, name: str | None = ..., path: str | None = ... + ) -> None: ... + name: str | None + path: str | None + msg: str # undocumented + +class LookupError(_StandardError): ... +class MemoryError(_StandardError): ... + +class NameError(_StandardError): + if sys.version_info >= (3, 10): + name: str + +class RuntimeError(_StandardError): ... + +class StopAsyncIteration(Exception): + value: Any + +class SyntaxError(_StandardError): + msg: str + lineno: int | None + offset: int | None + text: str | None + filename: str | None + if sys.version_info >= (3, 10): + end_lineno: int | None + end_offset: int | None + +class TypeError(_StandardError): ... +class ValueError(_StandardError): ... +class FloatingPointError(ArithmeticError): ... +class OverflowError(ArithmeticError): ... +class ZeroDivisionError(ArithmeticError): ... +class IndexError(LookupError): ... +class KeyError(LookupError): ... +class NotImplementedError(RuntimeError): ... +class IndentationError(SyntaxError): ... +class TabError(IndentationError): ... diff --git a/lang/de/typeshed/stdlib/collections/__init__.pyi b/lang/de/typeshed/stdlib/collections/__init__.pyi new file mode 100644 index 0000000..8815a4b --- /dev/null +++ b/lang/de/typeshed/stdlib/collections/__init__.pyi @@ -0,0 +1,60 @@ +import sys +from typing import ( + Any, + Dict, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Optional, + Reversible, + Tuple, + Type, + TypeVar, + Union, + ValuesView, +) + +_S = TypeVar("_S") +_T = TypeVar("_T") +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") + +if sys.version_info >= (3, 7): + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + rename: bool = ..., + module: Optional[str] = ..., + defaults: Optional[Iterable[Any]] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +else: + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + verbose: bool = ..., + rename: bool = ..., + module: Optional[str] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +class _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]): + def __reversed__(self) -> Iterator[_KT]: ... + +class _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]): + def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ... + +class _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]): + def __reversed__(self) -> Iterator[_VT]: ... + +class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]): + def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ... + def move_to_end(self, key: _KT, last: bool = ...) -> None: ... + def copy(self: _S) -> _S: ... + def __reversed__(self) -> Iterator[_KT]: ... + def keys(self) -> _OrderedDictKeysView[_KT]: ... + def items(self) -> _OrderedDictItemsView[_KT, _VT]: ... + def values(self) -> _OrderedDictValuesView[_VT]: ... diff --git a/lang/de/typeshed/stdlib/errno.pyi b/lang/de/typeshed/stdlib/errno.pyi new file mode 100644 index 0000000..6ff1c70 --- /dev/null +++ b/lang/de/typeshed/stdlib/errno.pyi @@ -0,0 +1,26 @@ +from typing import Mapping + +errorcode: Mapping[int, str] + +EACCES: int +EADDRINUSE: int +EAGAIN: int +EALREADY: int +EBADF: int +ECONNABORTED: int +ECONNREFUSED: int +ECONNRESET: int +EEXIST: int +EHOSTUNREACH: int +EINPROGRESS: int +EINVAL: int +EIO: int +EISDIR: int +ENOBUFS: int +ENODEV: int +ENOENT: int +ENOMEM: int +ENOTCONN: int +EOPNOTSUPP: int +EPERM: int +ETIMEDOUT: int diff --git a/lang/de/typeshed/stdlib/gc.pyi b/lang/de/typeshed/stdlib/gc.pyi new file mode 100644 index 0000000..0d8aee5 --- /dev/null +++ b/lang/de/typeshed/stdlib/gc.pyi @@ -0,0 +1,68 @@ +"""Steuerung des Garbage Collectors""" +from typing import overload + +def enable() -> None: + """Automatische Garbage Collection aktivieren.""" + ... + +def disable() -> None: + """Automatische Garbage Collection deaktivieren. + +Heap memory can still be allocated, +and garbage collection can still be initiated manually using ``gc.collect``.""" + +def collect() -> None: + """Garbage Collection ausführen.""" + ... + +def mem_alloc() -> int: + """Ermittelt die Anzahl der dem Heap-Speicher zugewiesen Bytes. + +:return: The number of bytes allocated. + +This function is MicroPython extension.""" + ... + +def mem_free() -> int: + """Gibt die Anzahl der Bytes des verfügbaren dynamischen Speichers zurück. -1 wird zurückgegeben, wenn dieser Wert unbekannt ist. + +:return: The number of bytes free. + +This function is MicroPython extension.""" + ... + +@overload +def threshold() -> int: + """Den zusätzlichen GC-Zuteilungsschwellwert abfragen. + +:return: The GC allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different.""" + ... + +@overload +def threshold(amount: int) -> None: + """Den zusätzlichen GC-Schwellenwert festlegen. + +Normally, a collection is triggered only when a new allocation +cannot be satisfied, i.e. on an out-of-memory (OOM) condition. +If this function is called, in addition to OOM, a collection +will be triggered each time after ``amount`` bytes have been +allocated (in total, since the previous time such an amount of bytes +have been allocated). ``amount`` is usually specified as less than the +full heap size, with the intention to trigger a collection earlier than when the +heap becomes exhausted, and in the hope that an early collection will prevent +excessive memory fragmentation. This is a heuristic measure, the effect +of which will vary from application to application, as well as +the optimal value of the ``amount`` parameter. + +A value of -1 means a disabled allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different. + +:param amount: Die Anzahl der Bytes, nach denen eine Garbage Collection ausgelöst werden soll.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/log.pyi b/lang/de/typeshed/stdlib/log.pyi new file mode 100644 index 0000000..281e68d --- /dev/null +++ b/lang/de/typeshed/stdlib/log.pyi @@ -0,0 +1,89 @@ +"""Zeichne Daten auf deinem micro:bit V2 auf.""" +from typing import Literal, Mapping, Optional, Union, overload +MILLISECONDS = 1 +"""Millisekunden Zeitstempelformat. (millisekunden)""" +SECONDS = 10 +"""Sekunden Zeitstempelformat. (sekunden)""" +MINUTES = 600 +"""Minuten Zeitstempelformat. (minuten)""" +HOURS = 36000 +"""Stunden Zeitstempelformat. (stunden)""" +DAYS = 864000 +"""Tage Zeitstempelformat. (tage)""" + +def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None: + """Den Logdatei-Header setzen (Beschriftungen festlegen) + +Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)`` + +Ideally this function should be called a single time, before any data is +logged, to configure the data table header once. + +If a log file already exists when the program starts, or if this function +is called multiple times, it will check the labels already defined in the +log file. If this function call contains any new labels not already +present, it will generate a new header row with the additional columns. + +By default the first column contains a timestamp for each row. The time +unit can be selected via the timestamp argument. + +:param *labels: Eine beliebige Anzahl von Positionsargumenten, die jeweils einem Eintrag in der Kopfzeile des Logs entsprechen. +:param timestamp: (Zeitstempel) Wähle die Zeitstempel-Einheit, die automatisch als erste Spalte in jeder Zeile hinzugefügt wird. Der Zeitstempel kann einen der folgenden Werte annehmen: ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` oder ``None``, um den Zeitstempel zu deaktivieren. Der Standardwert ist ``log.SECONDS``.""" + ... + +@overload +def add(data_dictionary: Optional[Mapping[str, Union[str, int, float]]]) -> None: + """Füge dem Protokoll eine Datenzeile hinzu, indem du ein Dictionary mit Kopfzeileneinträgen und Werten übergibst. (hinzufügen) + +Example: ``log.add({ 'temp': temperature() })`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row. + +:param data_dictionary: (daten wörterbuch) Die zu protokollierenden Daten in Form eines Dictionarys mit einem Schlüssel für jeden Kopfzeileneintrag.""" + ... + +@overload +def add(**kwargs: Union[str, int, float]) -> None: + """Füge dem Protokoll eine Datenzeile mit Schlüsselwörtern als Argumenten hinzu. (hinzufügen) + +Example: ``log.add(temp=temperature())`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row.""" + ... + +def delete(full=False): + """Löscht den Inhalt des Protokolls, einschließlich der Kopfzeilen. (löschen) + +Example: ``log.delete()`` + +To add the log headers again the ``set_labels`` function should to be called after this function. + +There are two erase modes; “full” completely removes the data from the physical storage, +and “fast” invalidates the data without removing it. + +:param full: (vollständig) Mit ``True`` wird ein " vollständiges" Löschen und mit ``False`` die "schnelle" Löschmethode gewählt.""" + ... + +def set_mirroring(serial: bool): + """Richte die Spiegelung der Datenprotokollierung auf dem seriellen Ausgang ein. (spiegeln) + +Example: ``log.set_mirroring(True)`` + +Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. + +:param serial: (seriell) ``True`` aktiviert die Spiegelung von Daten auf dem seriellen Ausgang.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/love.pyi b/lang/de/typeshed/stdlib/love.pyi new file mode 100644 index 0000000..9018624 --- /dev/null +++ b/lang/de/typeshed/stdlib/love.pyi @@ -0,0 +1 @@ +def badaboom() -> None: ... diff --git a/lang/de/typeshed/stdlib/machine.pyi b/lang/de/typeshed/stdlib/machine.pyi new file mode 100644 index 0000000..eda1989 --- /dev/null +++ b/lang/de/typeshed/stdlib/machine.pyi @@ -0,0 +1,84 @@ +"""Low-Level-Utilities. (maschine)""" +from typing import Any +from .microbit import MicroBitDigitalPin + +def unique_id() -> bytes: + """Liefert eine Byte-Zeichenkette mit einem eindeutigen Bezeichner für ein Board. (Eindeutige ID) + +Example: ``machine.unique_id()`` + +:return: An identifier that varies from one board instance to another.""" + ... + +def reset() -> None: + """Setzt das Gerät zurück, als würde man die externe RESET-Taste drückt. (zurücksetzen) + +Example: ``machine.reset()``""" + ... + +def freq() -> int: + """Ermittelt die Taktfrequenz der CPU in Hertz. + +Example: ``machine.freq()`` + +:return: The CPU frequency.""" + ... + +def disable_irq() -> Any: + """Deaktiviere Interrupt-Anforderungen. (IRQ deaktivieren) + +Example: ``interrupt_state = machine.disable_irq()`` + +:return: the previous IRQ state which should be considered an opaque value + +The return value should be passed to the ``enable_irq`` function to restore +interrupts to their original state.""" + ... + +def enable_irq(state: Any) -> None: + """Interrupt-Anfragen wieder aktivieren. (IRQ aktivieren) + +Example: ``machine.enable_irq(interrupt_state)`` + +:param state: Der Wert, der beim letzten Aufruf der Funktion ``disable_irq`` zurückgegeben wurde.""" + ... + +def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int: + """Gibt die Dauer eines Impulses an einem Pin zurück. (zeitimpuls us) + +Example: ``time_pulse_us(pin0, 1)`` + +If the current input value of the pin is different to ``pulse_level``, the +function first waits until the pin input becomes equal to +``pulse_level``, then times the duration that the pin is equal to +``pulse_level``. If the pin is already equal to ``pulse_level`` then timing +starts straight away. + +:param pin: Der zu verwendende Pin +:param pulse_level: (pulsstufe) 0, um einen Low-Impuls oder 1, um einen High-Impuls zu messen +:param timeout_us: Eine Verzögerung in Mikrosekunden +:return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end""" + ... + +class mem: + """Die Klasse für die ``mem8``, ``mem16`` und ``mem32`` Speicheranzeigen.""" + + def __getitem__(self, address: int) -> int: + """Greife auf einen Wert im Speicher zu. + +:param address: (adresse) Die Speicheradresse. +:return: The value at that address as an integer.""" + ... + + def __setitem__(self, address: int, value: int) -> None: + """Setzt einen Wert an der angegebenen Adresse. + +:param address: (adresse) Die Speicheradresse. +:param value: (wert) Der zu setzende Integer-Wert.""" + ... +mem8: mem +"""8-Bit (Byte) Ansicht des Speichers.""" +mem16: mem +"""16-Bit (Byte) Ansicht des Speichers.""" +mem32: mem +"""32-Bit (Byte) Ansicht des Speichers.""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/math.pyi b/lang/de/typeshed/stdlib/math.pyi new file mode 100644 index 0000000..c81f9d0 --- /dev/null +++ b/lang/de/typeshed/stdlib/math.pyi @@ -0,0 +1,246 @@ +"""Mathematische Funktionen.""" +from typing import Tuple + +def acos(x: float) -> float: + """Berechnet den Arkuskosinus. + +Example: ``math.acos(1)`` + +:param x: Eine Zahl +:return: The inverse cosine of ``x``""" + ... + +def asin(x: float) -> float: + """Berechnet den Arkussinus. + +Example: ``math.asin(0)`` + +:param x: Eine Zahl +:return: The inverse sine of ``x``""" + ... + +def atan(x: float) -> float: + """Berechnet den Arkustangens. + +Example: ``math.atan(0)`` + +:param x: Eine Zahl +:return: The inverse tangent of ``x``""" + ... + +def atan2(y: float, x: float) -> float: + """Berechnet den Hauptwert des Arkustangens von ``y/x``. + +Example: ``math.atan2(0, -1)`` + +:param y: Eine Zahl +:param x: Eine Zahl +:return: The principal value of the inverse tangent of ``y/x``""" + ... + +def ceil(x: float) -> float: + """Rundet eine Zahl in Richtung positiver Unendlichkeit. + +Example: ``math.ceil(0.1)`` + +:param x: Eine Zahl +:return: ``x`` rounded towards positive infinity.""" + ... + +def copysign(x: float, y: float) -> float: + """Berechne ``x`` mit dem Vorzeichen von ``y``. + +Example: ``math.copysign(1, -1)`` + +:param x: Eine Zahl +:param y: Die Herkunft des Vorzeichens für den Rückgabewert +:return: ``x`` with the sign of ``y``""" + ... + +def cos(x: float) -> float: + """Berechnet den Kosinus von ``x``. + +Example: ``math.cos(0)`` + +:param x: Eine Zahl +:return: The cosine of ``x``""" + ... + +def degrees(x: float) -> float: + """Wandelt Bogenmaß (Radiant) in Grad um. + +Example: ``math.degrees(2 * math.pi)`` + +:param x: Ein Wert in Radiant +:return: The value converted to degrees""" + ... + +def exp(x: float) -> float: + """Berechnet den Exponentialwert von ``x``. + +Example: ``math.exp(1)`` + +:param x: Eine Zahl +:return: The exponential of ``x``.""" + ... + +def fabs(x: float) -> float: + """Gibt den absoluten Wert von ``x`` zurück. + +Example: ``math.fabs(-0.1)`` + +:param x: Eine Zahl +:return: The absolute value of ``x``""" + ... + +def floor(x: float) -> int: + """Rundet eine Zahl in Richtung negativer Unendlichkeit. + +Example: ``math.floor(0.9)`` + +:param x: Eine Zahl +:return: ``x`` rounded towards negative infinity.""" + ... + +def fmod(x: float, y: float) -> float: + """Berechne den Rest von ``x/y``. + +Example: ``math.fmod(10, 3)`` + +:param x: Der Zähler +:param y: Der Nenner""" + ... + +def frexp(x: float) -> Tuple[float, int]: + """Zerlegt eine Gleitkommazahl in ihre Mantisse und ihren Exponenten. + +Example: ``mantissa, exponent = math.frexp(2)`` + +The returned value is the tuple ``(m, e)`` such that ``x == m * 2**e`` +exactly. If ``x == 0`` then the function returns ``(0.0, 0)``, otherwise +the relation ``0.5 <= abs(m) < 1`` holds. + +:param x: Eine Fließkommazahl +:return: A tuple of length two containing its mantissa then exponent""" + ... + +def isfinite(x: float) -> bool: + """Überprüft, ob ein Wert endlich ist. + +Example: ``math.isfinite(float('inf'))`` + +:param x: Eine Zahl. +:return: ``True`` if ``x`` is finite, ``False`` otherwise.""" + ... + +def isinf(x: float) -> bool: + """Überprüft, ob ein Wert unendlich ist. + +Example: ``math.isinf(float('-inf'))`` + +:param x: Eine Zahl. +:return: ``True`` if ``x`` is infinite, ``False`` otherwise.""" + ... + +def isnan(x: float) -> bool: + """Prüft, ob ein Wert keine Zahl (NaN ... Not A Number) ist. + +Example: ``math.isnan(float('nan'))`` + +:param x: Eine Zahl +:return: ``True`` if ``x`` is not-a-number (NaN), ``False`` otherwise.""" + ... + +def ldexp(x: float, exp: int) -> float: + """Berechne ``x * (2**exp)``. + +Example: ``math.ldexp(0.5, 2)`` + +:param x: Eine Zahl +:param exp: Ganzzahl-Exponent +:return: ``x * (2**exp)``""" + ... + +def log(x: float, base: float=e) -> float: + """Berechnet den Logarithmus von ``x`` zur angegebenen Basis (standardmäßig den natürlichen Logarithmus). + +Example: ``math.log(math.e)`` + +With one argument, return the natural logarithm of x (to base e). + +With two arguments, return the logarithm of x to the given base, calculated as ``log(x)/log(base)``. + +:param x: Eine Zahl +:param base: Die zu verwendende Basis +:return: The natural logarithm of ``x``""" + ... + +def modf(x: float) -> Tuple[float, float]: + """Berechne die gebrochenen und ganzzahligen Teile von ``x``. + +Example: ``fractional, integral = math.modf(1.5)`` + +:param x: Eine Zahl +:return: A tuple of two floats representing the fractional then integral parts of ``x``. + +Both the fractional and integral values have the same sign as ``x``.""" + ... + +def pow(x: float, y: float) -> float: + """Gibt ``x`` hoch ``y`` zurück. + +Example: ``math.pow(4, 0.5)`` + +:param x: Eine Zahl +:param y: Der Exponent +:return: ``x`` to the power of ``y``""" + ... + +def radians(x: float) -> float: + """Wandelt Grad in Bogenmaß (Radiant) um. + +Example: ``math.radians(360)`` + +:param x: Ein Wert in Grad +:return: The value converted to radians""" + ... + +def sin(x: float) -> float: + """Berechnet den Sinus von ``x``. + +Example: ``math.sin(math.pi/2)`` + +:param x: Eine Zahl +:return: The sine of ``x``""" + ... + +def sqrt(x: float) -> float: + """Berechnet die Quadratwurzel von ``x``. + +Example: ``math.sqrt(4)`` + +:param x: Eine Zahl +:return: The square root of ``x``""" + ... + +def tan(x: float) -> float: + """Berechnet den Tangens von ``x``. + +Example: ``math.tan(0)`` + +:param x: Eine Zahl +:return: The tangent of ``x``.""" + ... + +def trunc(x: float) -> int: + """Rundet eine Zahl gegen 0 ab. + +Example: ``math.trunc(-0.9)`` + +:param x: Eine Zahl +:return: ``x`` rounded towards zero.""" + ... +e: float +"""Basis des natürlichen Logarithmus""" +pi: float +"""Das Verhältnis des Umfangs eines Kreises zu seinem Durchmesser""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/__init__.pyi b/lang/de/typeshed/stdlib/microbit/__init__.pyi new file mode 100644 index 0000000..eeeff8d --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/__init__.pyi @@ -0,0 +1,706 @@ +"""Pins, Bilder, Töne, Temperatur und Lautstärke.""" +from typing import Any, Callable, List, Optional, Tuple, Union, overload +from _typeshed import ReadableBuffer +from . import accelerometer as accelerometer +from . import audio as audio +from . import compass as compass +from . import display as display +from . import i2c as i2c +from . import microphone as microphone +from . import speaker as speaker +from . import spi as spi +from . import uart as uart + +def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: + """Plant die Ausführung einer Funktion in dem durch die Zeitargumente festgelegten Intervall **nur V2**. + +Example: ``run_every(my_logging, min=5)`` + +``run_every`` can be used in two ways: + +As a Decorator - placed on top of the function to schedule. For example:: + + @run_every(h=1, min=20, s=30, ms=50) + def my_function(): + # Do something here + +As a Function - passing the callback as a positional argument. For example:: + + def my_function(): + # Do something here + run_every(my_function, s=30) + +Each argument corresponds to a different time unit and they are additive. +So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. + +When an exception is thrown inside the callback function it deschedules the +function. To avoid this you can catch exceptions with ``try/except``. + +:param callback: Funktion, die in dem angegebenen Intervall aufgerufen wird. Bei Verwendung als Dekorator weglassen. +:param days: (tage) Legt den Tag für die Planung fest. +:param h: Legt die Uhrzeit für die Planung fest. +:param min: Legt die Minute für die Planung fest. +:param s: Legt die Sekunde für die Planung fest. +:param ms: Legt die Millisekunde für die Planung fest.""" + +def panic(n: int) -> None: + """In einen Panik-Modus gehen. + +Example: ``panic(127)`` + +:param n: Eine beliebige ganze Zahl <= 255, um einen Status anzugeben. + +Requires restart.""" + +def reset() -> None: + """Board neu starten.""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[int, int]) -> int: + """Konvertiert einen Wert aus einem Bereich in einen Ganzzahlenbereich. + +Example: ``volume = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255))`` + +For example, to convert an accelerometer X value to a speaker volume. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. + + temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) + +:param value: (wert) Eine umzurechnende Zahl. +:param from_: Ein Tupel, das den Bereich definiert, aus dem konvertiert werden soll. +:param to: Ein Tupel, das den Bereich definiert, in den konvertiert werden soll. +:return: The ``value`` converted to the ``to`` range.""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[float, float]) -> float: + """Konvertiert einen Wert von einem Bereich in einen Gleitkommabereich. + +Example: ``temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0))`` + +For example, to convert temperature from a Celsius scale to Fahrenheit. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. +If they are both integers (i.e ``10``), it will return an integer:: + + returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) + +:param value: (wert) Eine umzurechnende Zahl. +:param from_: Ein Tupel, das den Bereich definiert, aus dem konvertiert werden soll. +:param to: Ein Tupel, das den Bereich definiert, in den konvertiert werden soll. +:return: The ``value`` converted to the ``to`` range.""" + +def sleep(n: float) -> None: + """Warte auf ``n`` Millisekunden. + +Example: ``sleep(1000)`` + +:param n: Die Anzahl der zu wartenden Millisekunden + +One second is 1000 milliseconds, so:: + + microbit.sleep(1000) + +will pause the execution for one second.""" + +def running_time() -> int: + """Ermittelt die Laufzeit des Boards. + +:return: The number of milliseconds since the board was switched on or restarted.""" + +def temperature() -> int: + """Ermittelt die Temperatur des micro:bit in Grad Celcius.""" + +def set_volume(v: int) -> None: + """Legt die Lautstärke fest. + +Example: ``set_volume(127)`` + +:param v: ein Wert zwischen 0 (niedrig) und 255 (hoch). + +Out of range values will be clamped to 0 or 255. + +**V2** only.""" + ... + +class Button: + """Die Klasse für die Tasten ``button_a`` und ``button_b``.""" + + def is_pressed(self) -> bool: + """Überprüft, ob die Taste gedrückt ist. + +:return: ``True`` if the specified button ``button`` is pressed, and ``False`` otherwise.""" + ... + + def was_pressed(self) -> bool: + """Überprüft, ob die Taste seit dem Start des Geräts oder dem letzten Aufruf dieser Methode gedrückt wurde. + +Calling this method will clear the press state so +that the button must be pressed again before this method will return +``True`` again. + +:return: ``True`` if the specified button ``button`` was pressed, and ``False`` otherwise""" + ... + + def get_presses(self) -> int: + """Ermittelt die Gesamtzahl der Tastendrücke und setzt diese Summe auf Null zurück, bevor sie zurückgegeben wird. + +:return: The number of presses since the device started or the last time this method was called""" + ... +button_a: Button +"""Das ``Button``-Objekt der linken Taste.""" +button_b: Button +"""Das ``Button``-Objekt der rechten Taste.""" + +class MicroBitDigitalPin: + """Ein digitaler Pin. + +Some pins support analog and touch features using the ``MicroBitAnalogDigitalPin`` and ``MicroBitTouchPin`` subclasses.""" + NO_PULL: int + PULL_UP: int + PULL_DOWN: int + + def read_digital(self) -> int: + """Ermittelt den digitalen Wert des Pins. + +Example: ``value = pin0.read_digital()`` + +:return: 1 if the pin is high, and 0 if it's low.""" + ... + + def write_digital(self, value: int) -> None: + """Stellt den digitalen Wert des Pins ein. (digital schreiben) + +Example: ``pin0.write_digital(1)`` + +:param value: (wert) 1, um den Pin zu aktivieren, oder 0, um den Pin zu deaktivieren""" + ... + + def set_pull(self, value: int) -> None: + """Setze den Status des Pull-Widerstands auf einen von drei möglichen Werten: ``PULL_UP``, ``PULL_DOWN`` oder ``NO_PULL``. (setze Pull-Widerstand) + +Example: ``pin0.set_pull(pin0.PULL_UP)`` + +:param value: (wert) Der Status des Pull-Widerstands vom relevanten Pin, z.B. ``pin0.PULL_UP``.""" + ... + + def get_pull(self) -> int: + """Abrufen des Status des Pull-Widerstands eines Pins. (gib Pull-Widerstand) + +Example: ``pin0.get_pull()`` + +:return: ``NO_PULL``, ``PULL_DOWN``, or ``PULL_UP`` + +These are set using the ``set_pull()`` method or automatically configured +when a pin mode requires it.""" + ... + + def get_mode(self) -> str: + """Gibt den Pin-Modus zurück. (gib Pin-Modus) + +Example: ``pin0.get_mode()`` + +When a pin is used for a specific function, like +writing a digital value, or reading an analog value, the pin mode +changes. + +:return: ``"unused"``, ``"analog"``, ``"read_digital"``, ``"write_digital"``, ``"display"``, ``"button"``, ``"music"``, ``"audio"``, ``"touch"``, ``"i2c"``, or ``"spi"``""" + ... + + def write_analog(self, value: int) -> None: + """Erzeugt ein PWM-Signal am Pin mit der Einschaltdauer proportional zu ``value``. (analog schreiben) + +Example: ``pin0.write_analog(254)`` + +:param value: (wert) Eine Ganzzahl oder eine Gleitpunktzahl zwischen 0 (0% Einschaltdauer) und 1023 (100% Einschaltdauer).""" + + def set_analog_period(self, period: int) -> None: + """Setzt die Periodendauer des PWM-Signals, das ausgegeben wird, auf ``period`` in Millisekunden. (setze analoge Periodendauer) + +Example: ``pin0.set_analog_period(10)`` + +:param period: (Periodendauer) Der Periodendauer in Millisekunden mit einem Mindestwert von 1ms.""" + + def set_analog_period_microseconds(self, period: int) -> None: + """Setze die Periodendauer für die Ausgabe des PWM-Signals auf ``period`` in Mikrosekunden. (setze analoge Periodendauer) + +Example: ``pin0.set_analog_period_microseconds(512)`` + +:param period: (Periodendauer) Die Periodendauer in Mikrosekunden mit einem Mindestwert von 256μs.""" + +class MicroBitAnalogDigitalPin(MicroBitDigitalPin): + """Ein Pin, der analogen und digitalen Signale erlaubt.""" + + def read_analog(self) -> int: + """Einlesen der Spannung, die am Pin anliegt. (analog lesen) + +Example: ``pin0.read_analog()`` + +:return: An integer between 0 (meaning 0V) and 1023 (meaning 3.3V).""" + +class MicroBitTouchPin(MicroBitAnalogDigitalPin): + """Ein Pin mit analogen, digitalen und Touchfunktionen.""" + CAPACITIVE: int + RESISTIVE: int + + def is_touched(self) -> bool: + """Überprüft, ob der Pin berührt wird. (wird berührt) + +Example: ``pin0.is_touched()`` + +The default touch mode for the pins on the edge connector is ``resistive``. +The default for the logo pin **V2** is ``capacitive``. + +**Resistive touch** +This test is done by measuring how much resistance there is between the +pin and ground. A low resistance gives a reading of ``True``. To get +a reliable reading using a finger you may need to touch the ground pin +with another part of your body, for example your other hand. + +**Capacitive touch** +This test is done by interacting with the electric field of a capacitor +using a finger as a conductor. `Capacitive touch +`_ +does not require you to make a ground connection as part of a circuit. + +:return: ``True`` if the pin is being touched with a finger, otherwise return ``False``.""" + ... + + def set_touch_mode(self, value: int) -> None: + """Legt den Touchmodus für den Pin fest. (definiert Berührungsmodus) + +Example: ``pin0.set_touch_mode(pin0.CAPACITIVE)`` + +The default touch mode for the pins on the edge connector is +``resistive``. The default for the logo pin **V2** is ``capacitive``. + +:param value: (wert) ``CAPACITIVE`` oder ``RESISTIVE`` Touchmodus des entsprechenden Pins.""" + ... +pin0: MicroBitTouchPin +"""Pin mit digitalen, analogen und Touchfunktionen.""" +pin1: MicroBitTouchPin +"""Pin mit digitalen, analogen und Touchfunktionen.""" +pin2: MicroBitTouchPin +"""Pin mit digitalen, analogen und Touchfunktionen.""" +pin3: MicroBitAnalogDigitalPin +"""Pin mit digitalen und analogen Funktionen.""" +pin4: MicroBitAnalogDigitalPin +"""Pin mit digitalen und analogen Funktionen.""" +pin5: MicroBitDigitalPin +"""Pin mit Unterstützung für digitale Signale.""" +pin6: MicroBitDigitalPin +"""Pin mit Unterstützung für digitale Signale.""" +pin7: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin8: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin9: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin10: MicroBitAnalogDigitalPin +"""Pin mit digitalen und analogen Funktionen.""" +pin11: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin12: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin13: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin14: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin15: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin16: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin19: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin20: MicroBitDigitalPin +"""Pin mit digitalen Funktionen.""" +pin_logo: MicroBitTouchPin +"""Ein berührungsempfindlicher Logo-Pin auf der Vorderseite des micro:bit, der standardmäßig auf den kapazitiven Touch-Modus eingestellt ist.""" +pin_speaker: MicroBitAnalogDigitalPin +"""Ein Pin zur Ansteuerung des micro:bit Lautsprechers. + +This API is intended only for use in Pulse-Width Modulation pin operations e.g. pin_speaker.write_analog(128). +""" + +class Image: + """Ein Bild, das auf dem micro:bit LED-Display angezeigt werden soll. + +Given an image object it's possible to display it via the ``display`` API:: + + display.show(Image.HAPPY)""" + HEART: Image + """Herz-Bild.""" + HEART_SMALL: Image + """Kleines Herz-Bild.""" + HAPPY: Image + """Glückliches Gesichtsbild.""" + SMILE: Image + """Lächelndes Gesichtsbild.""" + SAD: Image + """Trauriges Gesichtsbild.""" + CONFUSED: Image + """Verwirrtes Gesichtsbild.""" + ANGRY: Image + """Wütendes Gesichtsbild.""" + ASLEEP: Image + """Schlafendes Gesichtsbild.""" + SURPRISED: Image + """Überraschtes Gesichtsbild.""" + SILLY: Image + """Albernes Gesichtsbild.""" + FABULOUS: Image + """Bild mit Sonnenbrillengesicht. (fabelhaft)""" + MEH: Image + """Gleichgültiges Gesicht Bild.""" + YES: Image + """abgehakt-Bild""" + NO: Image + """angekreuzt-Bild""" + CLOCK12: Image + """Bild mit Linie, die auf 12 Uhr zeigt.""" + CLOCK11: Image + """Bild mit Linie, die auf 11 Uhr zeigt.""" + CLOCK10: Image + """Bild mit Linie, die auf 10 Uhr zeigt.""" + CLOCK9: Image + """Bild mit Linie, die auf 9 Uhr zeigt.""" + CLOCK8: Image + """Bild mit Linie, die auf 8 Uhr zeigt.""" + CLOCK7: Image + """Bild mit Linie, die auf 7 Uhr zeigt.""" + CLOCK6: Image + """Bild mit Linie, die auf 6 Uhr zeigt.""" + CLOCK5: Image + """Bild mit Linie, die auf 5 Uhr zeigt.""" + CLOCK4: Image + """Bild mit Linie, die auf 4 Uhr zeigt.""" + CLOCK3: Image + """Bild mit Linie, die auf 3 Uhr zeigt.""" + CLOCK2: Image + """Bild mit Linie, die auf 2 Uhr zeigt.""" + CLOCK1: Image + """Bild mit Linie, die auf 1 Uhr zeigt.""" + ARROW_N: Image + """Bild eines Pfeils, der nach Norden zeigt.""" + ARROW_NE: Image + """Bild eines Pfeils, der nach Nordosten zeigt.""" + ARROW_E: Image + """Bild eines Pfeils, der nach Osten zeigt.""" + ARROW_SE: Image + """Bild eines Pfeils, der nach Südosten zeigt.""" + ARROW_S: Image + """Bild eines Pfeils, der nach Süden zeigt.""" + ARROW_SW: Image + """Bild eines Pfeils, der nach Südwesten zeigt.""" + ARROW_W: Image + """Bild eines Pfeils, der nach Westen zeigt.""" + ARROW_NW: Image + """Bild eines Pfeils, der nach Nordwesten zeigt.""" + TRIANGLE: Image + """Bild eines Dreiecks, das nach oben zeigt.""" + TRIANGLE_LEFT: Image + """Bild eines Dreiecks in der linken Ecke.""" + CHESSBOARD: Image + """Abwechselnd leuchtende LEDs in einem Schachbrettmuster.""" + DIAMOND: Image + """Diamant-Bild.""" + DIAMOND_SMALL: Image + """Kleines Diamant-Bild.""" + SQUARE: Image + """Quadrat-Bild""" + SQUARE_SMALL: Image + """Kleines Quadrat-Bild.""" + RABBIT: Image + """Kaninchen-Bild.""" + COW: Image + """Kuh-Bild.""" + MUSIC_CROTCHET: Image + """Viertelnoten-Bild.""" + MUSIC_QUAVER: Image + """Achtelnoten-Bild.""" + MUSIC_QUAVERS: Image + """Achtelnotenpaar-Bild.""" + PITCHFORK: Image + """Heugabel-Bild""" + XMAS: Image + """Weihnachtsbaum-Bild.""" + PACMAN: Image + """Pac-Man Spielfigurenbild.""" + TARGET: Image + """Ziel-Bild""" + TSHIRT: Image + """T-Shirt-Bild.""" + ROLLERSKATE: Image + """Rollerskate-Bild.""" + DUCK: Image + """Ente-Bild""" + HOUSE: Image + """Haus-Bild""" + TORTOISE: Image + """Schildkröte-Bild""" + BUTTERFLY: Image + """Schmetterling-Bild.""" + STICKFIGURE: Image + """Strichmännchen-Bild.""" + GHOST: Image + """Geist-Bild.""" + SWORD: Image + """Schwert-Bild""" + GIRAFFE: Image + """Giraffe-Bild.""" + SKULL: Image + """Schädel-Bild.""" + UMBRELLA: Image + """Bild eines Schirms.""" + SNAKE: Image + """Bild einer Schlange. (Schlange)""" + SCISSORS: Image + """BIld einer Schere. (Schere)""" + ALL_CLOCKS: List[Image] + """Eine Liste mit allen CLOCK_ Bildern. (alle Uhren)""" + ALL_ARROWS: List[Image] + """Eine Liste mit allen ARROW_ Bildern. (alle Pfeile)""" + + @overload + def __init__(self, string: str) -> None: + """Erstellen Sie ein Bild aus einer Zeichenkette, die beschreibt, welche LEDs leuchten. + +``string`` has to consist of digits 0-9 arranged into lines, +describing the image, for example:: + + image = Image("90009:" + "09090:" + "00900:" + "09090:" + "90009") + +will create a 5×5 image of an X. The end of a line is indicated by a +colon. It's also possible to use newlines (\\n) insead of the colons. + +:param string: (Zeichenkette) Eine Zeichenkette, die das Bild beschreibt.""" + ... + + @overload + def __init__(self, width: int=5, height: int=5, buffer: ReadableBuffer=None) -> None: + """Erstelle ein leeres Bild mit ``width`` Spalten und ``height`` Zeilen. + +:param width: (Breite) Optionale Breite des Bildes +:param height: (Höhe) Optionale Höhe des Bildes +:param buffer: (Puffer) Optionales Array oder Bytes von ``width``×``height`` Ganzzahlen im Bereich 0-9 um das Bild zu initialisieren + +Examples:: + + Image(2, 2, b'\x08\x08\x08\x08') + Image(2, 2, bytearray([9,9,9,9])) + +These create 2 x 2 pixel images at full brightness.""" + ... + + def width(self) -> int: + """Ermittelt die Anzahl der Spalten. (Breite) + +:return: The number of columns in the image""" + ... + + def height(self) -> int: + """Ermittelt die Anzahl der Zeilen. (Höhe) + +:return: The number of rows in the image""" + ... + + def set_pixel(self, x: int, y: int, value: int) -> None: + """Legt die Helligkeit eines Pixels fest. (Pixelwerte setzen) + +Example: ``my_image.set_pixel(0, 0, 9)`` + +:param x: Die Spaltennummer +:param y: Die Zeilennummer +:param value: (wert) Die Helligkeit als Ganzzahl zwischen 0 (dunkel) und 9 (hell) + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def get_pixel(self, x: int, y: int) -> int: + """Ermittle die Helligkeit eines Pixels. (Pixelwerte holen) + +Example: ``my_image.get_pixel(0, 0)`` + +:param x: Die Spaltennummer +:param y: Die Zeilennummer +:return: The brightness as an integer between 0 and 9.""" + ... + + def shift_left(self, n: int) -> Image: + """Erstellen Sie ein neues Bild, indem Sie das Bild nach links verschieben. (links verschieben) + +Example: ``Image.HEART_SMALL.shift_left(1)`` + +:param n: Die Anzahl der Spalten um die verschoben wird +:return: The shifted image""" + ... + + def shift_right(self, n: int) -> Image: + """Erstellen Sie ein neues Bild, indem Sie das Bild nach rechts verschieben. (rechts verschieben) + +Example: ``Image.HEART_SMALL.shift_right(1)`` + +:param n: Die Anzahl der Spalten um die verschoben wird +:return: The shifted image""" + ... + + def shift_up(self, n: int) -> Image: + """Erstellen Sie ein neues Bild, indem Sie das Bild nach oben verschoben wird. (nach oben verschieben) + +Example: ``Image.HEART_SMALL.shift_up(1)`` + +:param n: Die Anzahl der Zeilen um die verschoben wird +:return: The shifted image""" + ... + + def shift_down(self, n: int) -> Image: + """Erstellen Sie ein neues Bild, indem Sie das Bild nach unten verschoben wird. (nach unten verschieben) + +Example: ``Image.HEART_SMALL.shift_down(1)`` + +:param n: Die Anzahl der Zeilen um die verschoben wird +:return: The shifted image""" + ... + + def crop(self, x: int, y: int, w: int, h: int) -> Image: + """Erstellen Sie ein neues Bild, indem das Bild zugeschnitten wird. + +Example: ``Image.HEART.crop(1, 1, 3, 3)`` + +:param x: Die Offset-Spalte des Zuschneidens +:param y: Die Offset-Zeile des Zuschneidens +:param w: Die Zuschneide-Breite +:param h: Die Zuschneide-Höhe +:return: The new image""" + ... + + def copy(self) -> Image: + """Erstellt eine exakte Kopie des Bildes. (kopieren) + +Example: ``Image.HEART.copy()`` + +:return: The new image""" + ... + + def invert(self) -> Image: + """Erstellt ein neues Bild, indem es die Helligkeit der Pixel des Ausgangsbildes invertiert. + +Example: ``Image.SMALL_HEART.invert()`` + +:return: The new image.""" + ... + + def fill(self, value: int) -> None: + """Legt die Helligkeit für alle Pixel des Bildes fest. + +Example: ``my_image.fill(5)`` + +:param value: Die neue Helligkeit als Zahl zwischen 0 (dunkel) und 9 (hell). + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def blit(self, src: Image, x: int, y: int, w: int, h: int, xdest: int=0, ydest: int=0) -> None: + """Kopiert einen Bereich aus einem anderen Bild in dieses Bild. + +Example: ``my_image.blit(Image.HEART, 1, 1, 3, 3, 1, 1)`` + +:param src: Das Ausgangsbild +:param x: Der Anfangsspalten-Offset im Ausgangsbild +:param y: Der Anfangszeilen-Offset im Ausgangsbild +:param w: Die Anzahl der zu kopierenden Spalten +:param h: Die Anzahl der zu kopierenden Zeilen +:param xdest: Der Spalten-Offset, der in diesem Bild geändert werden soll +:param ydest: Der Zeilen-Offset, der in diesem Bild geändert werden soll + +Pixels outside the source image are treated as having a brightness of 0. + +``shift_left()``, ``shift_right()``, ``shift_up()``, ``shift_down()`` +and ``crop()`` can are all implemented by using ``blit()``. + +For example, img.crop(x, y, w, h) can be implemented as:: + + def crop(self, x, y, w, h): + res = Image(w, h) + res.blit(self, x, y, w, h) + return res""" + ... + + def __repr__(self) -> str: + """Liefert eine kompakte Stringrepräsentation des Bildes.""" + ... + + def __str__(self) -> str: + """Liefert eine lesbare String-Repräsentation des Bildes.""" + ... + + def __add__(self, other: Image) -> Image: + """Erstellt ein neues Bild, indem für jedes Pixel die Helligkeitswerte der beiden Bilder addiert werden. + +Example: ``Image.HEART + Image.HAPPY`` + +:param other: Das zu addierende Bild.""" + ... + + def __sub__(self, other: Image) -> Image: + """Erstellt ein neues Bild, indem für jedes Pixel die Helligkeitswerte der beiden Bilder subtrahiert werden. + +Example: ``Image.HEART - Image.HEART_SMALL`` + +:param other: Das zu subtrahierende Bild.""" + ... + + def __mul__(self, n: float) -> Image: + """Erstellt ein neues Bild, indem der Helligkeitswert jedes Pixels mit ``n`` multipliziert wird. + +Example: ``Image.HEART * 0.5`` + +:param n: Der Wert, mit dem multipliziert werden soll.""" + ... + + def __truediv__(self, n: float) -> Image: + """Erstellt ein neues Bild, indem der Helligkeitswert jedes Pixels durch ``n`` dividiert wird. + +Example: ``Image.HEART / 2`` + +:param n: Der Wert, durch den dividiert werden soll.""" + ... + +class SoundEvent: + LOUD: SoundEvent + """Stellt den Übergang von Klangereignissen von ``quiet`` auf ``loud`` dar; wie beim Klatschen oder Rufen.""" + QUIET: SoundEvent + """Stellt den Übergang von akustischen Ereignissen, wie Sprechen oder Hintergrundmusik, von ``loud`` zu ``quiet`` dar. (stumm)""" + +class Sound: + """Die eingebauten Klänge können mit ``audio.play(Sound.NAME)`` aufgerufen werden.""" + GIGGLE: Sound + """Kichern-Sound.""" + HAPPY: Sound + """Happy-Sound.""" + HELLO: Sound + """Begrüßung-Sound""" + MYSTERIOUS: Sound + """Geheimnisvoll-Sound""" + SAD: Sound + """Traurig-Sound.""" + SLIDE: Sound + """Gleitender Ton.""" + SOARING: Sound + """Aufsteigender Klang. (aufsteigend)""" + SPRING: Sound + """Springfeder Klang (Sppringfeder)""" + TWINKLE: Sound + """Funkeln Klang (Funkeln)""" + YAWN: Sound + """Gähnen Klang""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/accelerometer.pyi b/lang/de/typeshed/stdlib/microbit/accelerometer.pyi new file mode 100644 index 0000000..a63507d --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/accelerometer.pyi @@ -0,0 +1,103 @@ +"""Messen Sie die Beschleunigung des micro:bit und erkennen Sie Gesten. (Beschleunigungssensor)""" +from typing import Tuple + +def get_x() -> int: + """Erhalte die Beschleunigungsmessung in der ``x`` -Achse in Milli-g. (erhalte x) + +Example: ``accelerometer.get_x()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_y() -> int: + """Erhalte die Beschleunigungsmessung in der ``y`` -Achse in Milli-g. (erhalte y) + +Example: ``accelerometer.get_y()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_z() -> int: + """Erhalte die Beschleunigungsmessung in der ``z`` -Achse in Milli-g. (erhalte z) + +Example: ``accelerometer.get_z()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_values() -> Tuple[int, int, int]: + """Erhalten Sie die Beschleunigungsmessungen in allen Achsen auf einmal als Tupel. (Werte erhalten) + +Example: ``x, y, z = accelerometer.get_values()`` + +:return: a three-element tuple of integers ordered as X, Y, Z, each value a positive or negative integer depending on direction in the range +/- 2000mg""" + ... + +def get_strength() -> int: + """Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der X-, Y- und Z-Achsen. (erhalte Stärke) + +Example: ``accelerometer.get_strength()`` + +:return: The combined acceleration strength of all the axes, in milli-g.""" + ... + +def current_gesture() -> str: + """Erhalte den Namen der aktuellen Geste. (derzeitige Geste) + +Example: ``accelerometer.current_gesture()`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:return: The current gesture""" + ... + +def is_gesture(name: str) -> bool: + """Überprüft, ob die benannte Geste derzeit aktiv ist. (ist Geste) + +Example: ``accelerometer.is_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: Der Name der Geste. +:return: ``True`` if the gesture is active, ``False`` otherwise.""" + ... + +def was_gesture(name: str) -> bool: + """Überprüft, ob die benannte Geste seit dem letzten Aufruf aktiv war. (war Geste) + +Example: ``accelerometer.was_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: Der Name der Geste. +:return: ``True`` if the gesture was active since the last call, ``False`` otherwise.""" + +def get_gestures() -> Tuple[str, ...]: + """Gibt ein Tupel der vergangenen Gesten zurück. (erhalte Gesten) + +Example: ``accelerometer.get_gestures()`` + +Clears the gesture history before returning. + +Gestures are not updated in the background so there needs to be constant +calls to some accelerometer method to do the gesture detection. Usually +gestures can be detected using a loop with a small :func:`microbit.sleep` delay. + +:return: The history as a tuple, most recent last.""" + ... + +def set_range(value: int) -> None: + """Legen Sie den Bereich des Beschleunigungsmessers in g (Fallbeschleunigung) auf den nächstgelegenen Wert fest, welcher von der Hardware unterstützt wird. Diese sind ``2``, ``4``oder ``8`` g. (Bereich einstellen) + +Example: ``accelerometer.set_range(8)`` + +:param value: (wert) Neuer Bereich für den Beschleunigungssensor, eine Ganzzahl in ``g``.""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/audio.pyi b/lang/de/typeshed/stdlib/microbit/audio.pyi new file mode 100644 index 0000000..8faf67a --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/audio.pyi @@ -0,0 +1,124 @@ +"""Töne mit dem micro:bit abspielen (Importiere ``audio`` für V1-Kompatibilität). (Audio)""" +from ..microbit import MicroBitDigitalPin, Sound, pin0 +from typing import ClassVar, Iterable, Union + +def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: + """Wiedergeben eines eingebauten Sounds, Soundeffekts oder benutzerdefinierten Aufnahme . + +Example: ``audio.play(Sound.GIGGLE)`` + +:param source: (Quelle) Ein eingebauter ``Sound`` wie ``Sound.GIGGLE``, ein ``SoundEffect`` oder Beispieldaten als Teil eines ``AudioFrame`` Objekts. +:param wait: Wenn ``wait`` ``True`` ist, wird diese Funktion blockiert, bis der Klang abgeschlossen ist. +:param pin: Ein optionales Argument für den Ausgabepin kann angegeben werden, um die Standardeinstellung von ``pin0``zu überschreiben. Wenn kein Ton wiedergegeben werden soll, kann ``pin=None`` verwendet werden. +:param return_pin: (erhalte Pin) Bestimmt einen Pin, mit dem der externen Lautsprecher anstatt mit Ground verbunden wird. Dies wird bei der **V2** Revision ignoriert.""" + +def is_playing() -> bool: + """Überprüfen Sie, ob ein Ton abgespielt wird. (spielt gerade) + +Example: ``audio.is_playing()`` + +:return: ``True`` if audio is playing, otherwise ``False``.""" + ... + +def stop() -> None: + """Stoppe jede Audio-Wiedergabe. (Stop) + +Example: ``audio.stop()``""" + ... + +class SoundEffect: + """Ein Soundeffekt, zusammengestellt aus einer Reihe von Parametern, die über den Konstruktor oder durch Attribute konfiguriert werden.""" + WAVEFORM_SINE: ClassVar[int] + """Sinuswelle als Parameter für ``waveform``. (Sinuswelle)""" + WAVEFORM_SAWTOOTH: ClassVar[int] + """Sägezahnkurve als Parameter für ``waveform``. (Sägezahnkurve)""" + WAVEFORM_TRIANGLE: ClassVar[int] + """Dreiecksignal als Parameter für ``waveform``. (Dreiecksignal)""" + WAVEFORM_SQUARE: ClassVar[int] + """Rechtecksignal als Parameter für ``waveform``. (Rechtecksignal)""" + WAVEFORM_NOISE: ClassVar[int] + """Rauschsignal als Parameter für ``waveform``. (Rauschsignal)""" + SHAPE_LINEAR: ClassVar[int] + """Lineare Interpolation als Parameter für ``shape``. (lineare Interpolation)""" + SHAPE_CURVE: ClassVar[int] + """Kurven-Interpolation als Parameter für ``shape``. (geschwungene Kurve)""" + SHAPE_LOG: ClassVar[int] + """Logarithmische Interpolation als Parameter für ``shape``. (logarithmische Interpolation)""" + FX_NONE: ClassVar[int] + """Kein Effekt für ``fx`` verwendet. (kein fx)""" + FX_TREMOLO: ClassVar[int] + """Tremelo-Effekt als Parameter für ``fx``. (fx Tremolo)""" + FX_VIBRATO: ClassVar[int] + """Vibrato-Effekt als Parameter für ``fx``. (fx Vibrato)""" + FX_WARBLE: ClassVar[int] + """Triller-Effekt als Parameter für ``fx``. (fx Trillereffekt)""" + freq_start: int + """Startfrequenz in Hertz (Hz), eine Zahl zwischen ``0`` und ``9999`` (Startfrequenz)""" + freq_end: int + """Endfrequenz in Hertz (Hz), eine Zahl zwischen ``0`` und ``9999`` (Endfrequenz)""" + duration: int + """Dauer des Klangs in Millisekunden, eine Zahl zwischen ``0`` und ``9999`` (Dauer)""" + vol_start: int + """Startlautstärke, eine Zahl zwischen ``0`` und ``255`` (vol Start)""" + vol_end: int + """Endlautstärke, eine Nummer zwischen ``0`` und ``255`` (vol Ende)""" + waveform: int + """Typ der Sinuswelle, einer dieser Werte: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (zufällig generiertes Geräusch)""" + fx: int + """Effekt, der dem Sound hinzugefügt werden soll, in Frage kommende Werte: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, oder ``FX_NONE``""" + shape: int + """Die Art der Interpolationskurve zwischen der Anfangs- und der Endfrequenz. Verschiedene Wellenformen haben unterschiedliche Frequenzänderungsraten. In Frage kommende Werte: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``""" + + def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): + """Erstelle einen neuen Soundeffekt. + +Example: ``my_effect = SoundEffect(duration=1000)`` + +All the parameters are optional, with default values as shown above, and +they can all be modified via attributes of the same name. For example, we +can first create an effect ``my_effect = SoundEffect(duration=1000)``, +and then change its attributes ``my_effect.duration = 500``. + +:param freq_start: (Startfrequenz) Startfrequenz in Hertz (Hz), eine Zahl zwischen ``0`` und ``9999``. +:param freq_end: (Endfrequenz) Endfrequenz in Hertz (Hz), eine Zahl zwischen ``0`` und ``9999``. +:param duration: (Dauer) Dauer des Tons in Millisekunden, eine Zahl zwischen ``0`` und ``9999``. +:param vol_start: (vol Start) Startlautstärke, eine Zahl zwischen ``0`` und ``255``. +:param vol_end: (vol Ende) Endlautstärke, eine Nummer zwischen ``0`` und ``255``. +:param waveform: Typ der Sinuswelle, einer dieser Werte: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (zufällig generiertes Geräusch). +:param fx: Effekt, der dem Sound hinzugefügt werden soll, in Frage kommende Werte: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, oder ``FX_NONE``. +:param shape: Die Art der Interpolationskurve zwischen der Anfangs- und der Endfrequenz. Verschiedene Wellenformen haben unterschiedliche Frequenzänderungsraten. In Frage kommende Werte: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" + + def copy(self) -> SoundEffect: + """Erstelle eine Kopie dieses ``SoundEffect``. (kopieren) + +Example: ``sound_2 = sound_1.copy()`` + +:return: A copy of the SoundEffect.""" + +class AudioFrame: + """Ein ``AudioFrame``-Objekt ist eine Liste von 32 Samples, von denen jedes ein vorzeichenloses Byte ist +(ganze Zahl zwischen 0 und 255). + +It takes just over 4 ms to play a single frame. + +Example:: + + frame = AudioFrame() + for i in range(len(frame)): + frame[i] = 252 - i * 8""" + + def copyfrom(self, other: AudioFrame) -> None: + """Überschreibe die Daten in diesem ``AudioFrame`` mit den Daten einer anderen ``AudioFrame`` Instanz. + +Example: ``my_frame.copyfrom(source_frame)`` + +:param other: ``AudioFrame`` Instanz von der die Daten kopiert werden sollen.""" + + def __len__(self) -> int: + ... + + def __setitem__(self, key: int, value: int) -> None: + ... + + def __getitem__(self, key: int) -> int: + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/compass.pyi b/lang/de/typeshed/stdlib/microbit/compass.pyi new file mode 100644 index 0000000..77321dc --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/compass.pyi @@ -0,0 +1,70 @@ +"""Benutze den eingebauten Kompass. (Kompass)""" + +def calibrate() -> None: + """Startet den Kalibrierungsprozess. + +Example: ``compass.calibrate()`` + +An instructive message will be scrolled to the user after which they will need +to rotate the device in order to draw a circle on the LED display.""" + ... + +def is_calibrated() -> bool: + """Überprüfe, dass der Kompass kalibriert ist. (ist kalibriert) + +Example: ``compass.is_calibrated()`` + +:return: ``True`` if the compass has been successfully calibrated, ``False`` otherwise.""" + ... + +def clear_calibration() -> None: + """Setzt die Kalibrierung zurück, sodass der Kompass nicht mehr kalibriert ist. + +Example: ``compass.clear_calibration()``""" + ... + +def get_x() -> int: + """Ermittle die Magnetfeldstärke der ``x``-Achse. (erhalte x) + +Example: ``compass.get_x()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_y() -> int: + """Ermittle die Magnetfeldstärke der ``y``-Achse. (erhalte y) + +Example: ``compass.get_y()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_z() -> int: + """Ermittle die Magnetfeldstärke der ``z``-Achse. (erhalte z) + +Example: ``compass.get_z()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def heading() -> int: + """Ermittle die Kompassrichtung. (Ausrichtung) + +Example: ``compass.heading()`` + +:return: An integer in the range from 0 to 360, representing the angle in degrees, clockwise, with north as 0.""" + ... + +def get_field_strength() -> int: + """Ermittle die Größe des Magnetfelds um das Gerät herum. + +Example: ``compass.get_field_strength()`` + +:return: An integer indication of the magnitude of the magnetic field in nano tesla.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/display.pyi b/lang/de/typeshed/stdlib/microbit/display.pyi new file mode 100644 index 0000000..24a1d82 --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/display.pyi @@ -0,0 +1,92 @@ +"""Texte, Bilder und Animationen auf dem 5x5 LED-Display anzeigen. (Display)""" +from ..microbit import Image +from typing import Union, overload, Iterable + +def get_pixel(x: int, y: int) -> int: + """Ermittle die Helligkeit der LED auf Spalte ``x`` und Zeile ``y``. (Pixelwerte holen) + +Example: ``display.get_pixel(0, 0)`` + +:param x: Die Anzeige-Spalte (0..4) +:param y: Die Anzeigezeile (0..4) +:return: A number between 0 (off) and 9 (bright)""" + ... + +def set_pixel(x: int, y: int, value: int) -> None: + """Ändere die Helligkeit der LED auf Spalte ``x`` und Zeile ``y``. (Pixelwerte setzen) + +Example: ``display.set_pixel(0, 0, 9)`` + +:param x: Die Anzeige-Spalte (0..4) +:param y: Die Anzeigezeile (0..4) +:param value: (wert) Die Helligkeit zwischen 0 (aus) und 9 (am hellsten)""" + ... + +def clear() -> None: + """Setzt die Helligkeit aller LEDs auf 0 (aus). (löschen) + +Example: ``display.clear()``""" + ... + +def show(image: Union[str, float, int, Image, Iterable[Image]], delay: int=400, wait: bool=True, loop: bool=False, clear: bool=False) -> None: + """Zeigt Bilder, Buchstaben oder Ziffern auf der LED-Anzeige an. + +Example: ``display.show(Image.HEART)`` + +When ``image`` is an image or a list of images then each image is displayed in turn. +If ``image`` is a string or number, each letter or digit is displayed in turn. + +:param image: Eine Zeichenkette, Nummer, Bild oder Liste der anzuzeigenden Bilder. +:param delay: (Verzögerung) Jeder Buchstabe, Ziffer oder Bild wird mit ``delay`` Millisekunden zwischen ihnen angezeigt. +:param wait: Wenn ``wait`` ``True``ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden. +:param loop: Wenn ``loop`` ``True``ist, wird sich die Animation für immer wiederholen. +:param clear: (löschen) Wenn ``clear`` ``True``ist, wird die Anzeige ausgeschaltet, nachdem die Sequenz beendet ist. + +The ``wait``, ``loop`` and ``clear`` arguments must be specified using their keyword.""" + ... + +def scroll(text: Union[str, float, int], delay: int=150, wait: bool=True, loop: bool=False, monospace: bool=False) -> None: + """Scrollt eine Zahl oder einen Text auf dem LED-Display. (scrollen) + +Example: ``display.scroll('micro:bit')`` + +:param text: Der zu wiederzugebende String. Wenn ``text`` eine Ganzzahl oder ein Float ist, wird er zuerst mit ``str()`` in einen String konvertiert. +:param delay: (Verzögerung) Der ``delay`` -Parameter bestimmt, wie schnell der Text scrollt. +:param wait: Wenn ``wait`` ``True``ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden. +:param loop: Wenn ``loop`` ``True``ist, wird sich die Animation für immer wiederholen. +:param monospace: (Monospace) Wenn ``monospace`` ``True``ist, werden alle Zeichen 5 Pixel breit sein. Zwischen den Zeichen gibt es beim scrollen genau 1 leere Pixelspalte. + +The ``wait``, ``loop`` and ``monospace`` arguments must be specified +using their keyword.""" + ... + +def on() -> None: + """Schalten Sie das LED-Display ein. (an) + +Example: ``display.on()``""" + ... + +def off() -> None: + """Schalten Sie die LED-Anzeige aus (das Deaktivieren des Displays erlaubt es Ihnen, die GPIO-Pins für andere Zwecke zu verwenden). + +Example: ``display.off()``""" + ... + +def is_on() -> bool: + """Überprüfen Sie, ob die LED-Anzeige aktiviert ist. (ist an) + +Example: ``display.is_on()`` + +:return: ``True`` if the display is on, otherwise returns ``False``.""" + ... + +def read_light_level() -> int: + """Bestimmt die Lichtintensität. (bestimme Licht Intensität) + +Example: ``display.read_light_level()`` + +Uses the display's LEDs in reverse-bias mode to sense the amount of light +falling on the display. + +:return: An integer between 0 and 255 representing the light level, with larger meaning more light.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/i2c.pyi b/lang/de/typeshed/stdlib/microbit/i2c.pyi new file mode 100644 index 0000000..5258d5b --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/i2c.pyi @@ -0,0 +1,49 @@ +"""Kommunikation mit Geräten über das I2C-Busprotokoll.""" +from _typeshed import ReadableBuffer +from ..microbit import MicroBitDigitalPin, pin19, pin20 +from typing import List + +def init(freq: int=100000, sda: MicroBitDigitalPin=pin20, scl: MicroBitDigitalPin=pin19) -> None: + """Eine Peripherie neu initialisieren. + +Example: ``i2c.init()`` + +:param freq: Taktfrequenz +:param sda: ``sda`` Pin (standardmäßig 20) +:param scl: ``scl`` Pin (standardmäßig 19) + +On a micro:bit V1 board, changing the I²C pins from defaults will make +the accelerometer and compass stop working, as they are connected +internally to those pins. This warning does not apply to the **V2** +revision of the micro:bit as this has `separate I²C lines `_ +for the motion sensors and the edge connector.""" + ... + +def scan() -> List[int]: + """Scannt den Bus nach Geräten. + +Example: ``i2c.scan()`` + +:return: A list of 7-bit addresses corresponding to those devices that responded to the scan.""" + ... + +def read(addr: int, n: int, repeat: bool=False) -> bytes: + """Liest Bytes von einem Gerät.. + +Example: ``i2c.read(0x50, 64)`` + +:param addr: Die 7-Bit-Adresse des Geräts +:param n: Die Anzahl der zu lesenden Bytes +:param repeat: (wiederholen) Wenn ``True``wird kein Stop-Bit gesendet +:return: The bytes read""" + ... + +def write(addr: int, buf: ReadableBuffer, repeat: bool=False) -> None: + """Schreibe Bytes auf ein Gerät. (schreiben) + +Example: ``i2c.write(0x50, bytes([1, 2, 3]))`` + +:param addr: Die 7-Bit-Adresse des Geräts +:param buf: Ein Puffer mit den zu schreibenden Bytes +:param repeat: (wiederholen) Wenn ``True``wird kein Stop-Bit gesendet""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/microphone.pyi b/lang/de/typeshed/stdlib/microbit/microphone.pyi new file mode 100644 index 0000000..2b09e41 --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/microphone.pyi @@ -0,0 +1,62 @@ +"""Reagiere auf Ton mithilfe des integrierten Mikrofons (nur V2). (Mikrofon)""" +from typing import Optional, Tuple +from ..microbit import SoundEvent + +def current_event() -> Optional[SoundEvent]: + """Abrufen des letzten aufgezeichneten Sound-Ereignisses + +Example: ``microphone.current_event()`` + +:return: The event, ``SoundEvent('loud')`` or ``SoundEvent('quiet')``.""" + ... + +def was_event(event: SoundEvent) -> bool: + """Überprüfung, ob seit dem letzten Anruf mindestens einmal ein Geräusch gehört wurde. + +Example: ``microphone.was_event(SoundEvent.LOUD)`` + +This call clears the sound history before returning. + +:param event: Das Ereignis, auf das geprüft werden soll, z. B. ``SoundEvent.LOUD`` oder ``SoundEvent.QUIET`` +:return: ``True`` if sound was heard at least once since the last call, otherwise ``False``.""" + ... + +def is_event(event: SoundEvent) -> bool: + """Überprüfe das zuletzt erkannte Sound-Ereignis. + +Example: ``microphone.is_event(SoundEvent.LOUD)`` + +This call does not clear the sound event history. + +:param event: Das Ereignis, auf das geprüft werden soll, z. B. ``SoundEvent.LOUD`` oder ``SoundEvent.QUIET`` +:return: ``True`` if sound was the most recent heard, ``False`` otherwise.""" + ... + +def get_events() -> Tuple[SoundEvent, ...]: + """Liefert den Verlauf der Sound-Ereignisse in Form eines Tupels. + +Example: ``microphone.get_events()`` + +This call clears the sound history before returning. + +:return: A tuple of the event history with the most recent event last.""" + ... + +def set_threshold(event: SoundEvent, value: int) -> None: + """Legt den Schwellenwert für ein Sound-Ereignis fest. + +Example: ``microphone.set_threshold(SoundEvent.LOUD, 250)`` + +A high threshold means the event will only trigger if the sound is very loud (>= 250 in the example). + +:param event: Ein Sound-Ereignis, wie ``SoundEvent.LOUD`` oder ``SoundEvent.QUIET``. +:param value: (wert) Der Schwellenwert im Bereich 0-255.""" + ... + +def sound_level() -> int: + """Ermittle den Schalldruckpegel. (Lautstärke) + +Example: ``microphone.sound_level()`` + +:return: A representation of the sound pressure level in the range 0 to 255.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/speaker.pyi b/lang/de/typeshed/stdlib/microbit/speaker.pyi new file mode 100644 index 0000000..39adac2 --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/speaker.pyi @@ -0,0 +1,15 @@ +"""Steuere den integrierten Lautsprecher (nur V2). (Lautsprecher)""" + +def off() -> None: + """Lautsprecher ausschalten. + +Example: ``speaker.off()`` + +This does not disable sound output to an edge connector pin.""" + ... + +def on() -> None: + """Lautsprecher einschalten. (an) + +Example: ``speaker.on()``""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/spi.pyi b/lang/de/typeshed/stdlib/microbit/spi.pyi new file mode 100644 index 0000000..fb33f5e --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/spi.pyi @@ -0,0 +1,46 @@ +"""Kommunikation mit Geräten über die serielle Schnittstelle (SPI).""" +from _typeshed import ReadableBuffer, WriteableBuffer +from ..microbit import pin13, pin14, pin15, MicroBitDigitalPin + +def init(baudrate: int=1000000, bits: int=8, mode: int=0, sclk: MicroBitDigitalPin=pin13, mosi: MicroBitDigitalPin=pin15, miso: MicroBitDigitalPin=pin14) -> None: + """SPI-Kommunikation initialisieren. + +Example: ``spi.init()`` + +For correct communication, the parameters have to be the same on both communicating devices. + +:param baudrate: Die Übertragungsgeschwindigkeit. +:param bits: Die Breite in Bits jeder Übertragung. Derzeit wird nur ``bits=8`` unterstützt. Dies kann sich jedoch in Zukunft ändern. +:param mode: Legt die Kombination aus Taktpolarität und Phase fest - `siehe Online-Tabelle `_. +:param sclk: SCLK Pin (standardmäßig 13) +:param mosi: MOSI Pin (standardmäßig 15) +:param miso: miso pin (Voreinstellung 14)""" + ... + +def read(nbytes: int) -> bytes: + """Bytes lesen. + +Example: ``spi.read(64)`` + +:param nbytes: Maximum der zu lesenden Bytes. +:return: The bytes read.""" + ... + +def write(buffer: ReadableBuffer) -> None: + """Schreibe Bytes auf den Bus. (schreiben) + +Example: ``spi.write(bytes([1, 2, 3]))`` + +:param buffer: (Puffer) Ein Puffer, von dem Daten gelesen werden.""" + ... + +def write_readinto(out: WriteableBuffer, in_: ReadableBuffer) -> None: + """Schreibe den ``out`` Zwischenspeicher (Buffer) auf den Bus und lies jede Antwort in den ``in_`` Buffer. + +Example: ``spi.write_readinto(out_buffer, in_buffer)`` + +The length of the buffers should be the same. The buffers can be the same object. + +:param out: Der Puffer, in den eine Antwort geschrieben werden soll. +:param in_: Der Puffer, von dem Daten gelesen werden.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/uart.pyi b/lang/de/typeshed/stdlib/microbit/uart.pyi new file mode 100644 index 0000000..979692c --- /dev/null +++ b/lang/de/typeshed/stdlib/microbit/uart.pyi @@ -0,0 +1,79 @@ +"""Verbindet mit einem Gerät über eine serielle Schnittstelle.""" +from _typeshed import WriteableBuffer +from ..microbit import MicroBitDigitalPin +from typing import Optional, Union +ODD: int +"""Ungerade Parität""" +EVEN: int +"""Gerade Parität (gerade)""" + +def init(baudrate: int=9600, bits: int=8, parity: Optional[int]=None, stop: int=1, tx: Optional[MicroBitDigitalPin]=None, rx: Optional[MicroBitDigitalPin]=None) -> None: + """Initialisiere die serielle Kommunikation. + +Example: ``uart.init(115200, tx=pin0, rx=pin1)`` + +:param baudrate: (Baudrate) Die Übertragungsgeschwindigkeit. +:param bits: (Bits) Die Größe der Bytes die übertragen werden. micro:bit unterstützt nur 8. +:param parity: (Parität) Wie Parität geprüft wird, ``None``, ``uart.ODD`` oder ``uart.EVEN``. +:param stop: (Stop) Die Anzahl der Stopbits, muss 1 für micro:bit sein. +:param tx: Sendepin. +:param rx: Empfangspin. + +Initializing the UART on external pins will cause the Python console on +USB to become unaccessible, as it uses the same hardware. To bring the +console back you must reinitialize the UART without passing anything for +``tx`` or ``rx`` (or passing ``None`` to these arguments). This means +that calling ``uart.init(115200)`` is enough to restore the Python console. + +For more details see `the online documentation `_.""" + ... + +def any() -> bool: + """Überprüfen Sie, ob irgendwelche Daten warten. + +Example: ``uart.any()`` + +:return: ``True`` if any data is waiting, else ``False``.""" + ... + +def read(nbytes: Optional[int]=None) -> Optional[bytes]: + """Bytes lesen. + +Example: ``uart.read()`` + +:param nbytes: Wenn ``nbytes`` angegeben ist, werden höchstens so viele Bytes gelesen. Andernfalls werden so viele Bytes wie möglich gelesen. +:return: A bytes object or ``None`` on timeout""" + ... + +def readinto(buf: WriteableBuffer, nbytes: Optional[int]=None) -> Optional[int]: + """Lese Bytes in ``buf``. + +Example: ``uart.readinto(input_buffer)`` + +:param buf: Der Puffer, in den geschrieben werden soll. +:param nbytes: Wenn ``nbytes`` angegeben ist, werden höchstens so viele Bytes gelesen. Andernfalls werden ``len(buf)`` Bytes gelesen. +:return: number of bytes read and stored into ``buf`` or ``None`` on timeout.""" + ... + +def readline() -> Optional[bytes]: + """Liest eine Zeile bis zum Zeilenumbruch. + +Example: ``uart.readline()`` + +:return: The line read or ``None`` on timeout. The newline character is included in the returned bytes.""" + ... + +def write(buf: Union[bytes, str]) -> Optional[int]: + """Schreibt einen Puffer auf den Bus. (schreiben) + +Example: ``uart.write('hello world')`` + +:param buf: Ein Byte-Objekt oder ein String. +:return: The number of bytes written, or ``None`` on timeout. + +Examples:: + + uart.write('hello world') + uart.write(b'hello world') + uart.write(bytes([1, 2, 3]))""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/micropython.pyi b/lang/de/typeshed/stdlib/micropython.pyi new file mode 100644 index 0000000..78b3834 --- /dev/null +++ b/lang/de/typeshed/stdlib/micropython.pyi @@ -0,0 +1,131 @@ +"""MicroPython Grundlagen.""" +from typing import Any, TypeVar, overload +_T = TypeVar('_T') + +def const(expr: _T) -> _T: + """Wird verwendet, um zu deklarieren, dass der Ausdruck eine Konstante ist, damit der Compiler ihn optimieren kann. + +The use of this function should be as follows:: + + from micropython import const + CONST_X = const(123) + CONST_Y = const(2 * CONST_X + 1) + +Constants declared this way are still accessible as global variables from +outside the module they are declared in. On the other hand, if a constant +begins with an underscore then it is hidden, it is not available as a +global variable, and does not take up any memory during execution. + +:param expr: Ein konstant bleibender Ausdruck.""" + ... + +@overload +def opt_level() -> int: + """Ermittelt die aktuelle Optimierungsstufe für die Kompilierung von Skripten. + +Example: ``micropython.opt_level()`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +:return: An integer representing the current level.""" + ... + +@overload +def opt_level(level: int) -> None: + """Legt die Optimierungsstufe für die nachfolgende Kompilierung von Skripten fest. + +Example: ``micropython.opt_level(1)`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +The default optimisation level is usually level 0. + +:param level: Eine ganzzahlige Optimierungsstufe.""" + ... + +def mem_info(verbose: Any=None) -> None: + """Gibt Informationen über den aktuell verwendeten Speicher zurück. + +Example: ``micropython.mem_info()`` + +:param verbose: Wenn das Argument ``verbose`` angegeben wird, werden zusätzliche Informationen ausgegeben.""" + ... + +def qstr_info(verbose: Any=None) -> None: + """Gibt Informationen zu aktuell eingebetteten Strings zurück. + +Example: ``micropython.qstr_info()`` + +:param verbose: Wenn das Argument ``verbose`` angegeben wird, werden zusätzliche Informationen ausgegeben. + +The information that is printed is implementation dependent, but currently +includes the number of interned strings and the amount of RAM they use. In +verbose mode it prints out the names of all RAM-interned strings.""" + ... + +def stack_use() -> int: + """Gibt einen Integerwert zurück, der dem aktuell verwendeten Stack-Speicher entspricht. + +Example: ``micropython.stack_use()`` + +The absolute value of this is not particularly useful, rather it +should be used to compute differences in stack usage at different points. + +:return: An integer representing current stack use.""" + ... + +def heap_lock() -> None: + """Heap-Speicher sperren. + +Example: ``micropython.heap_lock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def heap_unlock() -> None: + """Heap-Speicher entsperren. + +Example: ``micropython.heap_unlock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def kbd_intr(chr: int) -> None: + """Zeichen festlegen, das eine ``KeyboardInterrupt``-Exception auslöst. + +Example: ``micropython.kbd_intr(-1)`` + +:param chr: Zeichencode, um den Interrupt auszulösen, oder -1, um die Erfassung von Ctrl-C zu deaktivieren. + +By default this is set to 3 during script execution, corresponding to Ctrl-C. +Passing -1 to this function will disable capture of Ctrl-C, and passing 3 +will restore it. + +This function can be used to prevent the capturing of Ctrl-C on the +incoming stream of characters that is usually used for the REPL, in case +that stream is used for other purposes.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/music.pyi b/lang/de/typeshed/stdlib/music.pyi new file mode 100644 index 0000000..7204b55 --- /dev/null +++ b/lang/de/typeshed/stdlib/music.pyi @@ -0,0 +1,128 @@ +"""Erstelle und spiele Lieder. (Musik)""" +from typing import Optional, Tuple, Union, List +from .microbit import MicroBitDigitalPin, pin0 +DADADADUM: Tuple[str, ...] +"""Melodie: der Anfang von Beethovens 5. Symphonie in c-Moll. (dadadadaam)""" +ENTERTAINER: Tuple[str, ...] +"""Melodie: die ersten Takte des Ragtime-Klassikers "The Entertainer" von Scott Joplin. (Entertainer)""" +PRELUDE: Tuple[str, ...] +"""Melodie: Beginn des ersten Präludiums in C-Dur der 48 Präludien und Fugen von J.S. Bach.""" +ODE: Tuple[str, ...] +"""Melodie: Die „Ode an die Freude“ von Beethovens neunter Symphonie in d-Moll. (Ode)""" +NYAN: Tuple[str, ...] +"""Melodie: Die Nyan-Katze (http://www.nyan.cat/) (Nyan) + +The composer is unknown. This is fair use for educational porpoises (as they say in New York).""" +RINGTONE: Tuple[str, ...] +"""Melodie: Etwas das wie ein Handy-Klingelton klingt. (Klingelton) + +To be used to indicate an incoming message. +""" +FUNK: Tuple[str, ...] +"""Melodie: eine funkige Basslinie für Geheimagenten und Superschurken. (Funk)""" +BLUES: Tuple[str, ...] +"""Melodie: ein 12-taktiger Boogie-Woogie-Blues mit Walking Bass. (Blues)""" +BIRTHDAY: Tuple[str, ...] +"""Melodie: „Alles Gute zum Geburtstag…“ (Geburtstag) + +For copyright status see: http://www.bbc.co.uk/news/world-us-canada-34332853 +""" +WEDDING: Tuple[str, ...] +"""Melodie: der Hochzeitschor aus Wagners Oper "Lohengrin". (Hochzeit)""" +FUNERAL: Tuple[str, ...] +"""Melodie: der "Trauermarsch", auch bekannt als Frédéric Chopins Klaviersonate Nr. 2 in b-Moll, op. 35. (Beerdigung)""" +PUNCHLINE: Tuple[str, ...] +"""Melodie: ein lustiges Fragment, das anzeigt, dass ein Scherz gemacht worden ist.""" +PYTHON: Tuple[str, ...] +"""Melodie: John Philip Sousas Marsch "Liberty Bell", auch bekannt als das Thema von "Monty Python's Flying Circus" (nach dem die Programmiersprache Python benannt ist).""" +BADDY: Tuple[str, ...] +"""Melodie: Auftritt eines Stummfilm-Bösewichts.""" +CHASE: Tuple[str, ...] +"""Melodie: Stummfilm-Verfolgungsszene.""" +BA_DING: Tuple[str, ...] +"""Melodie: ein kurzes Signal, um anzuzeigen, dass etwas passiert ist.""" +WAWAWAWAA: Tuple[str, ...] +"""Melody: Eine sehr traurige Posaune.""" +JUMP_UP: Tuple[str, ...] +"""Melodie: zur Verwendung in einem Spiel, um eine Aufwärtsbewegung zu untermalen.""" +JUMP_DOWN: Tuple[str, ...] +"""Melodie: zur Verwendung in einem Spiel, um eine Abwärtsbewegung zu untermalen.""" +POWER_UP: Tuple[str, ...] +"""Melodie: eine Fanfare, die einen Erfolg anzeigt oder dass etwas freigeschalten wurde.""" +POWER_DOWN: Tuple[str, ...] +"""Melodie: eine traurige Fanfare, wenn etwas nicht geklappt hat.""" + +def set_tempo(ticks: int=4, bpm: int=120) -> None: + """Legt das ungefähre Tempo für die Wiedergabe fest. + +Example: ``music.set_tempo(bpm=120)`` + +:param ticks: Die Anzahl der Ticks in einem Beat. +:param bpm: Ein Integerwert, der die Beats pro Minute angibt. + +Suggested default values allow the following useful behaviour: + +- music.set_tempo() – reset the tempo to default of ticks = 4, bpm = 120 +- music.set_tempo(ticks=8) – change the “definition” of a beat +- music.set_tempo(bpm=180) – just change the tempo + +To work out the length of a tick in milliseconds is very simple arithmetic: +60000/bpm/ticks_per_beat. For the default values that’s +60000/120/4 = 125 milliseconds or 1 beat = 500 milliseconds.""" + ... + +def get_tempo() -> Tuple[int, int]: + """Gibt das aktuelle Tempo als Tupel von Integerwerten zurück: ``(ticks, bpm)``. + +Example: ``ticks, beats = music.get_tempo()`` + +:return: The temp as a tuple with two integer values, the ticks then the beats per minute.""" + ... + +def play(music: Union[str, List[str], Tuple[str, ...]], pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True, loop: bool=False) -> None: + """Spielt Musik. + +Example: ``music.play(music.NYAN)`` + +:param music: (Musik) Musik, die in `einer speziellen Notation `_ angegeben ist +:param pin: der Ausgangspin zur Verwendung mit einem externen Lautsprecher (Voreinstellung ``pin0``), ``None`` für keinen Ton. +:param wait: Wenn ``wait`` auf ``True`` gesetzt ist, stoppt diese Funktion die weitere Codeausführung. +:param loop: Wenn ``loop`` auf ``True`` gesetzt ist, wird die Melodie wiederholt, bis ``stop`` aufgerufen oder der blockierende Aufruf unterbrochen wird. + +Many built-in melodies are defined in this module.""" + ... + +def pitch(frequency: int, duration: int=-1, pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True) -> None: + """Musiknoten spielen (Tonhöhe) + +Example: ``music.pitch(185, 1000)`` + +:param frequency: (Frequenz) Eine ganzzahlige Frequenz +:param duration: (Dauer) Eine Dauer in Millisekunden. Bei negativem Wert erhält man bis zum nächsten Aufruf oder einem Aufruf von ``stop`` einen Dauerton. +:param pin: Optionaler Ausgabepin (Standard ``pin0``). +:param wait: Wenn ``wait`` auf ``True`` gesetzt ist, stoppt diese Funktion die weitere Codeausführung. + +For example, if the frequency is set to 440 and the length to +1000 then we hear a standard concert A for one second. + +You can only play one pitch on one pin at any one time.""" + ... + +def stop(pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Stoppt die Musikwiedergabe über den eingebauten Lautsprecher sowie jeden Pin, der Sound ausgibt. + +Example: ``music.stop()`` + +:param pin: Ein optionales Argument kann zur Angabe eines Pins angegeben werden, z. B. ``music.stop(pin1)``.""" + +def reset() -> None: + """Setzt Ticks, bpm, Dauer und Oktave auf ihre Standardwerte zurück. (zurücksetzen) + +Example: ``music.reset()`` + +Values: +- ``ticks = 4`` +- ``bpm = 120`` +- ``duration = 4`` +- ``octave = 4``""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/neopixel.pyi b/lang/de/typeshed/stdlib/neopixel.pyi new file mode 100644 index 0000000..07c23c8 --- /dev/null +++ b/lang/de/typeshed/stdlib/neopixel.pyi @@ -0,0 +1,81 @@ +"""Individuell adressierbare RGB- und RGBW-LED-Streifen.""" +from .microbit import MicroBitDigitalPin +from typing import Tuple + +class NeoPixel: + + def __init__(self, pin: MicroBitDigitalPin, n: int, bpp: int=3) -> None: + """Initialisierung eines neuen Streifens von Neopixel-LEDs, die über einen Pin gesteuert werden. + +Example: ``np = neopixel.NeoPixel(pin0, 8)`` + +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. + +See `the online docs `_ for warnings and other advice. + +:param pin: Der Pin, der den Neopixelstreifen steuert. +:param n: Die Anzahl der Neopixel auf dem Streifen. +:param bpp: Bytes pro Pixel. Für die RGBW Neopixel-Unterstützung, müssen 4 statt der standardmäßigen 3 Bytes pro Pixel für RGB und GRB übergeben werden.""" + ... + + def clear(self) -> None: + """Lösche alle Pixel. (löschen) + +Example: ``np.clear()``""" + ... + + def show(self) -> None: + """Die Pixel anzeigen. + +Example: ``np.show()`` + +Must be called for any updates to become visible.""" + ... + + def write(self) -> None: + """Pixel anzeigen (nur micro:bit V2) (schreiben) + +Example: ``np.write()`` + +Must be called for any updates to become visible. + +Equivalent to ``show``.""" + ... + + def fill(self, colour: Tuple[int, ...]) -> None: + """Alle Pixel mit einem bestimmten RGB/RGBW-Wert färben. + +Example: ``np.fill((0, 0, 255))`` + +:param colour: (Farbe) Ein Tupel mit der gleichen Länge wie die Anzahl der Bytes pro Pixel (bpp). + +Use in conjunction with ``show()`` to update the neopixels.""" + ... + + def __setitem__(self, key: int, value: Tuple[int, ...]) -> None: + """Eine Pixelfarbe festlegen. + +Example: ``np[0] = (255, 0, 0)`` + +:param key: Die Pixelnummer. +:param value: (wert) Die Farbe.""" + + def __getitem__(self, key: int) -> Tuple[int, ...]: + """Eine Pixelfarbe erfassen. + +Example: ``r, g, b = np[0]`` + +:param key: Die Pixelnummer. +:return: The colour tuple.""" + + def __len__(self) -> int: + """Erhalte die Länge des Pixelstreifens. + +Example: ``len(np)``""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/os.pyi b/lang/de/typeshed/stdlib/os.pyi new file mode 100644 index 0000000..1fd4638 --- /dev/null +++ b/lang/de/typeshed/stdlib/os.pyi @@ -0,0 +1,63 @@ +"""Auf das Dateisystem zugreifen.""" +from typing import Tuple +from typing import List + +def listdir() -> List[str]: + """Dateien auflisten. + +Example: ``os.listdir()`` + +:return: A list of the names of all the files contained within the local +persistent on-device file system.""" + ... + +def remove(filename: str) -> None: + """Entferne (lösche) eine Datei. (Entfernen) + +Example: ``os.remove('data.txt')`` + +:param filename: (Dateiname) Die zu löschende Datei. + +If the file does not exist an ``OSError`` exception will occur.""" + ... + +def size(filename: str) -> int: + """Gibt die Größe einer Datei zurück + +Example: ``os.size('data.txt')`` + +:param filename: (Dateiname) Die Datei +:return: The size in bytes. + +If the file does not exist an ``OSError`` exception will occur.""" + +class uname_result(Tuple[str, str, str, str, str]): + """Ergebnis von ``os.uname()``""" + sysname: str + """Name des Betriebssystems.""" + nodename: str + """Name des Rechners im Netz (durch die Implementierung definiert). (Knotenname)""" + release: str + """Betriebssystemveröffentlichung. (Veröffentlichung)""" + version: str + """Betriebssystemversion. (Version)""" + machine: str + """Hardware-Kennung. (maschine)""" + +def uname() -> uname_result: + """Gibt Informationen zum aktuellen Betriebssystem zurück. + +Example: ``os.uname()`` + +The return value is an object with five attributes: + +- ``sysname`` - operating system name +- ``nodename`` - name of machine on network (implementation-defined) +- ``release`` - operating system release +- ``version`` - operating system version +- ``machine`` - hardware identifier + +There is no underlying operating system in MicroPython. As a result the +information returned by the ``uname`` function is mostly useful for +versioning details.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/power.pyi b/lang/de/typeshed/stdlib/power.pyi new file mode 100644 index 0000000..2be8b27 --- /dev/null +++ b/lang/de/typeshed/stdlib/power.pyi @@ -0,0 +1,53 @@ +"""Manage the power modes of the micro:bit (V2 only). +""" + +from microbit import MicroBitDigitalPin, Button +from typing import Optional, Tuple, Union + +def off() -> None: + """Power down the board to the lowest possible power mode. + + Example: ``power.off()`` + + This is the equivalent to pressing the reset button for a few seconds, + to set the board in "Off mode". + + The micro:bit will only wake up if the reset button is pressed or, + if on battery power, when a USB cable is connected. + + When the board wakes up it will start for a reset state, so your program + will start running from the beginning. + """ + ... + +def deep_sleep( + ms: Optional[int] = None, + wake_on: Optional[ + Union[MicroBitDigitalPin, Button] | Tuple[MicroBitDigitalPin | Button, ...] + ] = None, + run_every: bool = True, +) -> None: + """Set the micro:bit into a low power mode where it can wake up and continue operation. + + Example: ``power.deep_sleep(wake_on=(button_a, button_b))`` + + The program state is preserved and when it wakes up it will resume + operation where it left off. + + Deep Sleep mode will consume more battery power than Off mode. + + The wake up sources are configured via arguments. + + The board will always wake up when receiving UART data, when the reset + button is pressed (which resets the board) or, in battery power, + when the USB cable is inserted. + + When the ``run_every`` parameter is set to ``True`` (the default), any + function scheduled with ``run_every`` will momentarily wake up the board + to run and when it finishes it will go back to sleep. + + :param ms: A time in milliseconds to wait before it wakes up. + :param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``. + :param run_every: A boolean to configure if the functions scheduled with ``microbit.run_every`` will continue to run while it sleeps. + """ + ... diff --git a/lang/de/typeshed/stdlib/radio.pyi b/lang/de/typeshed/stdlib/radio.pyi new file mode 100644 index 0000000..66f13f2 --- /dev/null +++ b/lang/de/typeshed/stdlib/radio.pyi @@ -0,0 +1,126 @@ +"""Kommunikation zwischen micro:bits mit dem integrierten Funk.""" +from _typeshed import WriteableBuffer +from typing import Optional, Tuple +RATE_1MBIT: int +"""Konstante zur Angabe eines Durchsatzes von 1 MBit pro Sekunde.""" +RATE_2MBIT: int +"""Konstante zur Angabe eines Durchsatzes von 2 MBit pro Sekunde.""" + +def on() -> None: + """Schaltet den Funk ein. (an) + +Example: ``radio.on()`` + +This needs to be explicitly called since the radio draws power and takes +up memory that you may otherwise need.""" + ... + +def off() -> None: + """Schaltet den Funk aus, um Strom und Speicherplatz zu sparen. + +Example: ``radio.off()``""" + ... + +def config(length: int=32, queue: int=3, channel: int=7, power: int=6, address: int=1969383796, group: int=0, data_rate: int=RATE_1MBIT) -> None: + """Konfiguriert den Funk. + +Example: ``radio.config(group=42)`` + +The default configuration is suitable for most use. + +:param length: (default=32) legt die maximale Länge einer über Funk gesendeten Nachricht in Bytes fest. Sie kann bis zu 251 Bytes lang sein (254 - 3 Bytes für S0, LENGTH und S1-Präambel). +:param queue: (default=3) gibt die Anzahl der Nachrichten an, die in der Warteschlange für eingehende Nachrichten gespeichert werden können. Wenn in der Warteschlange kein Platz mehr für eingehende Nachrichten ist, wird die eingehende Nachricht verworfen. +:param channel: (default=7) ein Integer-Wert zwischen 0 und 83 (einschließlich), der einen beliebigen "Kanal" definiert, auf den der Funk eingestellt ist. +Nachrichten werden über diesen Kanal gesendet und nur Nachrichten, die über diesen Kanal empfangen werden, werden in die Warteschlange der eingehenden Nachricht aufgenommen. Jeder Schritt ist 1MHz breit, beginnend mit 2400MHz. +:param power: (default=6) ist ein ganzzahliger Wert von 0 bis 7 (einschließlich), der die Stärke des Signals angibt, das beim Senden einer Nachricht verwendet wird. Je höher der Wert, desto stärker ist das Signal, aber desto mehr Strom wird vom Gerät verbraucht. Die Nummerierung entspricht den Positionen in der folgenden Liste von dBm-Werten (Dezibel Milliwatt): -30, -20, -16, -12, -8, -4, 0, 4. +:param address: (adresse) (default=0x75626974) ein beliebiger Name, ausgedrückt als 32-Bit-Adresse, der verwendet wird, um eingehende Pakete auf der Hardware-Ebene zu filtern und nur diejenigen zu behalten, die mit der eingestellten Adresse übereinstimmen. +Die Standardeinstellung, die von anderen micro:bit-verwandten Plattformen verwendet wird, wird auch hier verwendet. +:param group: (default=0) ein 8-Bit-Wert (0-255), der zusammen mit ``address`` beim Filtern von Nachrichten verwendet wird. "address" ist wie eine Haus-/Büroadresse und "group" ist wie die Person an dieser Adresse, an die die Nachricht gesendet werden soll. +:param data_rate: (default=``radio.RATE_1MBIT``) zeigt die Geschwindigkeit an, mit der der Datendurchsatz stattfindet. +Kann eine der folgenden Konstanten sein, die im Modul ``radio`` definiert sind: ``RATE_250KBIT``, ``RATE_1MBIT`` oder ``RATE_2MBIT``. + +If ``config`` is not called then the defaults described above are assumed.""" + ... + +def reset() -> None: + """Setzt die Einstellungen auf ihre Standardwerte zurück. (zurücksetzen) + +Example: ``radio.reset()`` + +The defaults as as per the ``config`` function above.""" + ... + +def send_bytes(message: bytes) -> None: + """Sendet eine Nachricht bestehend aus Bytes. + +Example: ``radio.send_bytes(b'hello')`` + +:param message: Die zu sendenden Bytes.""" + ... + +def receive_bytes() -> Optional[bytes]: + """Empfängt die nächste eingehende Nachricht in der Nachrichtenwarteschlange. + +Example: ``radio.receive_bytes()`` + +:return: The message bytes if any, otherwise ``None``.""" + ... + +def receive_bytes_into(buffer: WriteableBuffer) -> Optional[int]: + """Kopiert die nächste eingehende Nachricht in der Nachrichtenwarteschlange in einen Puffer. + +Example: ``radio.receive_bytes_info(buffer)`` + +:param buffer: (Puffer) Der Zielpuffer. Die Nachricht wird abgeschnitten, wenn sie größer als der Puffer ist. +:return: ``None`` if there are no pending messages, otherwise it returns the length of the message (which might be more than the length of the buffer).""" + ... + +def send(message: str) -> None: + """Sendet eine Nachricht als String. + +Example: ``radio.send('hello')`` + +This is the equivalent of ``radio.send_bytes(bytes(message, 'utf8'))`` but with ``b'\x01\x00\x01'`` +prepended to the front (to make it compatible with other platforms that target the micro:bit). + +:param message: Der zu sendende String.""" + ... + +def receive() -> Optional[str]: + """Funktioniert genauso wie ``receive_bytes``, gibt aber zurück, was gesendet wurde. + +Example: ``radio.receive()`` + +Equivalent to ``str(receive_bytes(), 'utf8')`` but with a check that the the first +three bytes are ``b'\x01\x00\x01'`` (to make it compatible with other platforms that +may target the micro:bit). + +:return: The message with the prepended bytes stripped and converted to a string. + +A ``ValueError`` exception is raised if conversion to string fails.""" + ... + +def receive_full() -> Optional[Tuple[bytes, int, int]]: + """Gibt ein Tupel mit drei Werten zurück, die die nächste eingehende Nachricht in der Nachrichtenwarteschlange darstellen. + +Example: ``radio.receive_full()`` + +If there are no pending messages then ``None`` is returned. + +The three values in the tuple represent: + +- the next incoming message on the message queue as bytes. +- the RSSI (signal strength): a value between 0 (strongest) and -255 (weakest) as measured in dBm. +- a microsecond timestamp: the value returned by ``time.ticks_us()`` when the message was received. + +For example:: + + details = radio.receive_full() + if details: + msg, rssi, timestamp = details + +This function is useful for providing information needed for triangulation +and/or trilateration with other micro:bit devices. + +:return: ``None`` if there is no message, otherwise a tuple of length three with the bytes, strength and timestamp values.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/random.pyi b/lang/de/typeshed/stdlib/random.pyi new file mode 100644 index 0000000..10b688e --- /dev/null +++ b/lang/de/typeshed/stdlib/random.pyi @@ -0,0 +1,80 @@ +"""Gibt eine Zufallszahl zurück.""" +from typing import TypeVar, Sequence, Union, overload + +def getrandbits(n: int) -> int: + """Erzeugt einen Integerwert mit ``n`` zufälligen Bits. + +Example: ``random.getrandbits(1)`` + +:param n: Ein Wert zwischen 1-30 (einschließlich).""" + ... + +def seed(n: int) -> None: + """Initialisiert den Zufallszahlengenerator. + +Example: ``random.seed(0)`` + +:param n: Der Integer-Seed + +This will give you reproducibly deterministic randomness from a given starting +state (``n``).""" + ... + +def randint(a: int, b: int) -> int: + """Wählt eine zufällige Ganzzahl zwischen ``a`` und ``b`` (einschließlich) aus. + +Example: ``random.randint(0, 9)`` + +:param a: Anfangswert für den Bereich (inklusiv) +:param b: Endwert für den Bereich (inklusiv) + +Alias for ``randrange(a, b + 1)``.""" + ... + +@overload +def randrange(stop: int) -> int: + """Wählt eine zufällige Ganzzahl zwischen Null und ``stop`` (exklusiv) aus. + +Example: ``random.randrange(10)`` + +:param stop: Endwert für den Bereich (exklusiv)""" + ... + +@overload +def randrange(start: int, stop: int, step: int=1) -> int: + """Wählt ein zufälliges Element aus ``range(start, stop, step)``. + +Example: ``random.randrange(0, 10)`` + +:param start: Anfang des Bereichs (inklusiv) +:param stop: Das Ende des Bereichs (exklusiv) +:param step: Schrittweite""" + ... +_T = TypeVar('_T') + +def choice(seq: Sequence[_T]) -> _T: + """Wählt ein zufälliges Element aus der nicht leeren Sequenz ``seq``. + +Example: ``random.choice([Image.HAPPY, Image.SAD])`` + +:param seq: Eine Sequenz. + +If ``seq`` is empty, raises ``IndexError``.""" + ... + +def random() -> float: + """Erzeugt eine zufällige Fließkommazahl im Bereich [0.0, 1.0). + +Example: ``random.random()`` + +:return: The random floating point number""" + ... + +def uniform(a: float, b: float) -> float: + """Gibt eine zufällige Fließkommazahl zwischen ``a`` und ``b`` inklusiv aus. + +Example: ``random.uniform(0, 9)`` + +:param a: Anfangswert für den Bereich (inklusiv) +:param b: Endwert für den Bereich (inklusiv)""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/speech.pyi b/lang/de/typeshed/stdlib/speech.pyi new file mode 100644 index 0000000..237802a --- /dev/null +++ b/lang/de/typeshed/stdlib/speech.pyi @@ -0,0 +1,76 @@ +"""Bringe den micro:bit dazu zu Sprechen, zu Singen und andere sprachähnliche Geräusche zu machen.""" +from typing import Optional +from .microbit import MicroBitDigitalPin, pin0 + +def translate(words: str) -> str: + """Übersetze englische Wörter in Sprache. + +Example: ``speech.translate('hello world')`` + +:param words: (Wörter) Ein String englischer Wörter. +:return: A string containing a best guess at the appropriate phonemes to pronounce. +The output is generated from this `text to phoneme translation table `_. + +This function should be used to generate a first approximation of phonemes +that can be further hand-edited to improve accuracy, inflection and +emphasis. + +See `the online documentation `_ for detailed information.""" + ... + +def pronounce(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Laute aussprechen. + +Example: ``speech.pronounce(' /HEHLOW WERLD')`` + +:param phonemes: (Phoneme) Die auszusprechenden Phoneme als Zeichenkette +:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt +:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt +:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert +:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt +:param pin: Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von ``pin0`` zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir ``pin=None`` verwenden. nur micro:bit V2. + +Override the optional pitch, speed, mouth and throat settings to change the +timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... + +def say(words: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Sage englische Wörter (sage) + +Example: ``speech.say('hello world')`` + +:param words: (Wörter) Der zu sagene String +:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt +:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt +:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert +:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt +:param pin: Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von ``pin0`` zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir ``pin=None`` verwenden. nur micro:bit V2. + +The result is semi-accurate for English. Override the optional pitch, speed, +mouth and throat settings to change the timbre (quality) of the voice. + +This is a short-hand equivalent of: +``speech.pronounce(speech.translate(words))`` + +See `the online documentation `_ for detailed information.""" + ... + +def sing(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Singe Phoneme + +Example: ``speech.sing(' /HEHLOW WERLD')`` + +:param phonemes: (Phoneme) Der zu singende String +:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt +:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt +:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert +:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt +:param pin: Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von ``pin0`` zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir ``pin=None`` verwenden. nur micro:bit V2. + +Override the optional pitch, speed, mouth and throat settings to change +the timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/struct.pyi b/lang/de/typeshed/stdlib/struct.pyi new file mode 100644 index 0000000..143f24c --- /dev/null +++ b/lang/de/typeshed/stdlib/struct.pyi @@ -0,0 +1,56 @@ +"""Packe und entpacke primitive Datentypen. (struktur)""" +from _typeshed import ReadableBuffer, WriteableBuffer +from typing import Any, Tuple, Union + +def calcsize(fmt: str) -> int: + """Rufe die Anzahl der benötigten Bytes ab, um den angegebenen ``fmt`` zu speichern. + +Example: ``struct.calcsize('hf')`` + +:param fmt: Ein Format-String. +:return The number of bytes needed to store such a value.""" + ... + +def pack(fmt: str, v1: Any, *vn: Any) -> bytes: + """Werte nach einem Format-String packen. (packen) + +Example: ``struct.pack('hf', 1, 3.1415)`` + +:param fmt: Der Formatstring +:param v1: Der erste Wert. +:param *vn: Die verbleibenden Werte. +:return A bytes object encoding the values.""" + ... + +def pack_into(fmt: str, buffer: WriteableBuffer, offset: int, v1: Any, *vn: Any) -> None: + """Werte nach einem Format-String packen. (packen in) + +Example: ``struct.pack_info('hf', buffer, 1, 3.1415)`` + +:param fmt: Der Formatstring +:param buffer: (Puffer) Der Buffer, in den geschrieben werden soll. +:param offset: Der Offset in den Puffer. Kann negativ sein, um vom Ende des Puffers aus zu zählen. +:param v1: Der erste Wert. +:param *vn: Die verbleibenden Werte.""" + ... + +def unpack(fmt: str, data: ReadableBuffer) -> Tuple[Any, ...]: + """Daten nach einem Format-String entpacken. + +Example: ``v1, v2 = struct.unpack('hf', buffer)`` + +:param fmt: Der Formatstring +:param data: (Daten) Die Daten. +:return: A tuple of the unpacked values.""" + ... + +def unpack_from(fmt: str, buffer: ReadableBuffer, offset: int=0) -> Tuple: + """Daten aus einem Puffer nach einem Format-String entpacken. (entpacken von) + +Example: ``v1, v2 = struct.unpack_from('hf', buffer)`` + +:param fmt: Der Formatstring +:param buffer: (Puffer) Der Quellpuffer, von dem gelesen werden soll. +:param offset: Der Offset in den Puffer. Kann negativ sein, um vom Ende des Puffers aus zu zählen. +:return: A tuple of the unpacked values.""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/sys.pyi b/lang/de/typeshed/stdlib/sys.pyi new file mode 100644 index 0000000..c6fe0f5 --- /dev/null +++ b/lang/de/typeshed/stdlib/sys.pyi @@ -0,0 +1,93 @@ +"""Systemspezifische Funktionen""" +from typing import Any, Dict, List, NoReturn, TextIO, Tuple + +def exit(retval: object=...) -> NoReturn: + """Ein Programm mit dem gegebenen Exit-Code beenden. + +Example: ``sys.exit(1)`` + +This function raises a ``SystemExit`` exception. If an argument is given, its +value given as an argument to ``SystemExit``. + +:param retval: Der Exit-Code oder die Nachricht.""" + ... + +def print_exception(exc: Exception) -> None: + """Eine Ausnahme mit einem Traceback ausgeben. (Ausnahme ausgeben) + +Example: ``sys.print_exception(e)`` + +:param exc: Die auszugebende Ausnahme + +This is simplified version of a function which appears in the +``traceback`` module in CPython.""" +argv: List[str] +"""Eine veränderbare Liste von Argumenten, mit denen das aktuelle Programm gestartet wurde.""" +byteorder: str +"""Die Byte-Reihenfolge des Systems (``"little"`` oder ``"big"``).""" + +class _implementation: + name: str + version: Tuple[int, int, int] +implementation: _implementation +"""Objekt mit Informationen über die aktuelle Python-Implementierung. (Implementierung) + +For MicroPython, it has following attributes: + +- ``name`` - string "micropython" +- ``version`` - tuple (major, minor, micro), e.g. (1, 7, 0) + +This object is the recommended way to distinguish MicroPython from other +Python implementations (note that it still may not exist in the very +minimal ports). + +CPython mandates more attributes for this object, but the actual useful +bare minimum is implemented in MicroPython. +""" +maxsize: int +""" +Maximaler Wert, den ein nativer Integer-Typ auf der aktuellen Plattform halten kann, oder maximaler Wert, der durch den MicroPython-Integer-Typ darstellbar ist, wenn er kleiner ist als der maximale Plattformwert (das ist der Fall bei MicroPython-Ports ohne "long int"-Unterstützung). + +This attribute is useful for detecting "bitness" of a platform (32-bit vs +64-bit, etc.). It's recommended to not compare this attribute to some +value directly, but instead count number of bits in it:: + + bits = 0 + v = sys.maxsize + while v: + bits += 1 + v >>= 1 + if bits > 32: + # 64-bit (or more) platform + ... + else: + # 32-bit (or less) platform + # Note that on 32-bit platform, value of bits may be less than 32 + # (e.g. 31) due to peculiarities described above, so use "> 16", + # "> 32", "> 64" style of comparisons. +""" +modules: Dict[str, Any] +"""Wörterbuch der geladenen Module. (module) + +On some ports, it may not include builtin modules.""" +path: List[str] +"""Eine veränderbare Liste von Verzeichnissen zum Suchen nach importierten Modulen.""" +platform: str +"""Die Plattform, auf der MicroPython läuft. (plattform) + +For OS/RTOS ports, this is usually an identifier of the OS, e.g. ``"linux"``. +For baremetal ports it is an identifier of a board, e.g. ``"pyboard"`` for +the original MicroPython reference board. It thus can be used to +distinguish one board from another. + +If you need to check whether your program runs on MicroPython (vs other +Python implementation), use ``sys.implementation`` instead. +""" +version: str +"""Python-Sprachversion, der diese Implementierung als String entspricht. (Version)""" +version_info: Tuple[int, int, int] +"""Python-Sprachversion, der diese Implementierung als Tuple mit Ints entspricht. (Versionsinformationen) + +Only the first three version numbers (major, minor, micro) are supported and +they can be referenced only by index, not by name. +""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/this.pyi b/lang/de/typeshed/stdlib/this.pyi new file mode 100644 index 0000000..faf492b --- /dev/null +++ b/lang/de/typeshed/stdlib/this.pyi @@ -0,0 +1 @@ +def authors() -> str: ... diff --git a/lang/de/typeshed/stdlib/time.pyi b/lang/de/typeshed/stdlib/time.pyi new file mode 100644 index 0000000..b60805f --- /dev/null +++ b/lang/de/typeshed/stdlib/time.pyi @@ -0,0 +1,111 @@ +"""Messe Zeit und füge Verzögerung zu Programmen hinzu. (Zeit)""" +from typing import Union + +def sleep(seconds: Union[int, float]) -> None: + """Warte eine bestimmte Zahl in Sekunden. + +Example: ``time.sleep(1)`` + +:param seconds: (sekunden) Die Anzahl der Sekunden für die der Ruhezustand angezeigt wird. +Benutze eine Gleitkommazahl für eine Bruchzahl von Sekunden.""" + ... + +def sleep_ms(ms: int) -> None: + """Verzögerung für die angegebene Anzahl von Millisekunden. (schlafe ms) + +Example: ``time.sleep_ms(1_000_000)`` + +:param ms: Die Anzahl der zu wartenden Millisekunden (>= 0).""" + ... + +def sleep_us(us: int) -> None: + """Verzögerung für die angegebene Anzahl von Mikrosekunden. + +Example: ``time.sleep_us(1000)`` + +:param us: Die Anzahl der zu wartenden Mikrosekunden (>= 0).""" + ... + +def ticks_ms() -> int: + """Holt einen ansteigenden Millisekunden-Zähler mit einem beliebigen Referenzpunkt, der nach einem bestimmten Wert weiterläuft. + +Example: ``time.ticks_ms()`` + +:return: The counter value in milliseconds.""" + ... + +def ticks_us() -> int: + """Holt einen ansteigenden Mikrosekunden-Zähler mit einem beliebigen Referenzpunkt, der nach einem bestimmten Wert weiterläuft. + +Example: ``time.ticks_us()`` + +:return: The counter value in microseconds.""" + ... + +def ticks_add(ticks: int, delta: int) -> int: + """Versetzt den Tick-Wert um eine bestimmte Zahl, die entweder positiv oder negativ sein kann. + +Example: ``time.ticks_add(time.ticks_ms(), 200)`` + +Given a ticks value, this function allows to calculate ticks +value delta ticks before or after it, following modular-arithmetic +definition of tick values. + +:param ticks: Ein Tick-Wert +:param delta: Ein ganzzahliger Offset + +Example:: + + # Find out what ticks value there was 100ms ago + print(ticks_add(time.ticks_ms(), -100)) + + # Calculate deadline for operation and test for it + deadline = ticks_add(time.ticks_ms(), 200) + while ticks_diff(deadline, time.ticks_ms()) > 0: + do_a_little_of_something() + + # Find out TICKS_MAX used by this port + print(ticks_add(0, -1))""" + ... + +def ticks_diff(ticks1: int, ticks2: int) -> int: + """Messung der Ticks-Differenz zwischen den Werten, die von ``time.ticks_ms()`` oder ``ticks_us()`` zurückgegeben werden, als vorzeichenbehafteter Wert der umgeschlagen werden kann. + +Example: ``time.ticks_diff(scheduled_time, now)`` + +:param ticks1: Der zu subtrahierende Wert von +:param ticks2: Der zu subtrahierende Wert + +The argument order is the same as for subtraction operator, +``ticks_diff(ticks1, ticks2)`` has the same meaning as ``ticks1 - ticks2``. + +``ticks_diff()`` is designed to accommodate various usage +patterns, among them: + +Polling with timeout. In this case, the order of events is known, and you +will deal only with positive results of :func:`time.ticks_diff()`:: + + # Wait for GPIO pin to be asserted, but at most 500us + start = time.ticks_us() + while pin.value() == 0: + if time.ticks_diff(time.ticks_us(), start) > 500: + raise TimeoutError + + +Scheduling events. In this case, :func:`time.ticks_diff()` result may be +negative if an event is overdue:: + + # This code snippet is not optimized + now = time.ticks_ms() + scheduled_time = task.scheduled_time() + if ticks_diff(scheduled_time, now) > 0: + print("Too early, let's nap") + sleep_ms(ticks_diff(scheduled_time, now)) + task.run() + elif ticks_diff(scheduled_time, now) == 0: + print("Right at time!") + task.run() + elif ticks_diff(scheduled_time, now) < 0: + print("Oops, running late, tell task to run faster!") + task.run(run_faster=True)""" + ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/types.pyi b/lang/de/typeshed/stdlib/types.pyi new file mode 100644 index 0000000..752b2de --- /dev/null +++ b/lang/de/typeshed/stdlib/types.pyi @@ -0,0 +1,413 @@ +import sys +from typing import ( + Any, + AsyncGenerator, + Awaitable, + Callable, + Generator, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + Tuple, + Type, + TypeVar, + ValuesView, + overload, +) +from typing_extensions import Literal, final + +# Note, all classes "defined" here require special handling. + +_T = TypeVar("_T") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT_co = TypeVar("_VT_co", covariant=True) +_V_co = TypeVar("_V_co", covariant=True) + +@final +class _Cell: + __hash__: None # type: ignore + cell_contents: Any + +@final +class FunctionType: + __closure__: Tuple[_Cell, ...] | None + __code__: CodeType + __defaults__: Tuple[Any, ...] | None + __dict__: dict[str, Any] + __globals__: dict[str, Any] + __name__: str + __qualname__: str + __annotations__: dict[str, Any] + __kwdefaults__: dict[str, Any] + def __init__( + self, + code: CodeType, + globals: dict[str, Any], + name: str | None = ..., + argdefs: Tuple[object, ...] | None = ..., + closure: Tuple[_Cell, ...] | None = ..., + ) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: object | None, type: type | None) -> MethodType: ... + +LambdaType = FunctionType + +@final +class CodeType: + """Create a code object. Not for the faint of heart.""" + + co_argcount: int + if sys.version_info >= (3, 8): + co_posonlyargcount: int + co_kwonlyargcount: int + co_nlocals: int + co_stacksize: int + co_flags: int + co_code: bytes + co_consts: Tuple[Any, ...] + co_names: Tuple[str, ...] + co_varnames: Tuple[str, ...] + co_filename: str + co_name: str + co_firstlineno: int + co_lnotab: bytes + co_freevars: Tuple[str, ...] + co_cellvars: Tuple[str, ...] + if sys.version_info >= (3, 8): + def __init__( + self, + argcount: int, + posonlyargcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + else: + def __init__( + self, + argcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + if sys.version_info >= (3, 8): + def replace( + self, + *, + co_argcount: int = ..., + co_posonlyargcount: int = ..., + co_kwonlyargcount: int = ..., + co_nlocals: int = ..., + co_stacksize: int = ..., + co_flags: int = ..., + co_firstlineno: int = ..., + co_code: bytes = ..., + co_consts: Tuple[Any, ...] = ..., + co_names: Tuple[str, ...] = ..., + co_varnames: Tuple[str, ...] = ..., + co_freevars: Tuple[str, ...] = ..., + co_cellvars: Tuple[str, ...] = ..., + co_filename: str = ..., + co_name: str = ..., + co_lnotab: bytes = ..., + ) -> CodeType: ... + +@final +class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]): + __hash__: None # type: ignore + def __init__(self, mapping: Mapping[_KT, _VT_co]) -> None: ... + def __getitem__(self, k: _KT) -> _VT_co: ... + def __iter__(self) -> Iterator[_KT]: ... + def __len__(self) -> int: ... + def copy(self) -> dict[_KT, _VT_co]: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def items(self) -> ItemsView[_KT, _VT_co]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __reversed__(self) -> Iterator[_KT]: ... + def __or__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + def __ror__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + +class SimpleNamespace: + __hash__: None # type: ignore + def __init__(self, **kwargs: Any) -> None: ... + def __getattribute__(self, name: str) -> Any: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __delattr__(self, name: str) -> None: ... + +class ModuleType: + __name__: str + __file__: str + __dict__: dict[str, Any] + __package__: str | None + def __init__(self, name: str, doc: str | None = ...) -> None: ... + +@final +class GeneratorType(Generator[_T_co, _T_contra, _V_co]): + gi_code: CodeType + gi_frame: FrameType + gi_running: bool + gi_yieldfrom: GeneratorType[_T_co, _T_contra, Any] | None + def __iter__(self) -> GeneratorType[_T_co, _T_contra, _V_co]: ... + def __next__(self) -> _T_co: ... + def close(self) -> None: ... + def send(self, __arg: _T_contra) -> _T_co: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> _T_co: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> _T_co: ... + +@final +class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]): + ag_await: Awaitable[Any] | None + ag_frame: FrameType + ag_running: bool + ag_code: CodeType + def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ... + def __anext__(self) -> Awaitable[_T_co]: ... + def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Awaitable[_T_co]: ... + def aclose(self) -> Awaitable[None]: ... + +@final +class CoroutineType: + cr_await: Any | None + cr_code: CodeType + cr_frame: FrameType + cr_running: bool + def close(self) -> None: ... + def send(self, __arg: Any) -> Any: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Any: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Any: ... + +class _StaticFunctionType: + """Fictional type to correct the type of MethodType.__func__. + + FunctionType is a descriptor, so mypy follows the descriptor protocol and + converts MethodType.__func__ back to MethodType (the return type of + FunctionType.__get__). But this is actually a special case; MethodType is + implemented in C and its attribute access doesn't go through + __getattribute__. + + By wrapping FunctionType in _StaticFunctionType, we get the right result; + similar to wrapping a function in staticmethod() at runtime to prevent it + being bound as a method. + """ + + def __get__(self, obj: object | None, type: type | None) -> FunctionType: ... + +@final +class MethodType: + __closure__: Tuple[_Cell, ...] | None # inherited from the added function + __defaults__: Tuple[Any, ...] | None # inherited from the added function + __func__: _StaticFunctionType + __self__: object + __name__: str # inherited from the added function + __qualname__: str # inherited from the added function + def __init__(self, func: Callable[..., Any], obj: object) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +@final +class BuiltinFunctionType: + __self__: object | ModuleType + __name__: str + __qualname__: str + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +BuiltinMethodType = BuiltinFunctionType + +if sys.version_info >= (3, 7): + @final + class WrapperDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class MethodWrapperType: + __self__: object + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __eq__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + @final + class MethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class ClassMethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + +@final +class TracebackType: + if sys.version_info >= (3, 7): + def __init__( + self, + tb_next: TracebackType | None, + tb_frame: FrameType, + tb_lasti: int, + tb_lineno: int, + ) -> None: ... + tb_next: TracebackType | None + else: + @property + def tb_next(self) -> TracebackType | None: ... + # the rest are read-only even in 3.7 + @property + def tb_frame(self) -> FrameType: ... + @property + def tb_lasti(self) -> int: ... + @property + def tb_lineno(self) -> int: ... + +@final +class FrameType: + f_back: FrameType | None + f_builtins: dict[str, Any] + f_code: CodeType + f_globals: dict[str, Any] + f_lasti: int + f_lineno: int + f_locals: dict[str, Any] + f_trace: Callable[[FrameType, str, Any], Any] | None + if sys.version_info >= (3, 7): + f_trace_lines: bool + f_trace_opcodes: bool + def clear(self) -> None: ... + +@final +class GetSetDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +@final +class MemberDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +if sys.version_info >= (3, 7): + def new_class( + name: str, + bases: Iterable[object] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + def resolve_bases(bases: Iterable[object]) -> Tuple[Any, ...]: ... + +else: + def new_class( + name: str, + bases: Tuple[type, ...] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + +def prepare_class( + name: str, bases: Tuple[type, ...] = ..., kwds: dict[str, Any] | None = ... +) -> Tuple[type, dict[str, Any], dict[str, Any]]: ... + +# Actually a different type, but `property` is special and we want that too. +DynamicClassAttribute = property + +def coroutine(func: Callable[..., Any]) -> CoroutineType: ... + +if sys.version_info >= (3, 8): + CellType = _Cell + +if sys.version_info >= (3, 9): + class GenericAlias: + __origin__: type + __args__: Tuple[Any, ...] + __parameters__: Tuple[Any, ...] + def __init__(self, origin: type, args: Any) -> None: ... + def __getattr__(self, name: str) -> Any: ... # incomplete + +if sys.version_info >= (3, 10): + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... + EllipsisType = ellipsis # noqa F811 from builtins + from builtins import _NotImplementedType + + NotImplementedType = _NotImplementedType # noqa F811 from builtins + @final + class UnionType: + __args__: Tuple[Any, ...] + def __or__(self, obj: Any) -> UnionType: ... + def __ror__(self, obj: Any) -> UnionType: ... diff --git a/lang/de/typeshed/stdlib/typing.pyi b/lang/de/typeshed/stdlib/typing.pyi new file mode 100644 index 0000000..a494557 --- /dev/null +++ b/lang/de/typeshed/stdlib/typing.pyi @@ -0,0 +1,716 @@ +import collections # Needed by aliases like DefaultDict, see mypy issue 2986 +import sys +from abc import ABCMeta, abstractmethod +from types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType +from typing_extensions import Literal as _Literal + +if sys.version_info >= (3, 7): + from types import MethodDescriptorType, MethodWrapperType, WrapperDescriptorType + +if sys.version_info >= (3, 9): + from types import GenericAlias + +# Definitions of special type checking related constructs. Their definitions +# are not used, so their value does not matter. + +Any = object() + +class TypeVar: + __name__: str + __bound__: Optional[Type[Any]] + __constraints__: Tuple[Type[Any], ...] + __covariant__: bool + __contravariant__: bool + def __init__( + self, + name: str, + *constraints: Type[Any], + bound: Union[None, Type[Any], str] = ..., + covariant: bool = ..., + contravariant: bool = ..., + ) -> None: ... + +_promote = object() + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> object: ... + +_F = TypeVar("_F", bound=Callable[..., Any]) + +def overload(func: _F) -> _F: ... + +Union: _SpecialForm = ... +Optional: _SpecialForm = ... +Tuple: _SpecialForm = ... +Generic: _SpecialForm = ... +# Protocol is only present in 3.8 and later, but mypy needs it unconditionally +Protocol: _SpecialForm = ... +Callable: _SpecialForm = ... +Type: _SpecialForm = ... +ClassVar: _SpecialForm = ... +if sys.version_info >= (3, 8): + Final: _SpecialForm = ... + def final(f: _F) -> _F: ... + Literal: _SpecialForm = ... + # TypedDict is a (non-subscriptable) special form. + TypedDict: object + +if sys.version_info < (3, 7): + class GenericMeta(type): ... + +if sys.version_info >= (3, 10): + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Optional[Type[Any]] + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: Union[None, Type[Any], str] = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... + +# Return type that indicates a function does not return. +# This type is equivalent to the None type, but the no-op Union is necessary to +# distinguish the None type from the None value. +NoReturn = Union[None] + +# These type variables are used by the container types. +_T = TypeVar("_T") +_S = TypeVar("_S") +_KT = TypeVar("_KT") # Key type. +_VT = TypeVar("_VT") # Value type. +_T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers. +_V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers. +_KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers. +_VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers. +_T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant. +_TC = TypeVar("_TC", bound=Type[object]) + +def no_type_check(arg: _F) -> _F: ... +def no_type_check_decorator(decorator: _F) -> _F: ... + +# Type aliases and type constructors + +class _Alias: + # Class for defining generic aliases for library types. + def __getitem__(self, typeargs: Any) -> Any: ... + +List = _Alias() +Dict = _Alias() +DefaultDict = _Alias() +Set = _Alias() +FrozenSet = _Alias() +Counter = _Alias() +Deque = _Alias() +ChainMap = _Alias() + +if sys.version_info >= (3, 7): + OrderedDict = _Alias() + +if sys.version_info >= (3, 9): + Annotated: _SpecialForm = ... + +# Predefined type variables. +AnyStr = TypeVar("AnyStr", str, bytes) + +# Abstract base classes. + +def runtime_checkable(cls: _TC) -> _TC: ... +@runtime_checkable +class SupportsInt(Protocol, metaclass=ABCMeta): + @abstractmethod + def __int__(self) -> int: ... + +@runtime_checkable +class SupportsFloat(Protocol, metaclass=ABCMeta): + @abstractmethod + def __float__(self) -> float: ... + +@runtime_checkable +class SupportsComplex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __complex__(self) -> complex: ... + +@runtime_checkable +class SupportsBytes(Protocol, metaclass=ABCMeta): + @abstractmethod + def __bytes__(self) -> bytes: ... + +if sys.version_info >= (3, 8): + @runtime_checkable + class SupportsIndex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __index__(self) -> int: ... + +@runtime_checkable +class SupportsAbs(Protocol[_T_co]): + @abstractmethod + def __abs__(self) -> _T_co: ... + +@runtime_checkable +class SupportsRound(Protocol[_T_co]): + @overload + @abstractmethod + def __round__(self) -> int: ... + @overload + @abstractmethod + def __round__(self, ndigits: int) -> _T_co: ... + +@runtime_checkable +class Sized(Protocol, metaclass=ABCMeta): + @abstractmethod + def __len__(self) -> int: ... + +@runtime_checkable +class Hashable(Protocol, metaclass=ABCMeta): + # TODO: This is special, in that a subclass of a hashable class may not be hashable + # (for example, list vs. object). It's not obvious how to represent this. This class + # is currently mostly useless for static checking. + @abstractmethod + def __hash__(self) -> int: ... + +@runtime_checkable +class Iterable(Protocol[_T_co]): + @abstractmethod + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Iterator(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __next__(self) -> _T_co: ... + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Reversible(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __reversed__(self) -> Iterator[_T_co]: ... + +class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]): + def __next__(self) -> _T_co: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + def close(self) -> None: ... + def __iter__(self) -> Generator[_T_co, _T_contra, _V_co]: ... + @property + def gi_code(self) -> CodeType: ... + @property + def gi_frame(self) -> FrameType: ... + @property + def gi_running(self) -> bool: ... + @property + def gi_yieldfrom(self) -> Optional[Generator[Any, Any, Any]]: ... + +@runtime_checkable +class Awaitable(Protocol[_T_co]): + @abstractmethod + def __await__(self) -> Generator[Any, None, _T_co]: ... + +class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]): + __name__: str + __qualname__: str + @property + def cr_await(self) -> Optional[Any]: ... + @property + def cr_code(self) -> CodeType: ... + @property + def cr_frame(self) -> FrameType: ... + @property + def cr_running(self) -> bool: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + @abstractmethod + def close(self) -> None: ... + +# NOTE: This type does not exist in typing.py or PEP 484. +# The parameters correspond to Generator, but the 4th is the original type. +class AwaitableGenerator( + Awaitable[_V_co], Generator[_T_co, _T_contra, _V_co], Generic[_T_co, _T_contra, _V_co, _S], metaclass=ABCMeta +): ... + +@runtime_checkable +class AsyncIterable(Protocol[_T_co]): + @abstractmethod + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +@runtime_checkable +class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +class AsyncGenerator(AsyncIterator[_T_co], Generic[_T_co, _T_contra]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + @abstractmethod + def asend(self, __value: _T_contra) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ... + @abstractmethod + def aclose(self) -> Awaitable[None]: ... + @abstractmethod + def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ... + @property + def ag_await(self) -> Any: ... + @property + def ag_code(self) -> CodeType: ... + @property + def ag_frame(self) -> FrameType: ... + @property + def ag_running(self) -> bool: ... + +@runtime_checkable +class Container(Protocol[_T_co]): + @abstractmethod + def __contains__(self, __x: object) -> bool: ... + +@runtime_checkable +class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]): + # Implement Sized (but don't have it as a base class). + @abstractmethod + def __len__(self) -> int: ... + +_Collection = Collection[_T_co] + +class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]): + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T_co: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> Sequence[_T_co]: ... + # Mixin methods + def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ... + def count(self, value: Any) -> int: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __reversed__(self) -> Iterator[_T_co]: ... + +class MutableSequence(Sequence[_T], Generic[_T]): + @abstractmethod + def insert(self, index: int, value: _T) -> None: ... + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> MutableSequence[_T]: ... + @overload + @abstractmethod + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + @abstractmethod + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: int) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: slice) -> None: ... + # Mixin methods + def append(self, value: _T) -> None: ... + def clear(self) -> None: ... + def extend(self, values: Iterable[_T]) -> None: ... + def reverse(self) -> None: ... + def pop(self, index: int = ...) -> _T: ... + def remove(self, value: _T) -> None: ... + def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ... + +class AbstractSet(_Collection[_T_co], Generic[_T_co]): + @abstractmethod + def __contains__(self, x: object) -> bool: ... + # Mixin methods + def __le__(self, s: AbstractSet[Any]) -> bool: ... + def __lt__(self, s: AbstractSet[Any]) -> bool: ... + def __gt__(self, s: AbstractSet[Any]) -> bool: ... + def __ge__(self, s: AbstractSet[Any]) -> bool: ... + def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def isdisjoint(self, other: Iterable[Any]) -> bool: ... + +class MutableSet(AbstractSet[_T], Generic[_T]): + @abstractmethod + def add(self, value: _T) -> None: ... + @abstractmethod + def discard(self, value: _T) -> None: ... + # Mixin methods + def clear(self) -> None: ... + def pop(self) -> _T: ... + def remove(self, value: _T) -> None: ... + def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + +class MappingView(Sized): + def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocumented + def __len__(self) -> int: ... + +class ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]): + def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + +class KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]): + def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_KT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT_co]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + +class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]): + def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_VT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_VT_co]: ... + +@runtime_checkable +class ContextManager(Protocol[_T_co]): + def __enter__(self) -> _T_co: ... + def __exit__( + self, + __exc_type: Optional[Type[BaseException]], + __exc_value: Optional[BaseException], + __traceback: Optional[TracebackType], + ) -> Optional[bool]: ... + +@runtime_checkable +class AsyncContextManager(Protocol[_T_co]): + def __aenter__(self) -> Awaitable[_T_co]: ... + def __aexit__( + self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Awaitable[Optional[bool]]: ... + +class Mapping(_Collection[_KT], Generic[_KT, _VT_co]): + # TODO: We wish the key type could also be covariant, but that doesn't work, + # see discussion in https: //github.com/python/typing/pull/273. + @abstractmethod + def __getitem__(self, k: _KT) -> _VT_co: ... + # Mixin methods + @overload + def get(self, key: _KT) -> Optional[_VT_co]: ... + @overload + def get(self, key: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ... + def items(self) -> AbstractSet[Tuple[_KT, _VT_co]]: ... + def keys(self) -> AbstractSet[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def __contains__(self, o: object) -> bool: ... + +class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]): + @abstractmethod + def __setitem__(self, k: _KT, v: _VT) -> None: ... + @abstractmethod + def __delitem__(self, v: _KT) -> None: ... + def clear(self) -> None: ... + @overload + def pop(self, key: _KT) -> _VT: ... + @overload + def pop(self, key: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ... + # 'update' used to take a Union, but using overloading is better. + # The second overloaded type here is a bit too general, because + # Mapping[Tuple[_KT, _VT], W] is a subclass of Iterable[Tuple[_KT, _VT]], + # but will always have the behavior of the first overloaded type + # at runtime, leading to keys of a mix of types _KT and Tuple[_KT, _VT]. + # We don't currently have any way of forcing all Mappings to use + # the first overload, but by using overloading rather than a Union, + # mypy will commit to using the first overload when the argument is + # known to be a Mapping with unknown type parameters, which is closer + # to the behavior we want. See mypy issue #1430. + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + +Text = str + +TYPE_CHECKING = True + +class IO(Iterator[AnyStr], Generic[AnyStr]): + # TODO use abstract properties + @property + def mode(self) -> str: ... + @property + def name(self) -> str: ... + @abstractmethod + def close(self) -> None: ... + @property + def closed(self) -> bool: ... + @abstractmethod + def fileno(self) -> int: ... + @abstractmethod + def flush(self) -> None: ... + @abstractmethod + def isatty(self) -> bool: ... + @abstractmethod + def read(self, n: int = ...) -> AnyStr: ... + @abstractmethod + def readable(self) -> bool: ... + @abstractmethod + def readline(self, limit: int = ...) -> AnyStr: ... + @abstractmethod + def readlines(self, hint: int = ...) -> list[AnyStr]: ... + @abstractmethod + def seek(self, offset: int, whence: int = ...) -> int: ... + @abstractmethod + def seekable(self) -> bool: ... + @abstractmethod + def tell(self) -> int: ... + @abstractmethod + def truncate(self, size: Optional[int] = ...) -> int: ... + @abstractmethod + def writable(self) -> bool: ... + @abstractmethod + def write(self, s: AnyStr) -> int: ... + @abstractmethod + def writelines(self, lines: Iterable[AnyStr]) -> None: ... + @abstractmethod + def __next__(self) -> AnyStr: ... + @abstractmethod + def __iter__(self) -> Iterator[AnyStr]: ... + @abstractmethod + def __enter__(self) -> IO[AnyStr]: ... + @abstractmethod + def __exit__( + self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Optional[bool]: ... + +class BinaryIO(IO[bytes]): + @abstractmethod + def __enter__(self) -> BinaryIO: ... + +class TextIO(IO[str]): + # TODO use abstractproperty + @property + def buffer(self) -> BinaryIO: ... + @property + def encoding(self) -> str: ... + @property + def errors(self) -> Optional[str]: ... + @property + def line_buffering(self) -> int: ... # int on PyPy, bool on CPython + @property + def newlines(self) -> Any: ... # None, str or tuple + @abstractmethod + def __enter__(self) -> TextIO: ... + +class ByteString(Sequence[int], metaclass=ABCMeta): ... + +class Match(Generic[AnyStr]): + pos: int + endpos: int + lastindex: Optional[int] + lastgroup: Optional[AnyStr] + string: AnyStr + + # The regular expression object whose match() or search() method produced + # this match instance. + re: Pattern[AnyStr] + def expand(self, template: AnyStr) -> AnyStr: ... + # group() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def group(self, __group: _Literal[0] = ...) -> AnyStr: ... + @overload + def group(self, __group: str | int) -> AnyStr | Any: ... + @overload + def group(self, __group1: str | int, __group2: str | int, *groups: str | int) -> Tuple[AnyStr | Any, ...]: ... + # Each item of groups()'s return tuple is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groups(self) -> Tuple[AnyStr | Any, ...]: ... + @overload + def groups(self, default: _T) -> Tuple[AnyStr | _T, ...]: ... + # Each value in groupdict()'s return dict is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groupdict(self) -> dict[str, AnyStr | Any]: ... + @overload + def groupdict(self, default: _T) -> dict[str, AnyStr | _T]: ... + def start(self, __group: Union[int, str] = ...) -> int: ... + def end(self, __group: Union[int, str] = ...) -> int: ... + def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ... + @property + def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented + # __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def __getitem__(self, __key: _Literal[0]) -> AnyStr: ... + @overload + def __getitem__(self, __key: int | str) -> AnyStr | Any: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class Pattern(Generic[AnyStr]): + flags: int + groupindex: Mapping[str, int] + groups: int + pattern: AnyStr + def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ... + def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ... + def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ... + @overload + def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def sub(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def subn(self, repl: AnyStr, string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + @overload + def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +# Functions + +if sys.version_info >= (3, 7): + _get_type_hints_obj_allowed_types = Union[ + object, + Callable[..., Any], + FunctionType, + BuiltinFunctionType, + MethodType, + ModuleType, + WrapperDescriptorType, + MethodWrapperType, + MethodDescriptorType, + ] +else: + _get_type_hints_obj_allowed_types = Union[ + object, Callable[..., Any], FunctionType, BuiltinFunctionType, MethodType, ModuleType, + ] + +if sys.version_info >= (3, 9): + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, + globalns: Optional[Dict[str, Any]] = ..., + localns: Optional[Dict[str, Any]] = ..., + include_extras: bool = ..., + ) -> Dict[str, Any]: ... + +else: + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, globalns: Optional[Dict[str, Any]] = ..., localns: Optional[Dict[str, Any]] = ... + ) -> Dict[str, Any]: ... + +if sys.version_info >= (3, 8): + def get_origin(tp: Any) -> Optional[Any]: ... + def get_args(tp: Any) -> Tuple[Any, ...]: ... + +@overload +def cast(typ: Type[_T], val: Any) -> _T: ... +@overload +def cast(typ: str, val: Any) -> Any: ... +@overload +def cast(typ: object, val: Any) -> Any: ... + +# Type constructors + +# NamedTuple is special-cased in the type checker +class NamedTuple(Tuple[Any, ...]): + _field_types: collections.OrderedDict[str, Type[Any]] + _field_defaults: Dict[str, Any] = ... + _fields: Tuple[str, ...] + _source: str + def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., **kwargs: Any) -> None: ... + @classmethod + def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ... + if sys.version_info >= (3, 8): + def _asdict(self) -> Dict[str, Any]: ... + else: + def _asdict(self) -> collections.OrderedDict[str, Any]: ... + def _replace(self: _T, **kwargs: Any) -> _T: ... + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def __delitem__(self, k: NoReturn) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __or__(self: _T, __value: _T) -> _T: ... + def __ior__(self: _T, __value: _T) -> _T: ... + +def NewType(name: str, tp: Type[_T]) -> Type[_T]: ... + +# This itself is only available during type checking +def type_check_only(func_or_cls: _F) -> _F: ... + +if sys.version_info >= (3, 7): + class ForwardRef: + __forward_arg__: str + __forward_code__: CodeType + __forward_evaluated__: bool + __forward_value__: Optional[Any] + __forward_is_argument__: bool + def __init__(self, arg: str, is_argument: bool = ...) -> None: ... + def _evaluate(self, globalns: Optional[Dict[str, Any]], localns: Optional[Dict[str, Any]]) -> Optional[Any]: ... + def __eq__(self, other: Any) -> bool: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + +if sys.version_info >= (3, 10): + def is_typeddict(tp: Any) -> bool: ... diff --git a/lang/de/typeshed/stdlib/typing_extensions.pyi b/lang/de/typeshed/stdlib/typing_extensions.pyi new file mode 100644 index 0000000..59fe3df --- /dev/null +++ b/lang/de/typeshed/stdlib/typing_extensions.pyi @@ -0,0 +1,115 @@ +import abc +import sys +from typing import ( + TYPE_CHECKING as TYPE_CHECKING, + Any, + AsyncContextManager as AsyncContextManager, + AsyncGenerator as AsyncGenerator, + AsyncIterable as AsyncIterable, + AsyncIterator as AsyncIterator, + Awaitable as Awaitable, + Callable, + ChainMap as ChainMap, + ClassVar as ClassVar, + ContextManager as ContextManager, + Coroutine as Coroutine, + Counter as Counter, + DefaultDict as DefaultDict, + Deque as Deque, + ItemsView, + KeysView, + Mapping, + NewType as NewType, + NoReturn as NoReturn, + Text as Text, + Tuple, + Type as Type, + TypeVar, + ValuesView, + _Alias, + overload as overload, +) + +_T = TypeVar("_T") +_F = TypeVar("_F", bound=Callable[..., Any]) +_TC = TypeVar("_TC", bound=Type[object]) + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> Any: ... + +def runtime_checkable(cls: _TC) -> _TC: ... + +# This alias for above is kept here for backwards compatibility. +runtime = runtime_checkable +Protocol: _SpecialForm = ... +Final: _SpecialForm = ... + +def final(f: _F) -> _F: ... + +Literal: _SpecialForm = ... + +def IntVar(name: str) -> Any: ... # returns a new TypeVar + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __delitem__(self, k: NoReturn) -> None: ... + +# TypedDict is a (non-subscriptable) special form. +TypedDict: object = ... + +OrderedDict = _Alias() + +def get_type_hints( + obj: Callable[..., Any], + globalns: dict[str, Any] | None = ..., + localns: dict[str, Any] | None = ..., + include_extras: bool = ..., +) -> dict[str, Any]: ... + +if sys.version_info >= (3, 7): + def get_args(tp: Any) -> Tuple[Any, ...]: ... + def get_origin(tp: Any) -> Any | None: ... + +Annotated: _SpecialForm = ... +_AnnotatedAlias: Any = ... # undocumented + +@runtime_checkable +class SupportsIndex(Protocol, metaclass=abc.ABCMeta): + @abc.abstractmethod + def __index__(self) -> int: ... + +# PEP 612 support for Python < 3.9 +if sys.version_info >= (3, 10): + from typing import Concatenate as Concatenate, ParamSpec as ParamSpec, TypeAlias as TypeAlias, TypeGuard as TypeGuard +else: + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Type[Any] | None + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: None | Type[Any] | str = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... diff --git a/lang/de/typeshed/stdlib/uarray.pyi b/lang/de/typeshed/stdlib/uarray.pyi new file mode 100644 index 0000000..d1ba4d9 --- /dev/null +++ b/lang/de/typeshed/stdlib/uarray.pyi @@ -0,0 +1 @@ +from array import * diff --git a/lang/de/typeshed/stdlib/ucollections.pyi b/lang/de/typeshed/stdlib/ucollections.pyi new file mode 100644 index 0000000..9400561 --- /dev/null +++ b/lang/de/typeshed/stdlib/ucollections.pyi @@ -0,0 +1 @@ +from collections import * diff --git a/lang/de/typeshed/stdlib/uerrno.pyi b/lang/de/typeshed/stdlib/uerrno.pyi new file mode 100644 index 0000000..5ecb44d --- /dev/null +++ b/lang/de/typeshed/stdlib/uerrno.pyi @@ -0,0 +1 @@ +from errno import * diff --git a/lang/de/typeshed/stdlib/urandom.pyi b/lang/de/typeshed/stdlib/urandom.pyi new file mode 100644 index 0000000..1c31bde --- /dev/null +++ b/lang/de/typeshed/stdlib/urandom.pyi @@ -0,0 +1 @@ +from random import * diff --git a/lang/de/typeshed/stdlib/ustruct.pyi b/lang/de/typeshed/stdlib/ustruct.pyi new file mode 100644 index 0000000..ee3a9fc --- /dev/null +++ b/lang/de/typeshed/stdlib/ustruct.pyi @@ -0,0 +1 @@ +from struct import * diff --git a/lang/de/typeshed/stdlib/usys.pyi b/lang/de/typeshed/stdlib/usys.pyi new file mode 100644 index 0000000..104052c --- /dev/null +++ b/lang/de/typeshed/stdlib/usys.pyi @@ -0,0 +1 @@ +from sys import * diff --git a/lang/de/typeshed/stdlib/utime.pyi b/lang/de/typeshed/stdlib/utime.pyi new file mode 100644 index 0000000..72705db --- /dev/null +++ b/lang/de/typeshed/stdlib/utime.pyi @@ -0,0 +1 @@ +from time import * diff --git a/lang/es-es/typeshed/stdlib/log.pyi b/lang/es-es/typeshed/stdlib/log.pyi index 985f9cc..826660c 100644 --- a/lang/es-es/typeshed/stdlib/log.pyi +++ b/lang/es-es/typeshed/stdlib/log.pyi @@ -27,8 +27,8 @@ present, it will generate a new header row with the additional columns. By default the first column contains a timestamp for each row. The time unit can be selected via the timestamp argument. -:param *labels: Any number of positional arguments, each corresponding to an entry in the log header. -:param timestamp: (marca de tiempo) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``.""" +:param *labels: (*Etiquetas) Cualquier número de argumentos posicionales, cada uno correspondiente a una entrada en el encabezado del registro. +:param timestamp: (marca de tiempo) Seleccione la unidad de marca de tiempo que se añadirá automáticamente como la primera columna de cada fila. Los valores de la marca de tiempo pueden ser ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` o ``None`` para desactivar la marca de tiempo. El valor por defecto es ``log.SECONDS``.""" ... @overload @@ -46,7 +46,7 @@ to the log with the extra labels. Labels previously specified and not present in a call to this function will be skipped with an empty value in the log row. -:param data_dictionary: The data to log as a dictionary with a key for each header.""" +:param data_dictionary: (diccionario de datos) Los datos a registrar como un diccionario con una clave para cada cabecera.""" ... @overload @@ -75,15 +75,15 @@ To add the log headers again the ``set_labels`` function should to be called aft There are two erase modes; “full” completely removes the data from the physical storage, and “fast” invalidates the data without removing it. -:param full: (completo) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method.""" +:param full: (completo) ``True`` selecciona un borrador “completo” y ``False`` selecciona el método de borrado “rápido”.""" ... def set_mirroring(serial: bool): - """Configure mirroring of the data logging activity to the serial output. (configurar replicación) + """Configure la duplicación de la actividad de registro de datos en la salida en serie. (configurar replicación) Example: ``log.set_mirroring(True)`` Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. -:param serial: (serie) ``True`` enables mirroring data to the serial output.""" +:param serial: (serie) ``True`` habilita la reproducción de datos en la salida de serie.""" ... \ No newline at end of file diff --git a/lang/es-es/typeshed/stdlib/microbit/__init__.pyi b/lang/es-es/typeshed/stdlib/microbit/__init__.pyi index 48dbb14..d0c8207 100644 --- a/lang/es-es/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/__init__.pyi @@ -12,7 +12,7 @@ from . import spi as spi from . import uart as uart def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: - """Schedule to run a function at the interval specified by the time arguments **V2 only**. (ejecutar cada) + """Programe para ejecutar una función en el intervalo especificado por los argumentos de tiempo **V2 solamente**. (ejecutar cada) Example: ``run_every(my_logging, min=5)`` @@ -36,12 +36,12 @@ So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. When an exception is thrown inside the callback function it deschedules the function. To avoid this you can catch exceptions with ``try/except``. -:param callback: Function to call at the provided interval. Omit when using as a decorator. -:param days: (días) Sets the day mark for the scheduling. -:param h: Sets the hour mark for the scheduling. -:param min: Sets the minute mark for the scheduling. -:param s: Sets the second mark for the scheduling. -:param ms: Sets the millisecond mark for the scheduling.""" +:param callback: Función para llamar al intervalo proporcionado. Omitir cuando se utiliza como decorador. +:param days: (días) Establece la marca del día para la programación. +:param h: Establece la marca de hora para la programación. +:param min: Establece la marca de minuto para la programación. +:param s: Establece la segunda marca para la programación. +:param ms: Establece la marca de milisegundos para la programación.""" def panic(n: int) -> None: """Entra en modo pánico (pánico) @@ -57,7 +57,7 @@ def reset() -> None: @overload def scale(value: float, from_: Tuple[float, float], to: Tuple[int, int]) -> int: - """Converts a value from a range to an integer range. + """Convierte un valor de un rango a un rango de números enteros. (escala) Example: ``volume = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255))`` @@ -69,14 +69,14 @@ floating point number. temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) -:param value: (valor) A number to convert. -:param from_: A tuple to define the range to convert from. -:param to: A tuple to define the range to convert to. +:param value: (valor) Un número a convertir. +:param from_: (de) Una tupla para definir el rango desde el que convertir. +:param to: (a) Una tupla para definir el rango al que convertir. :return: The ``value`` converted to the ``to`` range.""" @overload def scale(value: float, from_: Tuple[float, float], to: Tuple[float, float]) -> float: - """Converts a value from a range to a floating point range. + """Convierte un valor de un rango a un rango de punto flotante. (escala) Example: ``temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0))`` @@ -89,9 +89,9 @@ If they are both integers (i.e ``10``), it will return an integer:: returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) -:param value: (valor) A number to convert. -:param from_: A tuple to define the range to convert from. -:param to: A tuple to define the range to convert to. +:param value: (valor) Un número a convertir. +:param from_: (de) Una tupla para definir el rango desde el que convertir. +:param to: (a) Una tupla para definir el rango al que convertir. :return: The ``value`` converted to the ``to`` range.""" def sleep(n: float) -> None: @@ -460,7 +460,7 @@ Given an image object it's possible to display it via the ``display`` API:: SNAKE: Image """Imagen de una serpiente. (serpiente)""" SCISSORS: Image - """Scissors image.""" + """Imagen de tijeras. (tijeras)""" ALL_CLOCKS: List[Image] """Una lista que contiene todas las imágenes CLOCK_ en secuencia. (todos los relojes)""" ALL_ARROWS: List[Image] diff --git a/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi b/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi index fdc235b..6941721 100644 --- a/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi @@ -34,7 +34,7 @@ Example: ``x, y, z = accelerometer.get_values()`` ... def get_strength() -> int: - """Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes. + """Obtener la medición de aceleración de todos los ejes combinados, como un entero positivo. Esta es la suma de Pitagórica de los ejes X, Y y Z. (obtener fuerza) Example: ``accelerometer.get_strength()`` @@ -96,8 +96,8 @@ gestures can be detected using a loop with a small :func:`microbit.sleep` delay. ... def set_range(value: int) -> None: - """Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g. + """Establecer el rango de sensibilidad acelerómetro, en g (gravedad estándar), a los valores más cercanos soportados por el hardware, así que se redondea a ``2``, ``4``o ``8`` g. (establecer rango) Example: ``accelerometer.set_range(8)`` -:param value: (valor) New range for the accelerometer, an integer in ``g``.""" \ No newline at end of file +:param value: (valor) Nuevo rango para el acelerómetro, un entero en ``g``.""" \ No newline at end of file diff --git a/lang/es-es/typeshed/stdlib/microbit/audio.pyi b/lang/es-es/typeshed/stdlib/microbit/audio.pyi index 6eee826..7386050 100644 --- a/lang/es-es/typeshed/stdlib/microbit/audio.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/audio.pyi @@ -3,11 +3,11 @@ from ..microbit import MicroBitDigitalPin, Sound, pin0 from typing import ClassVar, Iterable, Union def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: - """Play a built-in sound, sound effect or custom audio frames. (reproducir) + """Reproducir un sonido, un efecto de sonido o marcos de audio personalizados. (reproducir) Example: ``audio.play(Sound.GIGGLE)`` -:param source: (origen) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects. +:param source: (origen) Un ``Sound`` integrado como ``Sound.GIGGLE``, un ``SoundEffect`` o datos de muestra como un iterable de objetos ``AudioFrame``. :param wait: (esperar) Si ``wait`` es ``True`` (verdadero), la función se bloqueará hasta que el sonido finalice. :param pin: Se puede usar un argumento opcional para especificar el pin de salida, reemplazando el valor predeterminado de ``pin0``. Si no queremos que se reproduzca ningún sonido, podemos usar ``pin=None``. :param return_pin: (devolver pin) Especifica un pin de conector de borde diferencial para conectarse a un altavoz externo en lugar de tierra. Esto se ignora para la revisión **V2**.""" @@ -27,50 +27,50 @@ Example: ``audio.stop()``""" ... class SoundEffect: - """A sound effect, composed by a set of parameters configured via the constructor or attributes.""" + """Un efecto de sonido, compuesto por un conjunto de parámetros configurados a través del constructor o atributos. (efecto de sonido)""" WAVEFORM_SINE: ClassVar[int] - """Sine wave option used for the ``waveform`` parameter.""" + """Opción de onda sinusoidal utilizada para el parámetro ``waveform``. (forma de onda sinusoidal)""" WAVEFORM_SAWTOOTH: ClassVar[int] - """Sawtooth wave option used for the ``waveform`` parameter.""" + """Opción de onda con diente de sierra usada para el parámetro ``waveform``. (diente de sierra de forma de onda)""" WAVEFORM_TRIANGLE: ClassVar[int] - """Triangle wave option used for the ``waveform`` parameter.""" + """Opción de onda triangular usada para el parámetro ``waveform``. (forma de onda triangular)""" WAVEFORM_SQUARE: ClassVar[int] - """Square wave option used for the ``waveform`` parameter.""" + """Opción de onda cuadrada usada para el parámetro ``waveform``. (forma de onda cuadrada)""" WAVEFORM_NOISE: ClassVar[int] - """Noise option used for the ``waveform`` parameter.""" + """Opción de ruido usada para el parámetro ``waveform``. (forma de onda de ruido)""" SHAPE_LINEAR: ClassVar[int] - """Linear interpolation option used for the ``shape`` parameter.""" + """Opción de interpolación lineal usada para el parámetro ``shape``. (forma lineal)""" SHAPE_CURVE: ClassVar[int] - """Curve interpolation option used for the ``shape`` parameter.""" + """Opción de interpolación de curva usada para el parámetro ``shape``. (forma curva)""" SHAPE_LOG: ClassVar[int] - """Logarithmic interpolation option used for the ``shape`` parameter.""" + """Opción de interpolación logarítmica usada para el parámetro ``shape``. (registro de forma)""" FX_NONE: ClassVar[int] - """No effect option used for the ``fx`` parameter.""" + """Ninguna opción de efecto usada para el parámetro ``fx``. (fx ninguno)""" FX_TREMOLO: ClassVar[int] - """Tremolo effect option used for the ``fx`` parameter.""" + """Opción de efecto Trémolo usada para el parámetro ``fx``.""" FX_VIBRATO: ClassVar[int] - """Vibrato effect option used for the ``fx`` parameter.""" + """Opción de efecto vibrato utilizada para el parámetro ``fx``.""" FX_WARBLE: ClassVar[int] - """Warble effect option used for the ``fx`` parameter.""" + """Opción de efecto gorjeo utilizada para el parámetro ``fx``. (fx gorjeo)""" freq_start: int - """Start frequency in Hertz (Hz), a number between ``0`` and ``9999``""" + """Frecuencia de inicio en Hertz (Hz), un número entre ``0`` y ``9999`` (frecuencia de inicio)""" freq_end: int - """End frequency in Hertz (Hz), a number between ``0`` and ``9999``""" + """Frecuencia final en Hertz (Hz), un número entre ``0`` y ``9999`` (frecuencia final)""" duration: int - """Duration of the sound in milliseconds, a number between ``0`` and ``9999`` (duración)""" + """Duración del sonido en milisegundos, un número entre ``0`` y ``9999`` (duración)""" vol_start: int - """Start volume value, a number between ``0`` and ``255``""" + """Valor de volumen inicial, un número entre ``0`` y ``255`` (volumen de inicio)""" vol_end: int - """End volume value, a number between ``0`` and ``255``""" + """Valor final del volumen, un número entre ``0`` y ``255`` (volumen final)""" waveform: int - """Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)""" + """Tipo de forma ondulada, uno de estos valores: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (ruido generado aleatoriamente) (forma de onda)""" fx: int - """Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``""" + """Efecto para añadir en el sonido, uno de los siguientes valores: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``o ``FX_NONE``""" shape: int - """The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``""" + """El tipo de curva de interpolación entre las frecuencias de inicio y final, diferentes formas de onda tienen diferentes tasas de cambio en la frecuencia. Uno de los siguientes valores: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG`` (forma)""" def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): - """Create a new sound effect. + """Crear un nuevo efecto de sonido. Example: ``my_effect = SoundEffect(duration=1000)`` @@ -79,17 +79,17 @@ they can all be modified via attributes of the same name. For example, we can first create an effect ``my_effect = SoundEffect(duration=1000)``, and then change its attributes ``my_effect.duration = 500``. -:param freq_start: Start frequency in Hertz (Hz), a number between ``0`` and ``9999``. -:param freq_end: End frequency in Hertz (Hz), a number between ``0`` and ``9999``. -:param duration: (duración) Duration of the sound in milliseconds, a number between ``0`` and ``9999``. -:param vol_start: Start volume value, a number between ``0`` and ``255``. -:param vol_end: End volume value, a number between ``0`` and ``255``. -:param waveform: Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise). -:param fx: Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``. -:param shape: The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" +:param freq_start: (frecuencia de inicio) Frecuencia de inicio en Hertz (Hz), un número entre ``0`` y ``9999``. +:param freq_end: (frecuencia final) Frecuencia final en Hertz (Hz), un número entre ``0`` y ``9999``. +:param duration: (duración) Duración del sonido en milisegundos, un número entre ``0`` y ``9999``. +:param vol_start: (volumen inicial) Valor de volumen inicial, un número entre ``0`` y ``255``. +:param vol_end: (volumen final) Valor de volumen final, un número entre ``0`` y ``255``. +:param waveform: (forma de onda) Tipo de forma de onda, uno de estos valores: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (ruido generado aleatoriamente). +:param fx: Efecto para añadir en el sonido, uno de los siguientes valores: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``o ``FX_NONE``. +:param shape: (forma) El tipo de curva de interpolación entre las frecuencias de inicio y final, diferentes formas de onda tienen diferentes tasas de cambio en la frecuencia. Uno de los siguientes valores: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" def copy(self) -> SoundEffect: - """Create a copy of this ``SoundEffect``. (copiar) + """Crear una copia de este ``SoundEffect``. (copiar) Example: ``sound_2 = sound_1.copy()`` @@ -108,11 +108,11 @@ Example:: frame[i] = 252 - i * 8""" def copyfrom(self, other: AudioFrame) -> None: - """Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance. + """Sobrescribir los datos en este ``AudioFrame`` con los datos de otra instancia de ``AudioFrame``. (copiar forma) Example: ``my_frame.copyfrom(source_frame)`` -:param other: (otro) ``AudioFrame`` instance from which to copy the data.""" +:param other: (otro) Instancia ``AudioFrame`` desde la que copiar los datos.""" def __len__(self) -> int: ... diff --git a/lang/ja/typeshed/stdlib/microbit/__init__.pyi b/lang/ja/typeshed/stdlib/microbit/__init__.pyi index fe85638..06c42bb 100644 --- a/lang/ja/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/ja/typeshed/stdlib/microbit/__init__.pyi @@ -40,8 +40,8 @@ function. To avoid this you can catch exceptions with ``try/except``. :param days: スケジューリングのための日数を設定します。 :param h: スケジューリングのための時間を設定します。 :param min: スケジューリングのための分を設定します。 -:param s: スケジューリングのためのミリ秒を設定します。 -:param ms: スケジューリングのための秒を設定します。""" +:param s: スケジューリングのための秒を設定します。 +:param ms: スケジューリングのためのミリ秒を設定します。""" def panic(n: int) -> None: """パニックモードに入ります。 @@ -461,9 +461,9 @@ Given an image object it's possible to display it via the ``display`` API:: SCISSORS: Image """「はさみ」イメージ。""" ALL_CLOCKS: List[Image] - """すべての CLOCK_ イメージを順番に並べたリスト。""" + """すべての時計イメージを順番に並べたリスト。""" ALL_ARROWS: List[Image] - """すべての ARROW_ イメージを順番に並べたリスト。""" + """すべての矢印イメージを順番に並べたリスト。""" @overload def __init__(self, string: str) -> None: diff --git a/lang/ja/typeshed/stdlib/microbit/audio.pyi b/lang/ja/typeshed/stdlib/microbit/audio.pyi index b3df246..309077d 100644 --- a/lang/ja/typeshed/stdlib/microbit/audio.pyi +++ b/lang/ja/typeshed/stdlib/microbit/audio.pyi @@ -36,7 +36,7 @@ class SoundEffect: WAVEFORM_TRIANGLE: ClassVar[int] """``waveform`` パラメータに指定できる「三角波」オプション。""" WAVEFORM_SQUARE: ClassVar[int] - """``waveform`` パラメータに指定できる「方形波」オプション。""" + """``waveform`` パラメータに指定できる「矩形波」オプション。""" WAVEFORM_NOISE: ClassVar[int] """``waveform`` パラメータに指定できる「ノイズ」オプション。""" SHAPE_LINEAR: ClassVar[int] @@ -52,7 +52,7 @@ class SoundEffect: FX_VIBRATO: ClassVar[int] """``fx`` パラメータに指定できる「ビブラート効果」オプション。""" FX_WARBLE: ClassVar[int] - """``fx`` パラメータに指定できる「さえずり効果」オプション。""" + """``fx`` パラメータに指定できる「ワブル効果」オプション。""" freq_start: int """開始周波数。単位はヘルツ(Hz)で、``0``から``9999``の範囲の数値です。""" freq_end: int diff --git a/scripts/build-translations.sh b/scripts/build-translations.sh index 70b4597..d2a4b93 100755 --- a/scripts/build-translations.sh +++ b/scripts/build-translations.sh @@ -5,7 +5,7 @@ set -euxo pipefail -languages="ca fr es-ES ja ko nl zh-CN zh-TW" +languages="ca de fr es-ES ja ko nl zh-CN zh-TW" for language in $languages; do lower="${language,,}" From e963bd5fd43026312d24ba10276ad06e0cfa4701 Mon Sep 17 00:00:00 2001 From: Grace <145345672+microbit-grace@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:07:58 +0100 Subject: [PATCH 09/15] Update Image.SMILE doc to smiling mouth image (#99) --- lang/en/typeshed/stdlib/microbit/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/en/typeshed/stdlib/microbit/__init__.pyi b/lang/en/typeshed/stdlib/microbit/__init__.pyi index 5e03529..f12158f 100644 --- a/lang/en/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/en/typeshed/stdlib/microbit/__init__.pyi @@ -392,7 +392,7 @@ class Image: """Happy face image.""" SMILE: Image - """Smiling face image.""" + """Smiling mouth image.""" SAD: Image """Sad face image.""" From c66757f9032501b7eeaf8b08abd1b926415829fd Mon Sep 17 00:00:00 2001 From: Grace <145345672+microbit-grace@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:16:56 +0100 Subject: [PATCH 10/15] Add in-context translation lang file (#100) --- crowdin/translated/api.lol.json | 5258 +++++++++++++++++++++++++++++++ scripts/build-translations.sh | 2 +- 2 files changed, 5259 insertions(+), 1 deletion(-) create mode 100644 crowdin/translated/api.lol.json diff --git a/crowdin/translated/api.lol.json b/crowdin/translated/api.lol.json new file mode 100644 index 0000000..90e1443 --- /dev/null +++ b/crowdin/translated/api.lol.json @@ -0,0 +1,5258 @@ +{ + "gc": { + "message": "crwdns328730:0crwdne328730:0", + "description": "(module name) Control the garbage collector" + }, + "gc.summary": { + "message": "crwdns328732:0crwdne328732:0", + "description": "Control the garbage collector" + }, + "gc.enable": { + "message": "crwdns328734:0crwdne328734:0", + "description": "(function name) Enable automatic garbage collection." + }, + "gc.enable.summary": { + "message": "crwdns328736:0crwdne328736:0", + "description": "Enable automatic garbage collection." + }, + "gc.disable": { + "message": "crwdns328738:0crwdne328738:0", + "description": "(function name) Disable automatic garbage collection." + }, + "gc.disable.summary": { + "message": "crwdns328740:0crwdne328740:0", + "description": "Disable automatic garbage collection." + }, + "gc.collect": { + "message": "crwdns328742:0crwdne328742:0", + "description": "(function name) Run a garbage collection." + }, + "gc.collect.summary": { + "message": "crwdns328744:0crwdne328744:0", + "description": "Run a garbage collection." + }, + "gc.mem_alloc": { + "message": "crwdns328746:0crwdne328746:0", + "description": "(function name) Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_alloc.summary": { + "message": "crwdns328748:0crwdne328748:0", + "description": "Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_free": { + "message": "crwdns328750:0crwdne328750:0", + "description": "(function name) Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.mem_free.summary": { + "message": "crwdns328752:0crwdne328752:0", + "description": "Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.threshold-1": { + "message": "crwdns328754:0crwdne328754:0", + "description": "(function name) Query the additional GC allocation threshold." + }, + "gc.threshold-1.summary": { + "message": "crwdns328756:0crwdne328756:0", + "description": "Query the additional GC allocation threshold." + }, + "gc.threshold-2": { + "message": "crwdns328758:0crwdne328758:0", + "description": "(function name) Set the additional GC allocation threshold." + }, + "gc.threshold-2.summary": { + "message": "crwdns328760:0crwdne328760:0", + "description": "Set the additional GC allocation threshold." + }, + "gc.threshold-2.param-name.amount": { + "message": "crwdns328762:0crwdne328762:0", + "description": "(parameter name) The number of bytes after which a garbage collection should be triggered." + }, + "gc.threshold-2.param-doc.amount": { + "message": "crwdns328764:0crwdne328764:0", + "description": "Parameter docs" + }, + "log": { + "message": "crwdns328766:0crwdne328766:0", + "description": "(module name) Log data to your micro:bit V2." + }, + "log.summary": { + "message": "crwdns328768:0crwdne328768:0", + "description": "Log data to your micro:bit V2." + }, + "log.MILLISECONDS": { + "message": "crwdns328770:0crwdne328770:0", + "description": "(field name) Milliseconds timestamp format." + }, + "log.MILLISECONDS.summary": { + "message": "crwdns328772:0crwdne328772:0", + "description": "Milliseconds timestamp format." + }, + "log.SECONDS": { + "message": "crwdns328774:0crwdne328774:0", + "description": "(field name) Seconds timestamp format." + }, + "log.SECONDS.summary": { + "message": "crwdns328776:0crwdne328776:0", + "description": "Seconds timestamp format." + }, + "log.MINUTES": { + "message": "crwdns328778:0crwdne328778:0", + "description": "(field name) Minutes timestamp format." + }, + "log.MINUTES.summary": { + "message": "crwdns328780:0crwdne328780:0", + "description": "Minutes timestamp format." + }, + "log.HOURS": { + "message": "crwdns328782:0crwdne328782:0", + "description": "(field name) Hours timestamp format." + }, + "log.HOURS.summary": { + "message": "crwdns328784:0crwdne328784:0", + "description": "Hours timestamp format." + }, + "log.DAYS": { + "message": "crwdns328786:0crwdne328786:0", + "description": "(field name) Days timestamp format." + }, + "log.DAYS.summary": { + "message": "crwdns328788:0crwdne328788:0", + "description": "Days timestamp format." + }, + "log.set_labels": { + "message": "crwdns328790:0crwdne328790:0", + "description": "(function name) Set up the log file header." + }, + "log.set_labels.summary": { + "message": "crwdns328792:0crwdne328792:0", + "description": "Set up the log file header." + }, + "log.set_labels.param-name.*labels": { + "message": "crwdns335772:0crwdne335772:0", + "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." + }, + "log.set_labels.param-doc.*labels": { + "message": "crwdns335774:0crwdne335774:0", + "description": "Parameter docs" + }, + "log.set_labels.param-name.timestamp": { + "message": "crwdns328798:0crwdne328798:0", + "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." + }, + "log.set_labels.param-doc.timestamp": { + "message": "crwdns335776:0{{log.MILLISECONDS}}crwdnd335776:0{{log.SECONDS}}crwdnd335776:0{{log.MINUTES}}crwdnd335776:0{{log.HOURS}}crwdnd335776:0{{log.DAYS}}crwdnd335776:0{{None}}crwdnd335776:0{{log.SECONDS}}crwdne335776:0", + "description": "Parameter docs" + }, + "log.add-1": { + "message": "crwdns328802:0crwdne328802:0", + "description": "(function name) Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.summary": { + "message": "crwdns328804:0crwdne328804:0", + "description": "Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.param-name.data_dictionary": { + "message": "crwdns335778:0crwdne335778:0", + "description": "(parameter name) The data to log as a dictionary with a key for each header." + }, + "log.add-1.param-doc.data_dictionary": { + "message": "crwdns335780:0crwdne335780:0", + "description": "Parameter docs" + }, + "log.add-2": { + "message": "crwdns328810:0crwdne328810:0", + "description": "(function name) Add a data row to the log using keyword arguments." + }, + "log.add-2.summary": { + "message": "crwdns328812:0crwdne328812:0", + "description": "Add a data row to the log using keyword arguments." + }, + "log.delete": { + "message": "crwdns328814:0crwdne328814:0", + "description": "(function name) Deletes the contents of the log, including headers." + }, + "log.delete.summary": { + "message": "crwdns328816:0crwdne328816:0", + "description": "Deletes the contents of the log, including headers." + }, + "log.delete.param-name.full": { + "message": "crwdns328818:0crwdne328818:0", + "description": "(parameter name) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method." + }, + "log.delete.param-doc.full": { + "message": "crwdns335782:0{{True}}crwdnd335782:0{{False}}crwdne335782:0", + "description": "Parameter docs" + }, + "log.set_mirroring": { + "message": "crwdns328822:0crwdne328822:0", + "description": "(function name) Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.summary": { + "message": "crwdns335784:0crwdne335784:0", + "description": "Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.param-name.serial": { + "message": "crwdns328826:0crwdne328826:0", + "description": "(parameter name) ``True`` enables mirroring data to the serial output." + }, + "log.set_mirroring.param-doc.serial": { + "message": "crwdns335786:0{{True}}crwdne335786:0", + "description": "Parameter docs" + }, + "machine": { + "message": "crwdns328830:0crwdne328830:0", + "description": "(module name) Low-level utilities." + }, + "machine.summary": { + "message": "crwdns328832:0crwdne328832:0", + "description": "Low-level utilities." + }, + "machine.unique_id": { + "message": "crwdns328834:0crwdne328834:0", + "description": "(function name) Get a byte string with a unique identifier of a board." + }, + "machine.unique_id.summary": { + "message": "crwdns328836:0crwdne328836:0", + "description": "Get a byte string with a unique identifier of a board." + }, + "machine.reset": { + "message": "crwdns328838:0crwdne328838:0", + "description": "(function name) Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.reset.summary": { + "message": "crwdns328840:0crwdne328840:0", + "description": "Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.freq": { + "message": "crwdns328842:0crwdne328842:0", + "description": "(function name) Get the CPU frequency in hertz." + }, + "machine.freq.summary": { + "message": "crwdns328844:0crwdne328844:0", + "description": "Get the CPU frequency in hertz." + }, + "machine.disable_irq": { + "message": "crwdns328846:0crwdne328846:0", + "description": "(function name) Disable interrupt requests." + }, + "machine.disable_irq.summary": { + "message": "crwdns328848:0crwdne328848:0", + "description": "Disable interrupt requests." + }, + "machine.enable_irq": { + "message": "crwdns328850:0crwdne328850:0", + "description": "(function name) Re-enable interrupt requests." + }, + "machine.enable_irq.summary": { + "message": "crwdns328852:0crwdne328852:0", + "description": "Re-enable interrupt requests." + }, + "machine.enable_irq.param-name.state": { + "message": "crwdns328854:0crwdne328854:0", + "description": "(parameter name) The value that was returned from the most recent call to the ``disable_irq`` function." + }, + "machine.enable_irq.param-doc.state": { + "message": "crwdns328856:0{{disable_irq}}crwdne328856:0", + "description": "Parameter docs" + }, + "machine.time_pulse_us": { + "message": "crwdns328858:0crwdne328858:0", + "description": "(function name) Time a pulse on a pin." + }, + "machine.time_pulse_us.summary": { + "message": "crwdns328860:0crwdne328860:0", + "description": "Time a pulse on a pin." + }, + "machine.time_pulse_us.param-name.pin": { + "message": "crwdns328862:0crwdne328862:0", + "description": "(parameter name) The pin to use" + }, + "machine.time_pulse_us.param-doc.pin": { + "message": "crwdns328864:0crwdne328864:0", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.pulse_level": { + "message": "crwdns328866:0crwdne328866:0", + "description": "(parameter name) 0 to time a low pulse or 1 to time a high pulse" + }, + "machine.time_pulse_us.param-doc.pulse_level": { + "message": "crwdns328868:0crwdne328868:0", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.timeout_us": { + "message": "crwdns328870:0crwdne328870:0", + "description": "(parameter name) A microsecond timeout" + }, + "machine.time_pulse_us.param-doc.timeout_us": { + "message": "crwdns328872:0crwdne328872:0", + "description": "Parameter docs" + }, + "machine.mem": { + "message": "crwdns328874:0crwdne328874:0", + "description": "(class name) The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.summary": { + "message": "crwdns328876:0{{mem8}}crwdnd328876:0{{mem16}}crwdnd328876:0{{mem32}}crwdne328876:0", + "description": "The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.__getitem__": { + "message": "crwdns328878:0crwdne328878:0", + "description": "(function name) Access a value from memory." + }, + "machine.mem.__getitem__.summary": { + "message": "crwdns328880:0crwdne328880:0", + "description": "Access a value from memory." + }, + "machine.mem.__getitem__.param-name.address": { + "message": "crwdns328882:0crwdne328882:0", + "description": "(parameter name) The memory address." + }, + "machine.mem.__getitem__.param-doc.address": { + "message": "crwdns328884:0crwdne328884:0", + "description": "Parameter docs" + }, + "machine.mem.__setitem__": { + "message": "crwdns328886:0crwdne328886:0", + "description": "(function name) Set a value at the given address." + }, + "machine.mem.__setitem__.summary": { + "message": "crwdns328888:0crwdne328888:0", + "description": "Set a value at the given address." + }, + "machine.mem.__setitem__.param-name.address": { + "message": "crwdns328890:0crwdne328890:0", + "description": "(parameter name) The memory address." + }, + "machine.mem.__setitem__.param-doc.address": { + "message": "crwdns328892:0crwdne328892:0", + "description": "Parameter docs" + }, + "machine.mem.__setitem__.param-name.value": { + "message": "crwdns328894:0crwdne328894:0", + "description": "(parameter name) The integer value to set." + }, + "machine.mem.__setitem__.param-doc.value": { + "message": "crwdns328896:0crwdne328896:0", + "description": "Parameter docs" + }, + "machine.mem8": { + "message": "crwdns328898:0crwdne328898:0", + "description": "(field name) 8-bit (byte) view of memory." + }, + "machine.mem8.summary": { + "message": "crwdns328900:0crwdne328900:0", + "description": "8-bit (byte) view of memory." + }, + "machine.mem16": { + "message": "crwdns328902:0crwdne328902:0", + "description": "(field name) 16-bit view of memory." + }, + "machine.mem16.summary": { + "message": "crwdns328904:0crwdne328904:0", + "description": "16-bit view of memory." + }, + "machine.mem32": { + "message": "crwdns328906:0crwdne328906:0", + "description": "(field name) 32-bit view of memory." + }, + "machine.mem32.summary": { + "message": "crwdns328908:0crwdne328908:0", + "description": "32-bit view of memory." + }, + "math": { + "message": "crwdns328910:0crwdne328910:0", + "description": "(module name) Mathematical functions." + }, + "math.summary": { + "message": "crwdns328912:0crwdne328912:0", + "description": "Mathematical functions." + }, + "math.acos": { + "message": "crwdns328914:0crwdne328914:0", + "description": "(function name) Calculate the inverse cosine." + }, + "math.acos.summary": { + "message": "crwdns328916:0crwdne328916:0", + "description": "Calculate the inverse cosine." + }, + "math.acos.param-name.x": { + "message": "crwdns328918:0crwdne328918:0", + "description": "(parameter name) A number" + }, + "math.acos.param-doc.x": { + "message": "crwdns328920:0crwdne328920:0", + "description": "Parameter docs" + }, + "math.asin": { + "message": "crwdns328922:0crwdne328922:0", + "description": "(function name) Calculate the inverse sine." + }, + "math.asin.summary": { + "message": "crwdns328924:0crwdne328924:0", + "description": "Calculate the inverse sine." + }, + "math.asin.param-name.x": { + "message": "crwdns328926:0crwdne328926:0", + "description": "(parameter name) A number" + }, + "math.asin.param-doc.x": { + "message": "crwdns328928:0crwdne328928:0", + "description": "Parameter docs" + }, + "math.atan": { + "message": "crwdns328930:0crwdne328930:0", + "description": "(function name) Calculate the inverse tangent." + }, + "math.atan.summary": { + "message": "crwdns328932:0crwdne328932:0", + "description": "Calculate the inverse tangent." + }, + "math.atan.param-name.x": { + "message": "crwdns328934:0crwdne328934:0", + "description": "(parameter name) A number" + }, + "math.atan.param-doc.x": { + "message": "crwdns328936:0crwdne328936:0", + "description": "Parameter docs" + }, + "math.atan2": { + "message": "crwdns328938:0crwdne328938:0", + "description": "(function name) Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.summary": { + "message": "crwdns328940:0{{y/x}}crwdne328940:0", + "description": "Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.param-name.x": { + "message": "crwdns328942:0crwdne328942:0", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.x": { + "message": "crwdns328944:0crwdne328944:0", + "description": "Parameter docs" + }, + "math.atan2.param-name.y": { + "message": "crwdns328946:0crwdne328946:0", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.y": { + "message": "crwdns328948:0crwdne328948:0", + "description": "Parameter docs" + }, + "math.ceil": { + "message": "crwdns328950:0crwdne328950:0", + "description": "(function name) Round a number towards positive infinity." + }, + "math.ceil.summary": { + "message": "crwdns328952:0crwdne328952:0", + "description": "Round a number towards positive infinity." + }, + "math.ceil.param-name.x": { + "message": "crwdns328954:0crwdne328954:0", + "description": "(parameter name) A number" + }, + "math.ceil.param-doc.x": { + "message": "crwdns328956:0crwdne328956:0", + "description": "Parameter docs" + }, + "math.copysign": { + "message": "crwdns328958:0crwdne328958:0", + "description": "(function name) Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.summary": { + "message": "crwdns328960:0{{x}}crwdnd328960:0{{y}}crwdne328960:0", + "description": "Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.param-name.x": { + "message": "crwdns328962:0crwdne328962:0", + "description": "(parameter name) A number" + }, + "math.copysign.param-doc.x": { + "message": "crwdns328964:0crwdne328964:0", + "description": "Parameter docs" + }, + "math.copysign.param-name.y": { + "message": "crwdns328966:0crwdne328966:0", + "description": "(parameter name) The source of the sign for the return value" + }, + "math.copysign.param-doc.y": { + "message": "crwdns328968:0crwdne328968:0", + "description": "Parameter docs" + }, + "math.cos": { + "message": "crwdns328970:0crwdne328970:0", + "description": "(function name) Calculate the cosine of ``x``." + }, + "math.cos.summary": { + "message": "crwdns328972:0{{x}}crwdne328972:0", + "description": "Calculate the cosine of ``x``." + }, + "math.cos.param-name.x": { + "message": "crwdns328974:0crwdne328974:0", + "description": "(parameter name) A number" + }, + "math.cos.param-doc.x": { + "message": "crwdns328976:0crwdne328976:0", + "description": "Parameter docs" + }, + "math.degrees": { + "message": "crwdns328978:0crwdne328978:0", + "description": "(function name) Convert radians to degrees." + }, + "math.degrees.summary": { + "message": "crwdns328980:0crwdne328980:0", + "description": "Convert radians to degrees." + }, + "math.degrees.param-name.x": { + "message": "crwdns328982:0crwdne328982:0", + "description": "(parameter name) A value in radians" + }, + "math.degrees.param-doc.x": { + "message": "crwdns328984:0crwdne328984:0", + "description": "Parameter docs" + }, + "math.exp": { + "message": "crwdns328986:0crwdne328986:0", + "description": "(function name) Calculate the exponential of ``x``." + }, + "math.exp.summary": { + "message": "crwdns328988:0{{x}}crwdne328988:0", + "description": "Calculate the exponential of ``x``." + }, + "math.exp.param-name.x": { + "message": "crwdns328990:0crwdne328990:0", + "description": "(parameter name) A number" + }, + "math.exp.param-doc.x": { + "message": "crwdns328992:0crwdne328992:0", + "description": "Parameter docs" + }, + "math.fabs": { + "message": "crwdns328994:0crwdne328994:0", + "description": "(function name) Return the absolute value of ``x``." + }, + "math.fabs.summary": { + "message": "crwdns328996:0{{x}}crwdne328996:0", + "description": "Return the absolute value of ``x``." + }, + "math.fabs.param-name.x": { + "message": "crwdns328998:0crwdne328998:0", + "description": "(parameter name) A number" + }, + "math.fabs.param-doc.x": { + "message": "crwdns329000:0crwdne329000:0", + "description": "Parameter docs" + }, + "math.floor": { + "message": "crwdns329002:0crwdne329002:0", + "description": "(function name) Round a number towards negative infinity." + }, + "math.floor.summary": { + "message": "crwdns329004:0crwdne329004:0", + "description": "Round a number towards negative infinity." + }, + "math.floor.param-name.x": { + "message": "crwdns329006:0crwdne329006:0", + "description": "(parameter name) A number" + }, + "math.floor.param-doc.x": { + "message": "crwdns329008:0crwdne329008:0", + "description": "Parameter docs" + }, + "math.fmod": { + "message": "crwdns329010:0crwdne329010:0", + "description": "(function name) Calculate the remainder of ``x/y``." + }, + "math.fmod.summary": { + "message": "crwdns329012:0{{x/y}}crwdne329012:0", + "description": "Calculate the remainder of ``x/y``." + }, + "math.fmod.param-name.x": { + "message": "crwdns329014:0crwdne329014:0", + "description": "(parameter name) The numerator" + }, + "math.fmod.param-doc.x": { + "message": "crwdns329016:0crwdne329016:0", + "description": "Parameter docs" + }, + "math.fmod.param-name.y": { + "message": "crwdns329018:0crwdne329018:0", + "description": "(parameter name) The denominator" + }, + "math.fmod.param-doc.y": { + "message": "crwdns329020:0crwdne329020:0", + "description": "Parameter docs" + }, + "math.frexp": { + "message": "crwdns329022:0crwdne329022:0", + "description": "(function name) Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.summary": { + "message": "crwdns329024:0crwdne329024:0", + "description": "Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.param-name.x": { + "message": "crwdns329026:0crwdne329026:0", + "description": "(parameter name) A floating-point number" + }, + "math.frexp.param-doc.x": { + "message": "crwdns329028:0crwdne329028:0", + "description": "Parameter docs" + }, + "math.isfinite": { + "message": "crwdns329030:0crwdne329030:0", + "description": "(function name) Check if a value is finite." + }, + "math.isfinite.summary": { + "message": "crwdns329032:0crwdne329032:0", + "description": "Check if a value is finite." + }, + "math.isfinite.param-name.x": { + "message": "crwdns329034:0crwdne329034:0", + "description": "(parameter name) A number." + }, + "math.isfinite.param-doc.x": { + "message": "crwdns329036:0crwdne329036:0", + "description": "Parameter docs" + }, + "math.isinf": { + "message": "crwdns329038:0crwdne329038:0", + "description": "(function name) Check if a value is infinite." + }, + "math.isinf.summary": { + "message": "crwdns329040:0crwdne329040:0", + "description": "Check if a value is infinite." + }, + "math.isinf.param-name.x": { + "message": "crwdns329042:0crwdne329042:0", + "description": "(parameter name) A number." + }, + "math.isinf.param-doc.x": { + "message": "crwdns329044:0crwdne329044:0", + "description": "Parameter docs" + }, + "math.isnan": { + "message": "crwdns329046:0crwdne329046:0", + "description": "(function name) Check if a value is not-a-number (NaN)." + }, + "math.isnan.summary": { + "message": "crwdns329048:0crwdne329048:0", + "description": "Check if a value is not-a-number (NaN)." + }, + "math.isnan.param-name.x": { + "message": "crwdns329050:0crwdne329050:0", + "description": "(parameter name) A number" + }, + "math.isnan.param-doc.x": { + "message": "crwdns329052:0crwdne329052:0", + "description": "Parameter docs" + }, + "math.ldexp": { + "message": "crwdns329054:0crwdne329054:0", + "description": "(function name) Calculate ``x * (2**exp)``." + }, + "math.ldexp.summary": { + "message": "crwdns329056:0crwdne329056:0", + "description": "Calculate ``x * (2**exp)``." + }, + "math.ldexp.param-name.exp": { + "message": "crwdns329058:0crwdne329058:0", + "description": "(parameter name) Integer exponent" + }, + "math.ldexp.param-doc.exp": { + "message": "crwdns329060:0crwdne329060:0", + "description": "Parameter docs" + }, + "math.ldexp.param-name.x": { + "message": "crwdns329062:0crwdne329062:0", + "description": "(parameter name) A number" + }, + "math.ldexp.param-doc.x": { + "message": "crwdns329064:0crwdne329064:0", + "description": "Parameter docs" + }, + "math.log": { + "message": "crwdns329066:0crwdne329066:0", + "description": "(function name) Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.summary": { + "message": "crwdns329068:0{{x}}crwdne329068:0", + "description": "Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.param-name.base": { + "message": "crwdns329070:0crwdne329070:0", + "description": "(parameter name) The base to use" + }, + "math.log.param-doc.base": { + "message": "crwdns329072:0crwdne329072:0", + "description": "Parameter docs" + }, + "math.log.param-name.x": { + "message": "crwdns329074:0crwdne329074:0", + "description": "(parameter name) A number" + }, + "math.log.param-doc.x": { + "message": "crwdns329076:0crwdne329076:0", + "description": "Parameter docs" + }, + "math.modf": { + "message": "crwdns329078:0crwdne329078:0", + "description": "(function name) Calculate the fractional and integral parts of ``x``." + }, + "math.modf.summary": { + "message": "crwdns329080:0{{x}}crwdne329080:0", + "description": "Calculate the fractional and integral parts of ``x``." + }, + "math.modf.param-name.x": { + "message": "crwdns329082:0crwdne329082:0", + "description": "(parameter name) A number" + }, + "math.modf.param-doc.x": { + "message": "crwdns329084:0crwdne329084:0", + "description": "Parameter docs" + }, + "math.pow": { + "message": "crwdns329086:0crwdne329086:0", + "description": "(function name) Returns ``x`` to the power of ``y``." + }, + "math.pow.summary": { + "message": "crwdns329088:0{{x}}crwdnd329088:0{{y}}crwdne329088:0", + "description": "Returns ``x`` to the power of ``y``." + }, + "math.pow.param-name.x": { + "message": "crwdns329090:0crwdne329090:0", + "description": "(parameter name) A number" + }, + "math.pow.param-doc.x": { + "message": "crwdns329092:0crwdne329092:0", + "description": "Parameter docs" + }, + "math.pow.param-name.y": { + "message": "crwdns329094:0crwdne329094:0", + "description": "(parameter name) The exponent" + }, + "math.pow.param-doc.y": { + "message": "crwdns329096:0crwdne329096:0", + "description": "Parameter docs" + }, + "math.radians": { + "message": "crwdns329098:0crwdne329098:0", + "description": "(function name) Convert a degrees to radians." + }, + "math.radians.summary": { + "message": "crwdns329100:0crwdne329100:0", + "description": "Convert a degrees to radians." + }, + "math.radians.param-name.x": { + "message": "crwdns329102:0crwdne329102:0", + "description": "(parameter name) A value in degrees" + }, + "math.radians.param-doc.x": { + "message": "crwdns329104:0crwdne329104:0", + "description": "Parameter docs" + }, + "math.sin": { + "message": "crwdns329106:0crwdne329106:0", + "description": "(function name) Calculate the sine of ``x``." + }, + "math.sin.summary": { + "message": "crwdns329108:0{{x}}crwdne329108:0", + "description": "Calculate the sine of ``x``." + }, + "math.sin.param-name.x": { + "message": "crwdns329110:0crwdne329110:0", + "description": "(parameter name) A number" + }, + "math.sin.param-doc.x": { + "message": "crwdns329112:0crwdne329112:0", + "description": "Parameter docs" + }, + "math.sqrt": { + "message": "crwdns329114:0crwdne329114:0", + "description": "(function name) Calculate the square root of ``x``." + }, + "math.sqrt.summary": { + "message": "crwdns329116:0{{x}}crwdne329116:0", + "description": "Calculate the square root of ``x``." + }, + "math.sqrt.param-name.x": { + "message": "crwdns329118:0crwdne329118:0", + "description": "(parameter name) A number" + }, + "math.sqrt.param-doc.x": { + "message": "crwdns329120:0crwdne329120:0", + "description": "Parameter docs" + }, + "math.tan": { + "message": "crwdns329122:0crwdne329122:0", + "description": "(function name) Calculate the tangent of ``x``." + }, + "math.tan.summary": { + "message": "crwdns329124:0{{x}}crwdne329124:0", + "description": "Calculate the tangent of ``x``." + }, + "math.tan.param-name.x": { + "message": "crwdns329126:0crwdne329126:0", + "description": "(parameter name) A number" + }, + "math.tan.param-doc.x": { + "message": "crwdns329128:0crwdne329128:0", + "description": "Parameter docs" + }, + "math.trunc": { + "message": "crwdns329130:0crwdne329130:0", + "description": "(function name) Round a number towards 0." + }, + "math.trunc.summary": { + "message": "crwdns329132:0crwdne329132:0", + "description": "Round a number towards 0." + }, + "math.trunc.param-name.x": { + "message": "crwdns329134:0crwdne329134:0", + "description": "(parameter name) A number" + }, + "math.trunc.param-doc.x": { + "message": "crwdns329136:0crwdne329136:0", + "description": "Parameter docs" + }, + "math.e": { + "message": "crwdns329138:0crwdne329138:0", + "description": "(field name) Base of the natural logarithm" + }, + "math.e.summary": { + "message": "crwdns329140:0crwdne329140:0", + "description": "Base of the natural logarithm" + }, + "math.pi": { + "message": "crwdns329142:0crwdne329142:0", + "description": "(field name) The ratio of a circle's circumference to its diameter" + }, + "math.pi.summary": { + "message": "crwdns329144:0crwdne329144:0", + "description": "The ratio of a circle's circumference to its diameter" + }, + "microbit": { + "message": "crwdns329146:0crwdne329146:0", + "description": "(module name) Pins, images, sounds, temperature and volume." + }, + "microbit.summary": { + "message": "crwdns329148:0crwdne329148:0", + "description": "Pins, images, sounds, temperature and volume." + }, + "microbit.run_every": { + "message": "crwdns329150:0crwdne329150:0", + "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.summary": { + "message": "crwdns335788:0crwdne335788:0", + "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.param-name.callback": { + "message": "crwdns329154:0crwdne329154:0", + "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." + }, + "microbit.run_every.param-doc.callback": { + "message": "crwdns335790:0crwdne335790:0", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.days": { + "message": "crwdns329158:0crwdne329158:0", + "description": "(parameter name) Sets the day mark for the scheduling." + }, + "microbit.run_every.param-doc.days": { + "message": "crwdns335792:0crwdne335792:0", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.h": { + "message": "crwdns329162:0crwdne329162:0", + "description": "(parameter name) Sets the hour mark for the scheduling." + }, + "microbit.run_every.param-doc.h": { + "message": "crwdns335794:0crwdne335794:0", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.min": { + "message": "crwdns329166:0crwdne329166:0", + "description": "(parameter name) Sets the minute mark for the scheduling." + }, + "microbit.run_every.param-doc.min": { + "message": "crwdns335796:0crwdne335796:0", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.ms": { + "message": "crwdns329170:0crwdne329170:0", + "description": "(parameter name) Sets the millisecond mark for the scheduling." + }, + "microbit.run_every.param-doc.ms": { + "message": "crwdns335798:0crwdne335798:0", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.s": { + "message": "crwdns329174:0crwdne329174:0", + "description": "(parameter name) Sets the second mark for the scheduling." + }, + "microbit.run_every.param-doc.s": { + "message": "crwdns335800:0crwdne335800:0", + "description": "Parameter docs" + }, + "microbit.panic": { + "message": "crwdns329178:0crwdne329178:0", + "description": "(function name) Enter a panic mode." + }, + "microbit.panic.summary": { + "message": "crwdns329180:0crwdne329180:0", + "description": "Enter a panic mode." + }, + "microbit.panic.param-name.n": { + "message": "crwdns329182:0crwdne329182:0", + "description": "(parameter name) An arbitrary integer <= 255 to indicate a status." + }, + "microbit.panic.param-doc.n": { + "message": "crwdns329184:0crwdne329184:0", + "description": "Parameter docs" + }, + "microbit.reset": { + "message": "crwdns329186:0crwdne329186:0", + "description": "(function name) Restart the board." + }, + "microbit.reset.summary": { + "message": "crwdns329188:0crwdne329188:0", + "description": "Restart the board." + }, + "microbit.scale-1": { + "message": "crwdns336076:0crwdne336076:0", + "description": "(function name) Converts a value from a range to an integer range." + }, + "microbit.scale-1.summary": { + "message": "crwdns336078:0crwdne336078:0", + "description": "Converts a value from a range to an integer range." + }, + "microbit.scale-1.param-name.from_": { + "message": "crwdns336080:0crwdne336080:0", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-1.param-doc.from_": { + "message": "crwdns336082:0crwdne336082:0", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.to": { + "message": "crwdns336084:0crwdne336084:0", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-1.param-doc.to": { + "message": "crwdns336086:0crwdne336086:0", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.value": { + "message": "crwdns336088:0crwdne336088:0", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-1.param-doc.value": { + "message": "crwdns336090:0crwdne336090:0", + "description": "Parameter docs" + }, + "microbit.scale-2": { + "message": "crwdns336092:0crwdne336092:0", + "description": "(function name) Converts a value from a range to a floating point range." + }, + "microbit.scale-2.summary": { + "message": "crwdns336094:0crwdne336094:0", + "description": "Converts a value from a range to a floating point range." + }, + "microbit.scale-2.param-name.from_": { + "message": "crwdns336096:0crwdne336096:0", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-2.param-doc.from_": { + "message": "crwdns336098:0crwdne336098:0", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.to": { + "message": "crwdns336100:0crwdne336100:0", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-2.param-doc.to": { + "message": "crwdns336102:0crwdne336102:0", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.value": { + "message": "crwdns336104:0crwdne336104:0", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-2.param-doc.value": { + "message": "crwdns336106:0crwdne336106:0", + "description": "Parameter docs" + }, + "microbit.sleep": { + "message": "crwdns329190:0crwdne329190:0", + "description": "(function name) Wait for ``n`` milliseconds." + }, + "microbit.sleep.summary": { + "message": "crwdns329192:0{{n}}crwdne329192:0", + "description": "Wait for ``n`` milliseconds." + }, + "microbit.sleep.param-name.n": { + "message": "crwdns329194:0crwdne329194:0", + "description": "(parameter name) The number of milliseconds to wait" + }, + "microbit.sleep.param-doc.n": { + "message": "crwdns329196:0crwdne329196:0", + "description": "Parameter docs" + }, + "microbit.running_time": { + "message": "crwdns329198:0crwdne329198:0", + "description": "(function name) Get the running time of the board." + }, + "microbit.running_time.summary": { + "message": "crwdns329200:0crwdne329200:0", + "description": "Get the running time of the board." + }, + "microbit.temperature": { + "message": "crwdns329202:0crwdne329202:0", + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.temperature.summary": { + "message": "crwdns329204:0crwdne329204:0", + "description": "Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.set_volume": { + "message": "crwdns329206:0crwdne329206:0", + "description": "(function name) Sets the volume." + }, + "microbit.set_volume.summary": { + "message": "crwdns329208:0crwdne329208:0", + "description": "Sets the volume." + }, + "microbit.set_volume.param-name.v": { + "message": "crwdns329210:0crwdne329210:0", + "description": "(parameter name) a value between 0 (low) and 255 (high)." + }, + "microbit.set_volume.param-doc.v": { + "message": "crwdns329212:0crwdne329212:0", + "description": "Parameter docs" + }, + "microbit.Button": { + "message": "crwdns329214:0crwdne329214:0", + "description": "(class name) The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.summary": { + "message": "crwdns329216:0{{button_a}}crwdnd329216:0{{button_b}}crwdne329216:0", + "description": "The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.is_pressed": { + "message": "crwdns329218:0crwdne329218:0", + "description": "(function name) Check if the button is pressed." + }, + "microbit.Button.is_pressed.summary": { + "message": "crwdns329220:0crwdne329220:0", + "description": "Check if the button is pressed." + }, + "microbit.Button.was_pressed": { + "message": "crwdns329222:0crwdne329222:0", + "description": "(function name) Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.was_pressed.summary": { + "message": "crwdns329224:0crwdne329224:0", + "description": "Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.get_presses": { + "message": "crwdns329226:0crwdne329226:0", + "description": "(function name) Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.Button.get_presses.summary": { + "message": "crwdns329228:0crwdne329228:0", + "description": "Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.button_a": { + "message": "crwdns329230:0crwdne329230:0", + "description": "(field name) The left button ``Button`` object." + }, + "microbit.button_a.summary": { + "message": "crwdns329232:0{{Button}}crwdne329232:0", + "description": "The left button ``Button`` object." + }, + "microbit.button_b": { + "message": "crwdns329234:0crwdne329234:0", + "description": "(field name) The right button ``Button`` object." + }, + "microbit.button_b.summary": { + "message": "crwdns329236:0{{Button}}crwdne329236:0", + "description": "The right button ``Button`` object." + }, + "microbit.MicroBitDigitalPin": { + "message": "crwdns329238:0crwdne329238:0", + "description": "(class name) A digital pin." + }, + "microbit.MicroBitDigitalPin.summary": { + "message": "crwdns329240:0crwdne329240:0", + "description": "A digital pin." + }, + "microbit.MicroBitDigitalPin.read_digital": { + "message": "crwdns329242:0crwdne329242:0", + "description": "(function name) Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.read_digital.summary": { + "message": "crwdns329244:0crwdne329244:0", + "description": "Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital": { + "message": "crwdns329246:0crwdne329246:0", + "description": "(function name) Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.summary": { + "message": "crwdns329248:0crwdne329248:0", + "description": "Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.param-name.value": { + "message": "crwdns329250:0crwdne329250:0", + "description": "(parameter name) 1 to set the pin high or 0 to set the pin low" + }, + "microbit.MicroBitDigitalPin.write_digital.param-doc.value": { + "message": "crwdns329252:0crwdne329252:0", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_pull": { + "message": "crwdns329254:0crwdne329254:0", + "description": "(function name) Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.summary": { + "message": "crwdns329256:0{{PULL_UP}}crwdnd329256:0{{PULL_DOWN}}crwdnd329256:0{{NO_PULL}}crwdne329256:0", + "description": "Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-name.value": { + "message": "crwdns329258:0crwdne329258:0", + "description": "(parameter name) The pull state from the relevant pin, e.g. ``pin0.PULL_UP``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-doc.value": { + "message": "crwdns329260:0{{pin0.PULL_UP}}crwdne329260:0", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.get_pull": { + "message": "crwdns329262:0crwdne329262:0", + "description": "(function name) Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_pull.summary": { + "message": "crwdns329264:0crwdne329264:0", + "description": "Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_mode": { + "message": "crwdns329266:0crwdne329266:0", + "description": "(function name) Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.get_mode.summary": { + "message": "crwdns329268:0crwdne329268:0", + "description": "Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.write_analog": { + "message": "crwdns329270:0crwdne329270:0", + "description": "(function name) Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.summary": { + "message": "crwdns329272:0{{value}}crwdne329272:0", + "description": "Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.param-name.value": { + "message": "crwdns329274:0crwdne329274:0", + "description": "(parameter name) An integer or a floating point number between 0 (0% duty cycle) and 1023 (100% duty)." + }, + "microbit.MicroBitDigitalPin.write_analog.param-doc.value": { + "message": "crwdns329276:0crwdne329276:0", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period": { + "message": "crwdns329278:0crwdne329278:0", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.summary": { + "message": "crwdns329280:0{{period}}crwdne329280:0", + "description": "Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-name.period": { + "message": "crwdns329282:0crwdne329282:0", + "description": "(parameter name) The period in milliseconds with a minimum valid value of 1ms." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-doc.period": { + "message": "crwdns329284:0crwdne329284:0", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds": { + "message": "crwdns329286:0crwdne329286:0", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.summary": { + "message": "crwdns329288:0{{period}}crwdne329288:0", + "description": "Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-name.period": { + "message": "crwdns329290:0crwdne329290:0", + "description": "(parameter name) The period in microseconds with a minimum valid value of 256µs." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-doc.period": { + "message": "crwdns329292:0crwdne329292:0", + "description": "Parameter docs" + }, + "microbit.MicroBitAnalogDigitalPin": { + "message": "crwdns329294:0crwdne329294:0", + "description": "(class name) A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.summary": { + "message": "crwdns329296:0crwdne329296:0", + "description": "A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog": { + "message": "crwdns329298:0crwdne329298:0", + "description": "(function name) Read the voltage applied to the pin." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog.summary": { + "message": "crwdns329300:0crwdne329300:0", + "description": "Read the voltage applied to the pin." + }, + "microbit.MicroBitTouchPin": { + "message": "crwdns329302:0crwdne329302:0", + "description": "(class name) A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.summary": { + "message": "crwdns329304:0crwdne329304:0", + "description": "A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.is_touched": { + "message": "crwdns329306:0crwdne329306:0", + "description": "(function name) Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.is_touched.summary": { + "message": "crwdns329308:0crwdne329308:0", + "description": "Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.set_touch_mode": { + "message": "crwdns329310:0crwdne329310:0", + "description": "(function name) Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.summary": { + "message": "crwdns329312:0crwdne329312:0", + "description": "Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-name.value": { + "message": "crwdns329314:0crwdne329314:0", + "description": "(parameter name) ``CAPACITIVE`` or ``RESISTIVE`` from the relevant pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-doc.value": { + "message": "crwdns329316:0{{CAPACITIVE}}crwdnd329316:0{{RESISTIVE}}crwdne329316:0", + "description": "Parameter docs" + }, + "microbit.pin0": { + "message": "crwdns329318:0crwdne329318:0", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin0.summary": { + "message": "crwdns329320:0crwdne329320:0", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin1": { + "message": "crwdns329322:0crwdne329322:0", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin1.summary": { + "message": "crwdns329324:0crwdne329324:0", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin2": { + "message": "crwdns329326:0crwdne329326:0", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin2.summary": { + "message": "crwdns329328:0crwdne329328:0", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin3": { + "message": "crwdns329330:0crwdne329330:0", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin3.summary": { + "message": "crwdns329332:0crwdne329332:0", + "description": "Pin with digital and analog features." + }, + "microbit.pin4": { + "message": "crwdns329334:0crwdne329334:0", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin4.summary": { + "message": "crwdns329336:0crwdne329336:0", + "description": "Pin with digital and analog features." + }, + "microbit.pin5": { + "message": "crwdns329338:0crwdne329338:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin5.summary": { + "message": "crwdns329340:0crwdne329340:0", + "description": "Pin with digital features." + }, + "microbit.pin6": { + "message": "crwdns329342:0crwdne329342:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin6.summary": { + "message": "crwdns329344:0crwdne329344:0", + "description": "Pin with digital features." + }, + "microbit.pin7": { + "message": "crwdns329346:0crwdne329346:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin7.summary": { + "message": "crwdns329348:0crwdne329348:0", + "description": "Pin with digital features." + }, + "microbit.pin8": { + "message": "crwdns329350:0crwdne329350:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin8.summary": { + "message": "crwdns329352:0crwdne329352:0", + "description": "Pin with digital features." + }, + "microbit.pin9": { + "message": "crwdns329354:0crwdne329354:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin9.summary": { + "message": "crwdns329356:0crwdne329356:0", + "description": "Pin with digital features." + }, + "microbit.pin10": { + "message": "crwdns329358:0crwdne329358:0", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin10.summary": { + "message": "crwdns329360:0crwdne329360:0", + "description": "Pin with digital and analog features." + }, + "microbit.pin11": { + "message": "crwdns329362:0crwdne329362:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin11.summary": { + "message": "crwdns329364:0crwdne329364:0", + "description": "Pin with digital features." + }, + "microbit.pin12": { + "message": "crwdns329366:0crwdne329366:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin12.summary": { + "message": "crwdns329368:0crwdne329368:0", + "description": "Pin with digital features." + }, + "microbit.pin13": { + "message": "crwdns329370:0crwdne329370:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin13.summary": { + "message": "crwdns329372:0crwdne329372:0", + "description": "Pin with digital features." + }, + "microbit.pin14": { + "message": "crwdns329374:0crwdne329374:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin14.summary": { + "message": "crwdns329376:0crwdne329376:0", + "description": "Pin with digital features." + }, + "microbit.pin15": { + "message": "crwdns329378:0crwdne329378:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin15.summary": { + "message": "crwdns329380:0crwdne329380:0", + "description": "Pin with digital features." + }, + "microbit.pin16": { + "message": "crwdns329382:0crwdne329382:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin16.summary": { + "message": "crwdns329384:0crwdne329384:0", + "description": "Pin with digital features." + }, + "microbit.pin19": { + "message": "crwdns329386:0crwdne329386:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin19.summary": { + "message": "crwdns329388:0crwdne329388:0", + "description": "Pin with digital features." + }, + "microbit.pin20": { + "message": "crwdns329390:0crwdne329390:0", + "description": "(field name) Pin with digital features." + }, + "microbit.pin20.summary": { + "message": "crwdns329392:0crwdne329392:0", + "description": "Pin with digital features." + }, + "microbit.pin_logo": { + "message": "crwdns329394:0crwdne329394:0", + "description": "(field name) A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_logo.summary": { + "message": "crwdns329396:0crwdne329396:0", + "description": "A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_speaker": { + "message": "crwdns329398:0crwdne329398:0", + "description": "(field name) A pin to address the micro:bit speaker." + }, + "microbit.pin_speaker.summary": { + "message": "crwdns329400:0crwdne329400:0", + "description": "A pin to address the micro:bit speaker." + }, + "microbit.Image": { + "message": "crwdns329402:0crwdne329402:0", + "description": "(class name) An image to show on the micro:bit LED display." + }, + "microbit.Image.summary": { + "message": "crwdns329404:0crwdne329404:0", + "description": "An image to show on the micro:bit LED display." + }, + "microbit.Image.HEART": { + "message": "crwdns329406:0crwdne329406:0", + "description": "(field name) Heart image." + }, + "microbit.Image.HEART.summary": { + "message": "crwdns329408:0crwdne329408:0", + "description": "Heart image." + }, + "microbit.Image.HEART_SMALL": { + "message": "crwdns329410:0crwdne329410:0", + "description": "(field name) Small heart image." + }, + "microbit.Image.HEART_SMALL.summary": { + "message": "crwdns329412:0crwdne329412:0", + "description": "Small heart image." + }, + "microbit.Image.HAPPY": { + "message": "crwdns329414:0crwdne329414:0", + "description": "(field name) Happy face image." + }, + "microbit.Image.HAPPY.summary": { + "message": "crwdns329416:0crwdne329416:0", + "description": "Happy face image." + }, + "microbit.Image.SMILE": { + "message": "crwdns329418:0crwdne329418:0", + "description": "(field name) Smiling face image." + }, + "microbit.Image.SMILE.summary": { + "message": "crwdns329420:0crwdne329420:0", + "description": "Smiling face image." + }, + "microbit.Image.SAD": { + "message": "crwdns329422:0crwdne329422:0", + "description": "(field name) Sad face image." + }, + "microbit.Image.SAD.summary": { + "message": "crwdns329424:0crwdne329424:0", + "description": "Sad face image." + }, + "microbit.Image.CONFUSED": { + "message": "crwdns329426:0crwdne329426:0", + "description": "(field name) Confused face image." + }, + "microbit.Image.CONFUSED.summary": { + "message": "crwdns329428:0crwdne329428:0", + "description": "Confused face image." + }, + "microbit.Image.ANGRY": { + "message": "crwdns329430:0crwdne329430:0", + "description": "(field name) Angry face image." + }, + "microbit.Image.ANGRY.summary": { + "message": "crwdns329432:0crwdne329432:0", + "description": "Angry face image." + }, + "microbit.Image.ASLEEP": { + "message": "crwdns329434:0crwdne329434:0", + "description": "(field name) Sleeping face image." + }, + "microbit.Image.ASLEEP.summary": { + "message": "crwdns329436:0crwdne329436:0", + "description": "Sleeping face image." + }, + "microbit.Image.SURPRISED": { + "message": "crwdns329438:0crwdne329438:0", + "description": "(field name) Surprised face image." + }, + "microbit.Image.SURPRISED.summary": { + "message": "crwdns329440:0crwdne329440:0", + "description": "Surprised face image." + }, + "microbit.Image.SILLY": { + "message": "crwdns329442:0crwdne329442:0", + "description": "(field name) Silly face image." + }, + "microbit.Image.SILLY.summary": { + "message": "crwdns329444:0crwdne329444:0", + "description": "Silly face image." + }, + "microbit.Image.FABULOUS": { + "message": "crwdns329446:0crwdne329446:0", + "description": "(field name) Sunglasses face image." + }, + "microbit.Image.FABULOUS.summary": { + "message": "crwdns329448:0crwdne329448:0", + "description": "Sunglasses face image." + }, + "microbit.Image.MEH": { + "message": "crwdns329450:0crwdne329450:0", + "description": "(field name) Unimpressed face image." + }, + "microbit.Image.MEH.summary": { + "message": "crwdns329452:0crwdne329452:0", + "description": "Unimpressed face image." + }, + "microbit.Image.YES": { + "message": "crwdns329454:0crwdne329454:0", + "description": "(field name) Tick image." + }, + "microbit.Image.YES.summary": { + "message": "crwdns329456:0crwdne329456:0", + "description": "Tick image." + }, + "microbit.Image.NO": { + "message": "crwdns329458:0crwdne329458:0", + "description": "(field name) Cross image." + }, + "microbit.Image.NO.summary": { + "message": "crwdns329460:0crwdne329460:0", + "description": "Cross image." + }, + "microbit.Image.CLOCK12": { + "message": "crwdns329462:0crwdne329462:0", + "description": "(field name) Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK12.summary": { + "message": "crwdns329464:0crwdne329464:0", + "description": "Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK11": { + "message": "crwdns329466:0crwdne329466:0", + "description": "(field name) Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK11.summary": { + "message": "crwdns329468:0crwdne329468:0", + "description": "Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK10": { + "message": "crwdns329470:0crwdne329470:0", + "description": "(field name) Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK10.summary": { + "message": "crwdns329472:0crwdne329472:0", + "description": "Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK9": { + "message": "crwdns329474:0crwdne329474:0", + "description": "(field name) Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK9.summary": { + "message": "crwdns329476:0crwdne329476:0", + "description": "Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK8": { + "message": "crwdns329478:0crwdne329478:0", + "description": "(field name) Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK8.summary": { + "message": "crwdns329480:0crwdne329480:0", + "description": "Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK7": { + "message": "crwdns329482:0crwdne329482:0", + "description": "(field name) Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK7.summary": { + "message": "crwdns329484:0crwdne329484:0", + "description": "Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK6": { + "message": "crwdns329486:0crwdne329486:0", + "description": "(field name) Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK6.summary": { + "message": "crwdns329488:0crwdne329488:0", + "description": "Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK5": { + "message": "crwdns329490:0crwdne329490:0", + "description": "(field name) Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK5.summary": { + "message": "crwdns329492:0crwdne329492:0", + "description": "Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK4": { + "message": "crwdns329494:0crwdne329494:0", + "description": "(field name) Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK4.summary": { + "message": "crwdns329496:0crwdne329496:0", + "description": "Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK3": { + "message": "crwdns329498:0crwdne329498:0", + "description": "(field name) Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK3.summary": { + "message": "crwdns329500:0crwdne329500:0", + "description": "Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK2": { + "message": "crwdns329502:0crwdne329502:0", + "description": "(field name) Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK2.summary": { + "message": "crwdns329504:0crwdne329504:0", + "description": "Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK1": { + "message": "crwdns329506:0crwdne329506:0", + "description": "(field name) Image with line pointing to 1 o'clock." + }, + "microbit.Image.CLOCK1.summary": { + "message": "crwdns329508:0crwdne329508:0", + "description": "Image with line pointing to 1 o'clock." + }, + "microbit.Image.ARROW_N": { + "message": "crwdns329510:0crwdne329510:0", + "description": "(field name) Image of arrow pointing north." + }, + "microbit.Image.ARROW_N.summary": { + "message": "crwdns329512:0crwdne329512:0", + "description": "Image of arrow pointing north." + }, + "microbit.Image.ARROW_NE": { + "message": "crwdns329514:0crwdne329514:0", + "description": "(field name) Image of arrow pointing north east." + }, + "microbit.Image.ARROW_NE.summary": { + "message": "crwdns329516:0crwdne329516:0", + "description": "Image of arrow pointing north east." + }, + "microbit.Image.ARROW_E": { + "message": "crwdns329518:0crwdne329518:0", + "description": "(field name) Image of arrow pointing east." + }, + "microbit.Image.ARROW_E.summary": { + "message": "crwdns329520:0crwdne329520:0", + "description": "Image of arrow pointing east." + }, + "microbit.Image.ARROW_SE": { + "message": "crwdns329522:0crwdne329522:0", + "description": "(field name) Image of arrow pointing south east." + }, + "microbit.Image.ARROW_SE.summary": { + "message": "crwdns329524:0crwdne329524:0", + "description": "Image of arrow pointing south east." + }, + "microbit.Image.ARROW_S": { + "message": "crwdns329526:0crwdne329526:0", + "description": "(field name) Image of arrow pointing south." + }, + "microbit.Image.ARROW_S.summary": { + "message": "crwdns329528:0crwdne329528:0", + "description": "Image of arrow pointing south." + }, + "microbit.Image.ARROW_SW": { + "message": "crwdns329530:0crwdne329530:0", + "description": "(field name) Image of arrow pointing south west." + }, + "microbit.Image.ARROW_SW.summary": { + "message": "crwdns329532:0crwdne329532:0", + "description": "Image of arrow pointing south west." + }, + "microbit.Image.ARROW_W": { + "message": "crwdns329534:0crwdne329534:0", + "description": "(field name) Image of arrow pointing west." + }, + "microbit.Image.ARROW_W.summary": { + "message": "crwdns329536:0crwdne329536:0", + "description": "Image of arrow pointing west." + }, + "microbit.Image.ARROW_NW": { + "message": "crwdns329538:0crwdne329538:0", + "description": "(field name) Image of arrow pointing north west." + }, + "microbit.Image.ARROW_NW.summary": { + "message": "crwdns329540:0crwdne329540:0", + "description": "Image of arrow pointing north west." + }, + "microbit.Image.TRIANGLE": { + "message": "crwdns329542:0crwdne329542:0", + "description": "(field name) Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE.summary": { + "message": "crwdns329544:0crwdne329544:0", + "description": "Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE_LEFT": { + "message": "crwdns329546:0crwdne329546:0", + "description": "(field name) Image of a triangle in the left corner." + }, + "microbit.Image.TRIANGLE_LEFT.summary": { + "message": "crwdns329548:0crwdne329548:0", + "description": "Image of a triangle in the left corner." + }, + "microbit.Image.CHESSBOARD": { + "message": "crwdns329550:0crwdne329550:0", + "description": "(field name) Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.CHESSBOARD.summary": { + "message": "crwdns329552:0crwdne329552:0", + "description": "Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.DIAMOND": { + "message": "crwdns329554:0crwdne329554:0", + "description": "(field name) Diamond image." + }, + "microbit.Image.DIAMOND.summary": { + "message": "crwdns329556:0crwdne329556:0", + "description": "Diamond image." + }, + "microbit.Image.DIAMOND_SMALL": { + "message": "crwdns329558:0crwdne329558:0", + "description": "(field name) Small diamond image." + }, + "microbit.Image.DIAMOND_SMALL.summary": { + "message": "crwdns329560:0crwdne329560:0", + "description": "Small diamond image." + }, + "microbit.Image.SQUARE": { + "message": "crwdns329562:0crwdne329562:0", + "description": "(field name) Square image." + }, + "microbit.Image.SQUARE.summary": { + "message": "crwdns329564:0crwdne329564:0", + "description": "Square image." + }, + "microbit.Image.SQUARE_SMALL": { + "message": "crwdns329566:0crwdne329566:0", + "description": "(field name) Small square image." + }, + "microbit.Image.SQUARE_SMALL.summary": { + "message": "crwdns329568:0crwdne329568:0", + "description": "Small square image." + }, + "microbit.Image.RABBIT": { + "message": "crwdns329570:0crwdne329570:0", + "description": "(field name) Rabbit image." + }, + "microbit.Image.RABBIT.summary": { + "message": "crwdns329572:0crwdne329572:0", + "description": "Rabbit image." + }, + "microbit.Image.COW": { + "message": "crwdns329574:0crwdne329574:0", + "description": "(field name) Cow image." + }, + "microbit.Image.COW.summary": { + "message": "crwdns329576:0crwdne329576:0", + "description": "Cow image." + }, + "microbit.Image.MUSIC_CROTCHET": { + "message": "crwdns329578:0crwdne329578:0", + "description": "(field name) Crotchet note image." + }, + "microbit.Image.MUSIC_CROTCHET.summary": { + "message": "crwdns329580:0crwdne329580:0", + "description": "Crotchet note image." + }, + "microbit.Image.MUSIC_QUAVER": { + "message": "crwdns329582:0crwdne329582:0", + "description": "(field name) Quaver note image." + }, + "microbit.Image.MUSIC_QUAVER.summary": { + "message": "crwdns329584:0crwdne329584:0", + "description": "Quaver note image." + }, + "microbit.Image.MUSIC_QUAVERS": { + "message": "crwdns329586:0crwdne329586:0", + "description": "(field name) Pair of quavers note image." + }, + "microbit.Image.MUSIC_QUAVERS.summary": { + "message": "crwdns329588:0crwdne329588:0", + "description": "Pair of quavers note image." + }, + "microbit.Image.PITCHFORK": { + "message": "crwdns329590:0crwdne329590:0", + "description": "(field name) Pitchfork image." + }, + "microbit.Image.PITCHFORK.summary": { + "message": "crwdns329592:0crwdne329592:0", + "description": "Pitchfork image." + }, + "microbit.Image.XMAS": { + "message": "crwdns329594:0crwdne329594:0", + "description": "(field name) Christmas tree image." + }, + "microbit.Image.XMAS.summary": { + "message": "crwdns329596:0crwdne329596:0", + "description": "Christmas tree image." + }, + "microbit.Image.PACMAN": { + "message": "crwdns329598:0crwdne329598:0", + "description": "(field name) Pac-Man arcade character image." + }, + "microbit.Image.PACMAN.summary": { + "message": "crwdns329600:0crwdne329600:0", + "description": "Pac-Man arcade character image." + }, + "microbit.Image.TARGET": { + "message": "crwdns329602:0crwdne329602:0", + "description": "(field name) Target image." + }, + "microbit.Image.TARGET.summary": { + "message": "crwdns329604:0crwdne329604:0", + "description": "Target image." + }, + "microbit.Image.TSHIRT": { + "message": "crwdns329606:0crwdne329606:0", + "description": "(field name) T-shirt image." + }, + "microbit.Image.TSHIRT.summary": { + "message": "crwdns329608:0crwdne329608:0", + "description": "T-shirt image." + }, + "microbit.Image.ROLLERSKATE": { + "message": "crwdns329610:0crwdne329610:0", + "description": "(field name) Rollerskate image." + }, + "microbit.Image.ROLLERSKATE.summary": { + "message": "crwdns329612:0crwdne329612:0", + "description": "Rollerskate image." + }, + "microbit.Image.DUCK": { + "message": "crwdns329614:0crwdne329614:0", + "description": "(field name) Duck image." + }, + "microbit.Image.DUCK.summary": { + "message": "crwdns329616:0crwdne329616:0", + "description": "Duck image." + }, + "microbit.Image.HOUSE": { + "message": "crwdns329618:0crwdne329618:0", + "description": "(field name) House image." + }, + "microbit.Image.HOUSE.summary": { + "message": "crwdns329620:0crwdne329620:0", + "description": "House image." + }, + "microbit.Image.TORTOISE": { + "message": "crwdns329622:0crwdne329622:0", + "description": "(field name) Tortoise image." + }, + "microbit.Image.TORTOISE.summary": { + "message": "crwdns329624:0crwdne329624:0", + "description": "Tortoise image." + }, + "microbit.Image.BUTTERFLY": { + "message": "crwdns329626:0crwdne329626:0", + "description": "(field name) Butterfly image." + }, + "microbit.Image.BUTTERFLY.summary": { + "message": "crwdns329628:0crwdne329628:0", + "description": "Butterfly image." + }, + "microbit.Image.STICKFIGURE": { + "message": "crwdns329630:0crwdne329630:0", + "description": "(field name) Stick figure image." + }, + "microbit.Image.STICKFIGURE.summary": { + "message": "crwdns329632:0crwdne329632:0", + "description": "Stick figure image." + }, + "microbit.Image.GHOST": { + "message": "crwdns329634:0crwdne329634:0", + "description": "(field name) Ghost image." + }, + "microbit.Image.GHOST.summary": { + "message": "crwdns329636:0crwdne329636:0", + "description": "Ghost image." + }, + "microbit.Image.SWORD": { + "message": "crwdns329638:0crwdne329638:0", + "description": "(field name) Sword image." + }, + "microbit.Image.SWORD.summary": { + "message": "crwdns329640:0crwdne329640:0", + "description": "Sword image." + }, + "microbit.Image.GIRAFFE": { + "message": "crwdns329642:0crwdne329642:0", + "description": "(field name) Giraffe image." + }, + "microbit.Image.GIRAFFE.summary": { + "message": "crwdns329644:0crwdne329644:0", + "description": "Giraffe image." + }, + "microbit.Image.SKULL": { + "message": "crwdns329646:0crwdne329646:0", + "description": "(field name) Skull image." + }, + "microbit.Image.SKULL.summary": { + "message": "crwdns329648:0crwdne329648:0", + "description": "Skull image." + }, + "microbit.Image.UMBRELLA": { + "message": "crwdns329650:0crwdne329650:0", + "description": "(field name) Umbrella image." + }, + "microbit.Image.UMBRELLA.summary": { + "message": "crwdns329652:0crwdne329652:0", + "description": "Umbrella image." + }, + "microbit.Image.SNAKE": { + "message": "crwdns329654:0crwdne329654:0", + "description": "(field name) Snake image." + }, + "microbit.Image.SNAKE.summary": { + "message": "crwdns329656:0crwdne329656:0", + "description": "Snake image." + }, + "microbit.Image.SCISSORS": { + "message": "crwdns335818:0crwdne335818:0", + "description": "(field name) Scissors image." + }, + "microbit.Image.SCISSORS.summary": { + "message": "crwdns335820:0crwdne335820:0", + "description": "Scissors image." + }, + "microbit.Image.ALL_CLOCKS": { + "message": "crwdns329658:0crwdne329658:0", + "description": "(field name) A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_CLOCKS.summary": { + "message": "crwdns329660:0crwdne329660:0", + "description": "A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_ARROWS": { + "message": "crwdns329662:0crwdne329662:0", + "description": "(field name) A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.ALL_ARROWS.summary": { + "message": "crwdns329664:0crwdne329664:0", + "description": "A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.__init__-1": { + "message": "crwdns329666:0crwdne329666:0", + "description": "(function name) Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.summary": { + "message": "crwdns329668:0crwdne329668:0", + "description": "Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.param-name.string": { + "message": "crwdns329670:0crwdne329670:0", + "description": "(parameter name) The string describing the image." + }, + "microbit.Image.__init__-1.param-doc.string": { + "message": "crwdns329672:0crwdne329672:0", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2": { + "message": "crwdns329674:0crwdne329674:0", + "description": "(function name) Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.summary": { + "message": "crwdns329676:0{{width}}crwdnd329676:0{{height}}crwdne329676:0", + "description": "Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.param-name.buffer": { + "message": "crwdns329678:0crwdne329678:0", + "description": "(parameter name) Optional array or bytes of ``width``×``height`` integers in range 0-9 to initialize the image" + }, + "microbit.Image.__init__-2.param-doc.buffer": { + "message": "crwdns329680:0{{width}}crwdnd329680:0{{height}}crwdne329680:0", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.height": { + "message": "crwdns329682:0crwdne329682:0", + "description": "(parameter name) Optional height of the image" + }, + "microbit.Image.__init__-2.param-doc.height": { + "message": "crwdns329684:0crwdne329684:0", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.width": { + "message": "crwdns329686:0crwdne329686:0", + "description": "(parameter name) Optional width of the image" + }, + "microbit.Image.__init__-2.param-doc.width": { + "message": "crwdns329688:0crwdne329688:0", + "description": "Parameter docs" + }, + "microbit.Image.width": { + "message": "crwdns329690:0crwdne329690:0", + "description": "(function name) Get the number of columns." + }, + "microbit.Image.width.summary": { + "message": "crwdns329692:0crwdne329692:0", + "description": "Get the number of columns." + }, + "microbit.Image.height": { + "message": "crwdns329694:0crwdne329694:0", + "description": "(function name) Get the number of rows." + }, + "microbit.Image.height.summary": { + "message": "crwdns329696:0crwdne329696:0", + "description": "Get the number of rows." + }, + "microbit.Image.set_pixel": { + "message": "crwdns329698:0crwdne329698:0", + "description": "(function name) Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.summary": { + "message": "crwdns329700:0crwdne329700:0", + "description": "Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.param-name.value": { + "message": "crwdns329702:0crwdne329702:0", + "description": "(parameter name) The brightness as an integer between 0 (dark) and 9 (bright)" + }, + "microbit.Image.set_pixel.param-doc.value": { + "message": "crwdns329704:0crwdne329704:0", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.x": { + "message": "crwdns329706:0crwdne329706:0", + "description": "(parameter name) The column number" + }, + "microbit.Image.set_pixel.param-doc.x": { + "message": "crwdns329708:0crwdne329708:0", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.y": { + "message": "crwdns329710:0crwdne329710:0", + "description": "(parameter name) The row number" + }, + "microbit.Image.set_pixel.param-doc.y": { + "message": "crwdns329712:0crwdne329712:0", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel": { + "message": "crwdns329714:0crwdne329714:0", + "description": "(function name) Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.summary": { + "message": "crwdns329716:0crwdne329716:0", + "description": "Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.param-name.x": { + "message": "crwdns329718:0crwdne329718:0", + "description": "(parameter name) The column number" + }, + "microbit.Image.get_pixel.param-doc.x": { + "message": "crwdns329720:0crwdne329720:0", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel.param-name.y": { + "message": "crwdns329722:0crwdne329722:0", + "description": "(parameter name) The row number" + }, + "microbit.Image.get_pixel.param-doc.y": { + "message": "crwdns329724:0crwdne329724:0", + "description": "Parameter docs" + }, + "microbit.Image.shift_left": { + "message": "crwdns329726:0crwdne329726:0", + "description": "(function name) Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.summary": { + "message": "crwdns329728:0crwdne329728:0", + "description": "Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.param-name.n": { + "message": "crwdns329730:0crwdne329730:0", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_left.param-doc.n": { + "message": "crwdns329732:0crwdne329732:0", + "description": "Parameter docs" + }, + "microbit.Image.shift_right": { + "message": "crwdns329734:0crwdne329734:0", + "description": "(function name) Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.summary": { + "message": "crwdns329736:0crwdne329736:0", + "description": "Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.param-name.n": { + "message": "crwdns329738:0crwdne329738:0", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_right.param-doc.n": { + "message": "crwdns329740:0crwdne329740:0", + "description": "Parameter docs" + }, + "microbit.Image.shift_up": { + "message": "crwdns329742:0crwdne329742:0", + "description": "(function name) Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.summary": { + "message": "crwdns329744:0crwdne329744:0", + "description": "Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.param-name.n": { + "message": "crwdns329746:0crwdne329746:0", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_up.param-doc.n": { + "message": "crwdns329748:0crwdne329748:0", + "description": "Parameter docs" + }, + "microbit.Image.shift_down": { + "message": "crwdns329750:0crwdne329750:0", + "description": "(function name) Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.summary": { + "message": "crwdns329752:0crwdne329752:0", + "description": "Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.param-name.n": { + "message": "crwdns329754:0crwdne329754:0", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_down.param-doc.n": { + "message": "crwdns329756:0crwdne329756:0", + "description": "Parameter docs" + }, + "microbit.Image.crop": { + "message": "crwdns329758:0crwdne329758:0", + "description": "(function name) Create a new image by cropping the picture." + }, + "microbit.Image.crop.summary": { + "message": "crwdns329760:0crwdne329760:0", + "description": "Create a new image by cropping the picture." + }, + "microbit.Image.crop.param-name.h": { + "message": "crwdns329762:0crwdne329762:0", + "description": "(parameter name) The crop height" + }, + "microbit.Image.crop.param-doc.h": { + "message": "crwdns329764:0crwdne329764:0", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.w": { + "message": "crwdns329766:0crwdne329766:0", + "description": "(parameter name) The crop width" + }, + "microbit.Image.crop.param-doc.w": { + "message": "crwdns329768:0crwdne329768:0", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.x": { + "message": "crwdns329770:0crwdne329770:0", + "description": "(parameter name) The crop offset column" + }, + "microbit.Image.crop.param-doc.x": { + "message": "crwdns329772:0crwdne329772:0", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.y": { + "message": "crwdns329774:0crwdne329774:0", + "description": "(parameter name) The crop offset row" + }, + "microbit.Image.crop.param-doc.y": { + "message": "crwdns329776:0crwdne329776:0", + "description": "Parameter docs" + }, + "microbit.Image.copy": { + "message": "crwdns329778:0crwdne329778:0", + "description": "(function name) Create an exact copy of the image." + }, + "microbit.Image.copy.summary": { + "message": "crwdns329780:0crwdne329780:0", + "description": "Create an exact copy of the image." + }, + "microbit.Image.invert": { + "message": "crwdns329782:0crwdne329782:0", + "description": "(function name) Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.invert.summary": { + "message": "crwdns329784:0crwdne329784:0", + "description": "Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.fill": { + "message": "crwdns329786:0crwdne329786:0", + "description": "(function name) Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.summary": { + "message": "crwdns329788:0crwdne329788:0", + "description": "Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.param-name.value": { + "message": "crwdns329790:0crwdne329790:0", + "description": "(parameter name) The new brightness as a number between 0 (dark) and 9 (bright)." + }, + "microbit.Image.fill.param-doc.value": { + "message": "crwdns329792:0crwdne329792:0", + "description": "Parameter docs" + }, + "microbit.Image.blit": { + "message": "crwdns329794:0crwdne329794:0", + "description": "(function name) Copy an area from another image into this image." + }, + "microbit.Image.blit.summary": { + "message": "crwdns329796:0crwdne329796:0", + "description": "Copy an area from another image into this image." + }, + "microbit.Image.blit.param-name.h": { + "message": "crwdns329798:0crwdne329798:0", + "description": "(parameter name) The number of rows to copy" + }, + "microbit.Image.blit.param-doc.h": { + "message": "crwdns329800:0crwdne329800:0", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.src": { + "message": "crwdns329802:0crwdne329802:0", + "description": "(parameter name) The source image" + }, + "microbit.Image.blit.param-doc.src": { + "message": "crwdns329804:0crwdne329804:0", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.w": { + "message": "crwdns329806:0crwdne329806:0", + "description": "(parameter name) The number of columns to copy" + }, + "microbit.Image.blit.param-doc.w": { + "message": "crwdns329808:0crwdne329808:0", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.x": { + "message": "crwdns329810:0crwdne329810:0", + "description": "(parameter name) The starting column offset in the source image" + }, + "microbit.Image.blit.param-doc.x": { + "message": "crwdns329812:0crwdne329812:0", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.xdest": { + "message": "crwdns329814:0crwdne329814:0", + "description": "(parameter name) The column offset to modify in this image" + }, + "microbit.Image.blit.param-doc.xdest": { + "message": "crwdns329816:0crwdne329816:0", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.y": { + "message": "crwdns329818:0crwdne329818:0", + "description": "(parameter name) The starting row offset in the source image" + }, + "microbit.Image.blit.param-doc.y": { + "message": "crwdns329820:0crwdne329820:0", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.ydest": { + "message": "crwdns329822:0crwdne329822:0", + "description": "(parameter name) The row offset to modify in this image" + }, + "microbit.Image.blit.param-doc.ydest": { + "message": "crwdns329824:0crwdne329824:0", + "description": "Parameter docs" + }, + "microbit.Image.__repr__": { + "message": "crwdns329826:0crwdne329826:0", + "description": "(function name) Get a compact string representation of the image." + }, + "microbit.Image.__repr__.summary": { + "message": "crwdns329828:0crwdne329828:0", + "description": "Get a compact string representation of the image." + }, + "microbit.Image.__str__": { + "message": "crwdns329830:0crwdne329830:0", + "description": "(function name) Get a readable string representation of the image." + }, + "microbit.Image.__str__.summary": { + "message": "crwdns329832:0crwdne329832:0", + "description": "Get a readable string representation of the image." + }, + "microbit.Image.__add__": { + "message": "crwdns329834:0crwdne329834:0", + "description": "(function name) Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.summary": { + "message": "crwdns329836:0crwdne329836:0", + "description": "Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.param-name.other": { + "message": "crwdns329838:0crwdne329838:0", + "description": "(parameter name) The image to add." + }, + "microbit.Image.__add__.param-doc.other": { + "message": "crwdns329840:0crwdne329840:0", + "description": "Parameter docs" + }, + "microbit.Image.__sub__": { + "message": "crwdns329842:0crwdne329842:0", + "description": "(function name) Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.summary": { + "message": "crwdns329844:0crwdne329844:0", + "description": "Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.param-name.other": { + "message": "crwdns329846:0crwdne329846:0", + "description": "(parameter name) The image to subtract." + }, + "microbit.Image.__sub__.param-doc.other": { + "message": "crwdns329848:0crwdne329848:0", + "description": "Parameter docs" + }, + "microbit.Image.__mul__": { + "message": "crwdns329850:0crwdne329850:0", + "description": "(function name) Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.summary": { + "message": "crwdns329852:0{{n}}crwdne329852:0", + "description": "Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.param-name.n": { + "message": "crwdns329854:0crwdne329854:0", + "description": "(parameter name) The value to multiply by." + }, + "microbit.Image.__mul__.param-doc.n": { + "message": "crwdns329856:0crwdne329856:0", + "description": "Parameter docs" + }, + "microbit.Image.__truediv__": { + "message": "crwdns329858:0crwdne329858:0", + "description": "(function name) Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.summary": { + "message": "crwdns329860:0{{n}}crwdne329860:0", + "description": "Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.param-name.n": { + "message": "crwdns329862:0crwdne329862:0", + "description": "(parameter name) The value to divide by." + }, + "microbit.Image.__truediv__.param-doc.n": { + "message": "crwdns329864:0crwdne329864:0", + "description": "Parameter docs" + }, + "microbit.SoundEvent.LOUD": { + "message": "crwdns329866:0crwdne329866:0", + "description": "(field name) Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.LOUD.summary": { + "message": "crwdns334408:0{{quiet}}crwdnd334408:0{{loud}}crwdne334408:0", + "description": "Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.QUIET": { + "message": "crwdns329870:0crwdne329870:0", + "description": "(field name) Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.SoundEvent.QUIET.summary": { + "message": "crwdns334410:0{{loud}}crwdnd334410:0{{quiet}}crwdne334410:0", + "description": "Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.Sound": { + "message": "crwdns329874:0crwdne329874:0", + "description": "(class name) The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.summary": { + "message": "crwdns329876:0{{audio.play(Sound.NAME)}}crwdne329876:0", + "description": "The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.GIGGLE": { + "message": "crwdns329878:0crwdne329878:0", + "description": "(field name) Giggling sound." + }, + "microbit.Sound.GIGGLE.summary": { + "message": "crwdns329880:0crwdne329880:0", + "description": "Giggling sound." + }, + "microbit.Sound.HAPPY": { + "message": "crwdns329882:0crwdne329882:0", + "description": "(field name) Happy sound." + }, + "microbit.Sound.HAPPY.summary": { + "message": "crwdns329884:0crwdne329884:0", + "description": "Happy sound." + }, + "microbit.Sound.HELLO": { + "message": "crwdns329886:0crwdne329886:0", + "description": "(field name) Greeting sound." + }, + "microbit.Sound.HELLO.summary": { + "message": "crwdns329888:0crwdne329888:0", + "description": "Greeting sound." + }, + "microbit.Sound.MYSTERIOUS": { + "message": "crwdns329890:0crwdne329890:0", + "description": "(field name) Mysterious sound." + }, + "microbit.Sound.MYSTERIOUS.summary": { + "message": "crwdns329892:0crwdne329892:0", + "description": "Mysterious sound." + }, + "microbit.Sound.SAD": { + "message": "crwdns329894:0crwdne329894:0", + "description": "(field name) Sad sound." + }, + "microbit.Sound.SAD.summary": { + "message": "crwdns329896:0crwdne329896:0", + "description": "Sad sound." + }, + "microbit.Sound.SLIDE": { + "message": "crwdns329898:0crwdne329898:0", + "description": "(field name) Sliding sound." + }, + "microbit.Sound.SLIDE.summary": { + "message": "crwdns329900:0crwdne329900:0", + "description": "Sliding sound." + }, + "microbit.Sound.SOARING": { + "message": "crwdns329902:0crwdne329902:0", + "description": "(field name) Soaring sound." + }, + "microbit.Sound.SOARING.summary": { + "message": "crwdns329904:0crwdne329904:0", + "description": "Soaring sound." + }, + "microbit.Sound.SPRING": { + "message": "crwdns329906:0crwdne329906:0", + "description": "(field name) Spring sound." + }, + "microbit.Sound.SPRING.summary": { + "message": "crwdns329908:0crwdne329908:0", + "description": "Spring sound." + }, + "microbit.Sound.TWINKLE": { + "message": "crwdns329910:0crwdne329910:0", + "description": "(field name) Twinkling sound." + }, + "microbit.Sound.TWINKLE.summary": { + "message": "crwdns329912:0crwdne329912:0", + "description": "Twinkling sound." + }, + "microbit.Sound.YAWN": { + "message": "crwdns329914:0crwdne329914:0", + "description": "(field name) Yawning sound." + }, + "microbit.Sound.YAWN.summary": { + "message": "crwdns329916:0crwdne329916:0", + "description": "Yawning sound." + }, + "microbit.accelerometer": { + "message": "crwdns329918:0crwdne329918:0", + "description": "(module name) Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.summary": { + "message": "crwdns329920:0crwdne329920:0", + "description": "Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.get_x": { + "message": "crwdns329922:0crwdne329922:0", + "description": "(function name) Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_x.summary": { + "message": "crwdns329924:0{{x}}crwdne329924:0", + "description": "Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_y": { + "message": "crwdns329926:0crwdne329926:0", + "description": "(function name) Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_y.summary": { + "message": "crwdns329928:0{{y}}crwdne329928:0", + "description": "Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_z": { + "message": "crwdns329930:0crwdne329930:0", + "description": "(function name) Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_z.summary": { + "message": "crwdns329932:0{{z}}crwdne329932:0", + "description": "Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_values": { + "message": "crwdns329934:0crwdne329934:0", + "description": "(function name) Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_values.summary": { + "message": "crwdns329936:0crwdne329936:0", + "description": "Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_strength": { + "message": "crwdns335822:0crwdne335822:0", + "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.get_strength.summary": { + "message": "crwdns335824:0crwdne335824:0", + "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.current_gesture": { + "message": "crwdns329938:0crwdne329938:0", + "description": "(function name) Get the name of the current gesture." + }, + "microbit.accelerometer.current_gesture.summary": { + "message": "crwdns329940:0crwdne329940:0", + "description": "Get the name of the current gesture." + }, + "microbit.accelerometer.is_gesture": { + "message": "crwdns329942:0crwdne329942:0", + "description": "(function name) Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.summary": { + "message": "crwdns329944:0crwdne329944:0", + "description": "Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.param-name.name": { + "message": "crwdns329946:0crwdne329946:0", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.is_gesture.param-doc.name": { + "message": "crwdns329948:0crwdne329948:0", + "description": "Parameter docs" + }, + "microbit.accelerometer.was_gesture": { + "message": "crwdns329950:0crwdne329950:0", + "description": "(function name) Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.summary": { + "message": "crwdns329952:0crwdne329952:0", + "description": "Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.param-name.name": { + "message": "crwdns329954:0crwdne329954:0", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.was_gesture.param-doc.name": { + "message": "crwdns329956:0crwdne329956:0", + "description": "Parameter docs" + }, + "microbit.accelerometer.get_gestures": { + "message": "crwdns329958:0crwdne329958:0", + "description": "(function name) Return a tuple of the gesture history." + }, + "microbit.accelerometer.get_gestures.summary": { + "message": "crwdns329960:0crwdne329960:0", + "description": "Return a tuple of the gesture history." + }, + "microbit.accelerometer.set_range": { + "message": "crwdns335826:0crwdne335826:0", + "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.summary": { + "message": "crwdns335828:0{{2}}crwdnd335828:0{{4}}crwdnd335828:0{{8}}crwdne335828:0", + "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.param-name.value": { + "message": "crwdns335830:0crwdne335830:0", + "description": "(parameter name) New range for the accelerometer, an integer in ``g``." + }, + "microbit.accelerometer.set_range.param-doc.value": { + "message": "crwdns335832:0{{g}}crwdne335832:0", + "description": "Parameter docs" + }, + "microbit.audio": { + "message": "crwdns329962:0crwdne329962:0", + "description": "(module name) Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.summary": { + "message": "crwdns329964:0{{audio}}crwdne329964:0", + "description": "Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.play": { + "message": "crwdns329966:0crwdne329966:0", + "description": "(function name) Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.summary": { + "message": "crwdns335834:0crwdne335834:0", + "description": "Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.param-name.pin": { + "message": "crwdns329970:0crwdne329970:0", + "description": "(parameter name) An optional argument to specify the output pin can be used to override the default of ``pin0``. If we do not want any sound to play we can use ``pin=None``." + }, + "microbit.audio.play.param-doc.pin": { + "message": "crwdns329972:0{{pin0}}crwdne329972:0", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.return_pin": { + "message": "crwdns329974:0crwdne329974:0", + "description": "(parameter name) Specifies a differential edge connector pin to connect to an external speaker instead of ground. This is ignored for the **V2** revision." + }, + "microbit.audio.play.param-doc.return_pin": { + "message": "crwdns329976:0crwdne329976:0", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.source": { + "message": "crwdns329978:0crwdne329978:0", + "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." + }, + "microbit.audio.play.param-doc.source": { + "message": "crwdns335836:0{{Sound}}crwdnd335836:0{{Sound.GIGGLE}}crwdnd335836:0{{SoundEffect}}crwdnd335836:0{{AudioFrame}}crwdne335836:0", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.wait": { + "message": "crwdns329982:0crwdne329982:0", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the sound is complete." + }, + "microbit.audio.play.param-doc.wait": { + "message": "crwdns329984:0{{wait}}crwdnd329984:0{{True}}crwdne329984:0", + "description": "Parameter docs" + }, + "microbit.audio.is_playing": { + "message": "crwdns329986:0crwdne329986:0", + "description": "(function name) Check whether a sound is playing." + }, + "microbit.audio.is_playing.summary": { + "message": "crwdns329988:0crwdne329988:0", + "description": "Check whether a sound is playing." + }, + "microbit.audio.stop": { + "message": "crwdns329990:0crwdne329990:0", + "description": "(function name) Stop all audio playback." + }, + "microbit.audio.stop.summary": { + "message": "crwdns329992:0crwdne329992:0", + "description": "Stop all audio playback." + }, + "microbit.audio.SoundEffect": { + "message": "crwdns335838:0crwdne335838:0", + "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.summary": { + "message": "crwdns335840:0crwdne335840:0", + "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE": { + "message": "crwdns335842:0crwdne335842:0", + "description": "(field name) Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { + "message": "crwdns335844:0{{waveform}}crwdne335844:0", + "description": "Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { + "message": "crwdns335846:0crwdne335846:0", + "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { + "message": "crwdns335848:0{{waveform}}crwdne335848:0", + "description": "Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE": { + "message": "crwdns335850:0crwdne335850:0", + "description": "(field name) Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE.summary": { + "message": "crwdns335852:0{{waveform}}crwdne335852:0", + "description": "Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE": { + "message": "crwdns335854:0crwdne335854:0", + "description": "(field name) Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { + "message": "crwdns335856:0{{waveform}}crwdne335856:0", + "description": "Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE": { + "message": "crwdns335858:0crwdne335858:0", + "description": "(field name) Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE.summary": { + "message": "crwdns335860:0{{waveform}}crwdne335860:0", + "description": "Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR": { + "message": "crwdns335862:0crwdne335862:0", + "description": "(field name) Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR.summary": { + "message": "crwdns335864:0{{shape}}crwdne335864:0", + "description": "Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE": { + "message": "crwdns335866:0crwdne335866:0", + "description": "(field name) Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE.summary": { + "message": "crwdns335868:0{{shape}}crwdne335868:0", + "description": "Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG": { + "message": "crwdns335870:0crwdne335870:0", + "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG.summary": { + "message": "crwdns335872:0{{shape}}crwdne335872:0", + "description": "Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE": { + "message": "crwdns335874:0crwdne335874:0", + "description": "(field name) No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE.summary": { + "message": "crwdns335876:0{{fx}}crwdne335876:0", + "description": "No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO": { + "message": "crwdns335878:0crwdne335878:0", + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO.summary": { + "message": "crwdns335880:0{{fx}}crwdne335880:0", + "description": "Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO": { + "message": "crwdns335882:0crwdne335882:0", + "description": "(field name) Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO.summary": { + "message": "crwdns335884:0{{fx}}crwdne335884:0", + "description": "Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE": { + "message": "crwdns335886:0crwdne335886:0", + "description": "(field name) Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE.summary": { + "message": "crwdns335888:0{{fx}}crwdne335888:0", + "description": "Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.freq_start": { + "message": "crwdns335890:0crwdne335890:0", + "description": "(field name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_start.summary": { + "message": "crwdns335892:0{{0}}crwdnd335892:0{{9999}}crwdne335892:0", + "description": "Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end": { + "message": "crwdns335894:0crwdne335894:0", + "description": "(field name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end.summary": { + "message": "crwdns335896:0{{0}}crwdnd335896:0{{9999}}crwdne335896:0", + "description": "End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration": { + "message": "crwdns335898:0crwdne335898:0", + "description": "(field name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration.summary": { + "message": "crwdns335900:0{{0}}crwdnd335900:0{{9999}}crwdne335900:0", + "description": "Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.vol_start": { + "message": "crwdns335902:0crwdne335902:0", + "description": "(field name) Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_start.summary": { + "message": "crwdns335904:0{{0}}crwdnd335904:0{{255}}crwdne335904:0", + "description": "Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end": { + "message": "crwdns335906:0crwdne335906:0", + "description": "(field name) End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end.summary": { + "message": "crwdns335908:0{{0}}crwdnd335908:0{{255}}crwdne335908:0", + "description": "End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.waveform": { + "message": "crwdns335910:0crwdne335910:0", + "description": "(field name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.waveform.summary": { + "message": "crwdns335912:0{{WAVEFORM_SINE}}crwdnd335912:0{{WAVEFORM_SAWTOOTH}}crwdnd335912:0{{WAVEFORM_TRIANGLE}}crwdnd335912:0{{WAVEFORM_SQUARE}}crwdnd335912:0{{WAVEFORM_NOISE}}crwdne335912:0", + "description": "Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.fx": { + "message": "crwdns335914:0crwdne335914:0", + "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.fx.summary": { + "message": "crwdns335916:0{{FX_TREMOLO}}crwdnd335916:0{{FX_VIBRATO}}crwdnd335916:0{{FX_WARBLE}}crwdnd335916:0{{FX_NONE}}crwdne335916:0", + "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.shape": { + "message": "crwdns335918:0crwdne335918:0", + "description": "(field name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.shape.summary": { + "message": "crwdns335920:0{{SHAPE_LINEAR}}crwdnd335920:0{{SHAPE_CURVE}}crwdnd335920:0{{SHAPE_LOG}}crwdne335920:0", + "description": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.__init__": { + "message": "crwdns335922:0crwdne335922:0", + "description": "(function name) Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.summary": { + "message": "crwdns335924:0crwdne335924:0", + "description": "Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.param-name.duration": { + "message": "crwdns335926:0crwdne335926:0", + "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.duration": { + "message": "crwdns335928:0{{0}}crwdnd335928:0{{9999}}crwdne335928:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_end": { + "message": "crwdns335930:0crwdne335930:0", + "description": "(parameter name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_end": { + "message": "crwdns335932:0{{0}}crwdnd335932:0{{9999}}crwdne335932:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_start": { + "message": "crwdns335934:0crwdne335934:0", + "description": "(parameter name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_start": { + "message": "crwdns335936:0{{0}}crwdnd335936:0{{9999}}crwdne335936:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.fx": { + "message": "crwdns335938:0crwdne335938:0", + "description": "(parameter name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.fx": { + "message": "crwdns335940:0{{FX_TREMOLO}}crwdnd335940:0{{FX_VIBRATO}}crwdnd335940:0{{FX_WARBLE}}crwdnd335940:0{{FX_NONE}}crwdne335940:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.shape": { + "message": "crwdns335942:0crwdne335942:0", + "description": "(parameter name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.shape": { + "message": "crwdns335944:0{{SHAPE_LINEAR}}crwdnd335944:0{{SHAPE_CURVE}}crwdnd335944:0{{SHAPE_LOG}}crwdne335944:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_end": { + "message": "crwdns335946:0crwdne335946:0", + "description": "(parameter name) End volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_end": { + "message": "crwdns335948:0{{0}}crwdnd335948:0{{255}}crwdne335948:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_start": { + "message": "crwdns335950:0crwdne335950:0", + "description": "(parameter name) Start volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_start": { + "message": "crwdns335952:0{{0}}crwdnd335952:0{{255}}crwdne335952:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.waveform": { + "message": "crwdns335954:0crwdne335954:0", + "description": "(parameter name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)." + }, + "microbit.audio.SoundEffect.__init__.param-doc.waveform": { + "message": "crwdns335956:0{{WAVEFORM_SINE}}crwdnd335956:0{{WAVEFORM_SAWTOOTH}}crwdnd335956:0{{WAVEFORM_TRIANGLE}}crwdnd335956:0{{WAVEFORM_SQUARE}}crwdnd335956:0{{WAVEFORM_NOISE}}crwdne335956:0", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.copy": { + "message": "crwdns335958:0crwdne335958:0", + "description": "(function name) Create a copy of this ``SoundEffect``." + }, + "microbit.audio.SoundEffect.copy.summary": { + "message": "crwdns335960:0{{SoundEffect}}crwdne335960:0", + "description": "Create a copy of this ``SoundEffect``." + }, + "microbit.audio.AudioFrame": { + "message": "crwdns329994:0crwdne329994:0", + "description": "(class name) An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.summary": { + "message": "crwdns329996:0{{AudioFrame}}crwdne329996:0", + "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.copyfrom": { + "message": "crwdns335962:0crwdne335962:0", + "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.summary": { + "message": "crwdns335964:0{{AudioFrame}}crwdnd335964:0{{AudioFrame}}crwdne335964:0", + "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.param-name.other": { + "message": "crwdns335966:0crwdne335966:0", + "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." + }, + "microbit.audio.AudioFrame.copyfrom.param-doc.other": { + "message": "crwdns335968:0{{AudioFrame}}crwdne335968:0", + "description": "Parameter docs" + }, + "microbit.compass": { + "message": "crwdns330002:0crwdne330002:0", + "description": "(module name) Use the built-in compass." + }, + "microbit.compass.summary": { + "message": "crwdns330004:0crwdne330004:0", + "description": "Use the built-in compass." + }, + "microbit.compass.calibrate": { + "message": "crwdns330006:0crwdne330006:0", + "description": "(function name) Starts the calibration process." + }, + "microbit.compass.calibrate.summary": { + "message": "crwdns330008:0crwdne330008:0", + "description": "Starts the calibration process." + }, + "microbit.compass.is_calibrated": { + "message": "crwdns330010:0crwdne330010:0", + "description": "(function name) Check is the compass is calibrated." + }, + "microbit.compass.is_calibrated.summary": { + "message": "crwdns330012:0crwdne330012:0", + "description": "Check is the compass is calibrated." + }, + "microbit.compass.clear_calibration": { + "message": "crwdns330014:0crwdne330014:0", + "description": "(function name) Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.clear_calibration.summary": { + "message": "crwdns330016:0crwdne330016:0", + "description": "Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.get_x": { + "message": "crwdns330018:0crwdne330018:0", + "description": "(function name) Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_x.summary": { + "message": "crwdns330020:0{{x}}crwdne330020:0", + "description": "Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_y": { + "message": "crwdns330022:0crwdne330022:0", + "description": "(function name) Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_y.summary": { + "message": "crwdns330024:0{{y}}crwdne330024:0", + "description": "Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_z": { + "message": "crwdns330026:0crwdne330026:0", + "description": "(function name) Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.get_z.summary": { + "message": "crwdns330028:0{{z}}crwdne330028:0", + "description": "Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.heading": { + "message": "crwdns330030:0crwdne330030:0", + "description": "(function name) Get the compass heading." + }, + "microbit.compass.heading.summary": { + "message": "crwdns330032:0crwdne330032:0", + "description": "Get the compass heading." + }, + "microbit.compass.get_field_strength": { + "message": "crwdns330034:0crwdne330034:0", + "description": "(function name) Get the magnitude of the magnetic field around the device." + }, + "microbit.compass.get_field_strength.summary": { + "message": "crwdns330036:0crwdne330036:0", + "description": "Get the magnitude of the magnetic field around the device." + }, + "microbit.display": { + "message": "crwdns330038:0crwdne330038:0", + "description": "(module name) Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.summary": { + "message": "crwdns330040:0crwdne330040:0", + "description": "Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.get_pixel": { + "message": "crwdns330042:0crwdne330042:0", + "description": "(function name) Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.summary": { + "message": "crwdns330044:0{{x}}crwdnd330044:0{{y}}crwdne330044:0", + "description": "Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.param-name.x": { + "message": "crwdns330046:0crwdne330046:0", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.get_pixel.param-doc.x": { + "message": "crwdns330048:0crwdne330048:0", + "description": "Parameter docs" + }, + "microbit.display.get_pixel.param-name.y": { + "message": "crwdns330050:0crwdne330050:0", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.get_pixel.param-doc.y": { + "message": "crwdns330052:0crwdne330052:0", + "description": "Parameter docs" + }, + "microbit.display.set_pixel": { + "message": "crwdns330054:0crwdne330054:0", + "description": "(function name) Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.summary": { + "message": "crwdns330056:0{{x}}crwdnd330056:0{{y}}crwdne330056:0", + "description": "Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.param-name.value": { + "message": "crwdns330058:0crwdne330058:0", + "description": "(parameter name) The brightness between 0 (off) and 9 (bright)" + }, + "microbit.display.set_pixel.param-doc.value": { + "message": "crwdns330060:0crwdne330060:0", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.x": { + "message": "crwdns330062:0crwdne330062:0", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.set_pixel.param-doc.x": { + "message": "crwdns330064:0crwdne330064:0", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.y": { + "message": "crwdns330066:0crwdne330066:0", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.set_pixel.param-doc.y": { + "message": "crwdns330068:0crwdne330068:0", + "description": "Parameter docs" + }, + "microbit.display.clear": { + "message": "crwdns330070:0crwdne330070:0", + "description": "(function name) Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.clear.summary": { + "message": "crwdns330072:0crwdne330072:0", + "description": "Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.show": { + "message": "crwdns330074:0crwdne330074:0", + "description": "(function name) Shows images, letters or digits on the LED display." + }, + "microbit.display.show.summary": { + "message": "crwdns330076:0crwdne330076:0", + "description": "Shows images, letters or digits on the LED display." + }, + "microbit.display.show.param-name.clear": { + "message": "crwdns330078:0crwdne330078:0", + "description": "(parameter name) If ``clear`` is ``True``, the display will be cleared after the sequence has finished." + }, + "microbit.display.show.param-doc.clear": { + "message": "crwdns330080:0{{clear}}crwdnd330080:0{{True}}crwdne330080:0", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.delay": { + "message": "crwdns330082:0crwdne330082:0", + "description": "(parameter name) Each letter, digit or image is shown with ``delay`` milliseconds between them." + }, + "microbit.display.show.param-doc.delay": { + "message": "crwdns330084:0{{delay}}crwdne330084:0", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.image": { + "message": "crwdns330086:0crwdne330086:0", + "description": "(parameter name) A string, number, image or list of images to show." + }, + "microbit.display.show.param-doc.image": { + "message": "crwdns330088:0crwdne330088:0", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.loop": { + "message": "crwdns330090:0crwdne330090:0", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.show.param-doc.loop": { + "message": "crwdns330092:0{{loop}}crwdnd330092:0{{True}}crwdne330092:0", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.wait": { + "message": "crwdns330094:0crwdne330094:0", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.show.param-doc.wait": { + "message": "crwdns330096:0{{wait}}crwdnd330096:0{{True}}crwdne330096:0", + "description": "Parameter docs" + }, + "microbit.display.scroll": { + "message": "crwdns330098:0crwdne330098:0", + "description": "(function name) Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.summary": { + "message": "crwdns330100:0crwdne330100:0", + "description": "Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.param-name.delay": { + "message": "crwdns330102:0crwdne330102:0", + "description": "(parameter name) The ``delay`` parameter controls how fast the text is scrolling." + }, + "microbit.display.scroll.param-doc.delay": { + "message": "crwdns330104:0{{delay}}crwdne330104:0", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.loop": { + "message": "crwdns330106:0crwdne330106:0", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.scroll.param-doc.loop": { + "message": "crwdns330108:0{{loop}}crwdnd330108:0{{True}}crwdne330108:0", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.monospace": { + "message": "crwdns330110:0crwdne330110:0", + "description": "(parameter name) If ``monospace`` is ``True``, the characters will all take up 5 pixel-columns in width, otherwise there will be exactly 1 blank pixel-column between each character as they scroll." + }, + "microbit.display.scroll.param-doc.monospace": { + "message": "crwdns330112:0{{monospace}}crwdnd330112:0{{True}}crwdne330112:0", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.text": { + "message": "crwdns330114:0crwdne330114:0", + "description": "(parameter name) The string to scroll. If ``text`` is an integer or float it is first converted to a string using ``str()``." + }, + "microbit.display.scroll.param-doc.text": { + "message": "crwdns330116:0{{text}}crwdnd330116:0{{str()}}crwdne330116:0", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.wait": { + "message": "crwdns330118:0crwdne330118:0", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.scroll.param-doc.wait": { + "message": "crwdns330120:0{{wait}}crwdnd330120:0{{True}}crwdne330120:0", + "description": "Parameter docs" + }, + "microbit.display.on": { + "message": "crwdns330122:0crwdne330122:0", + "description": "(function name) Turn on the LED display." + }, + "microbit.display.on.summary": { + "message": "crwdns330124:0crwdne330124:0", + "description": "Turn on the LED display." + }, + "microbit.display.off": { + "message": "crwdns330126:0crwdne330126:0", + "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.off.summary": { + "message": "crwdns330128:0crwdne330128:0", + "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.is_on": { + "message": "crwdns330130:0crwdne330130:0", + "description": "(function name) Check whether the LED display is enabled." + }, + "microbit.display.is_on.summary": { + "message": "crwdns330132:0crwdne330132:0", + "description": "Check whether the LED display is enabled." + }, + "microbit.display.read_light_level": { + "message": "crwdns330134:0crwdne330134:0", + "description": "(function name) Read the light level." + }, + "microbit.display.read_light_level.summary": { + "message": "crwdns330136:0crwdne330136:0", + "description": "Read the light level." + }, + "microbit.i2c": { + "message": "crwdns330138:0crwdne330138:0", + "description": "(module name) Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.summary": { + "message": "crwdns330140:0crwdne330140:0", + "description": "Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.init": { + "message": "crwdns330142:0crwdne330142:0", + "description": "(function name) Re-initialize a peripheral." + }, + "microbit.i2c.init.summary": { + "message": "crwdns330144:0crwdne330144:0", + "description": "Re-initialize a peripheral." + }, + "microbit.i2c.init.param-name.freq": { + "message": "crwdns330146:0crwdne330146:0", + "description": "(parameter name) clock frequency" + }, + "microbit.i2c.init.param-doc.freq": { + "message": "crwdns330148:0crwdne330148:0", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.scl": { + "message": "crwdns330150:0crwdne330150:0", + "description": "(parameter name) ``scl`` pin (default 19)" + }, + "microbit.i2c.init.param-doc.scl": { + "message": "crwdns330152:0{{scl}}crwdne330152:0", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.sda": { + "message": "crwdns330154:0crwdne330154:0", + "description": "(parameter name) ``sda`` pin (default 20)" + }, + "microbit.i2c.init.param-doc.sda": { + "message": "crwdns330156:0{{sda}}crwdne330156:0", + "description": "Parameter docs" + }, + "microbit.i2c.scan": { + "message": "crwdns330158:0crwdne330158:0", + "description": "(function name) Scan the bus for devices." + }, + "microbit.i2c.scan.summary": { + "message": "crwdns330160:0crwdne330160:0", + "description": "Scan the bus for devices." + }, + "microbit.i2c.read": { + "message": "crwdns330162:0crwdne330162:0", + "description": "(function name) Read bytes from a device." + }, + "microbit.i2c.read.summary": { + "message": "crwdns330164:0crwdne330164:0", + "description": "Read bytes from a device." + }, + "microbit.i2c.read.param-name.addr": { + "message": "crwdns330166:0crwdne330166:0", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.read.param-doc.addr": { + "message": "crwdns330168:0crwdne330168:0", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.n": { + "message": "crwdns330170:0crwdne330170:0", + "description": "(parameter name) The number of bytes to read" + }, + "microbit.i2c.read.param-doc.n": { + "message": "crwdns330172:0crwdne330172:0", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.repeat": { + "message": "crwdns330174:0crwdne330174:0", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.read.param-doc.repeat": { + "message": "crwdns330176:0{{True}}crwdne330176:0", + "description": "Parameter docs" + }, + "microbit.i2c.write": { + "message": "crwdns330178:0crwdne330178:0", + "description": "(function name) Write bytes to a device." + }, + "microbit.i2c.write.summary": { + "message": "crwdns330180:0crwdne330180:0", + "description": "Write bytes to a device." + }, + "microbit.i2c.write.param-name.addr": { + "message": "crwdns330182:0crwdne330182:0", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.write.param-doc.addr": { + "message": "crwdns330184:0crwdne330184:0", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.buf": { + "message": "crwdns330186:0crwdne330186:0", + "description": "(parameter name) A buffer containing the bytes to write" + }, + "microbit.i2c.write.param-doc.buf": { + "message": "crwdns330188:0crwdne330188:0", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.repeat": { + "message": "crwdns330190:0crwdne330190:0", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.write.param-doc.repeat": { + "message": "crwdns330192:0{{True}}crwdne330192:0", + "description": "Parameter docs" + }, + "microbit.microphone": { + "message": "crwdns330194:0crwdne330194:0", + "description": "(module name) Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.summary": { + "message": "crwdns330196:0crwdne330196:0", + "description": "Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.current_event": { + "message": "crwdns330198:0crwdne330198:0", + "description": "(function name) Get the last recorded sound event" + }, + "microbit.microphone.current_event.summary": { + "message": "crwdns330200:0crwdne330200:0", + "description": "Get the last recorded sound event" + }, + "microbit.microphone.was_event": { + "message": "crwdns330202:0crwdne330202:0", + "description": "(function name) Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.summary": { + "message": "crwdns330204:0crwdne330204:0", + "description": "Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.param-name.event": { + "message": "crwdns330206:0crwdne330206:0", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.was_event.param-doc.event": { + "message": "crwdns330208:0{{SoundEvent.LOUD}}crwdnd330208:0{{SoundEvent.QUIET}}crwdne330208:0", + "description": "Parameter docs" + }, + "microbit.microphone.is_event": { + "message": "crwdns330210:0crwdne330210:0", + "description": "(function name) Check the most recent sound event detected." + }, + "microbit.microphone.is_event.summary": { + "message": "crwdns330212:0crwdne330212:0", + "description": "Check the most recent sound event detected." + }, + "microbit.microphone.is_event.param-name.event": { + "message": "crwdns330214:0crwdne330214:0", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.is_event.param-doc.event": { + "message": "crwdns330216:0{{SoundEvent.LOUD}}crwdnd330216:0{{SoundEvent.QUIET}}crwdne330216:0", + "description": "Parameter docs" + }, + "microbit.microphone.get_events": { + "message": "crwdns330218:0crwdne330218:0", + "description": "(function name) Get the sound event history as a tuple." + }, + "microbit.microphone.get_events.summary": { + "message": "crwdns330220:0crwdne330220:0", + "description": "Get the sound event history as a tuple." + }, + "microbit.microphone.set_threshold": { + "message": "crwdns330222:0crwdne330222:0", + "description": "(function name) Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.summary": { + "message": "crwdns330224:0crwdne330224:0", + "description": "Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.param-name.event": { + "message": "crwdns330226:0crwdne330226:0", + "description": "(parameter name) A sound event, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``." + }, + "microbit.microphone.set_threshold.param-doc.event": { + "message": "crwdns330228:0{{SoundEvent.LOUD}}crwdnd330228:0{{SoundEvent.QUIET}}crwdne330228:0", + "description": "Parameter docs" + }, + "microbit.microphone.set_threshold.param-name.value": { + "message": "crwdns330230:0crwdne330230:0", + "description": "(parameter name) The threshold level in the range 0-255." + }, + "microbit.microphone.set_threshold.param-doc.value": { + "message": "crwdns330232:0crwdne330232:0", + "description": "Parameter docs" + }, + "microbit.microphone.sound_level": { + "message": "crwdns330234:0crwdne330234:0", + "description": "(function name) Get the sound pressure level." + }, + "microbit.microphone.sound_level.summary": { + "message": "crwdns330236:0crwdne330236:0", + "description": "Get the sound pressure level." + }, + "microbit.speaker": { + "message": "crwdns330238:0crwdne330238:0", + "description": "(module name) Control the built-in speaker (V2 only)." + }, + "microbit.speaker.summary": { + "message": "crwdns330240:0crwdne330240:0", + "description": "Control the built-in speaker (V2 only)." + }, + "microbit.speaker.off": { + "message": "crwdns330242:0crwdne330242:0", + "description": "(function name) Turn the speaker off." + }, + "microbit.speaker.off.summary": { + "message": "crwdns330244:0crwdne330244:0", + "description": "Turn the speaker off." + }, + "microbit.speaker.on": { + "message": "crwdns330246:0crwdne330246:0", + "description": "(function name) Turn the speaker on." + }, + "microbit.speaker.on.summary": { + "message": "crwdns330248:0crwdne330248:0", + "description": "Turn the speaker on." + }, + "microbit.spi": { + "message": "crwdns330250:0crwdne330250:0", + "description": "(module name) Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.summary": { + "message": "crwdns330252:0crwdne330252:0", + "description": "Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.init": { + "message": "crwdns330254:0crwdne330254:0", + "description": "(function name) Initialize SPI communication." + }, + "microbit.spi.init.summary": { + "message": "crwdns330256:0crwdne330256:0", + "description": "Initialize SPI communication." + }, + "microbit.spi.init.param-name.baudrate": { + "message": "crwdns330258:0crwdne330258:0", + "description": "(parameter name) The speed of communication." + }, + "microbit.spi.init.param-doc.baudrate": { + "message": "crwdns330260:0crwdne330260:0", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.bits": { + "message": "crwdns330262:0crwdne330262:0", + "description": "(parameter name) The width in bits of each transfer. Currently only ``bits=8`` is supported. However, this may change in the future." + }, + "microbit.spi.init.param-doc.bits": { + "message": "crwdns334412:0crwdne334412:0", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.miso": { + "message": "crwdns330266:0crwdne330266:0", + "description": "(parameter name) miso pin (default 14)" + }, + "microbit.spi.init.param-doc.miso": { + "message": "crwdns330268:0crwdne330268:0", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mode": { + "message": "crwdns330270:0crwdne330270:0", + "description": "(parameter name) Determines the combination of clock polarity and phase - `see online table `_." + }, + "microbit.spi.init.param-doc.mode": { + "message": "crwdns330272:0crwdne330272:0", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mosi": { + "message": "crwdns330274:0crwdne330274:0", + "description": "(parameter name) mosi pin (default 15)" + }, + "microbit.spi.init.param-doc.mosi": { + "message": "crwdns330276:0crwdne330276:0", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.sclk": { + "message": "crwdns330278:0crwdne330278:0", + "description": "(parameter name) sclk pin (default 13)" + }, + "microbit.spi.init.param-doc.sclk": { + "message": "crwdns330280:0crwdne330280:0", + "description": "Parameter docs" + }, + "microbit.spi.read": { + "message": "crwdns330282:0crwdne330282:0", + "description": "(function name) Read bytes." + }, + "microbit.spi.read.summary": { + "message": "crwdns330284:0crwdne330284:0", + "description": "Read bytes." + }, + "microbit.spi.read.param-name.nbytes": { + "message": "crwdns330286:0crwdne330286:0", + "description": "(parameter name) Maximum number of bytes to read." + }, + "microbit.spi.read.param-doc.nbytes": { + "message": "crwdns330288:0crwdne330288:0", + "description": "Parameter docs" + }, + "microbit.spi.write": { + "message": "crwdns330290:0crwdne330290:0", + "description": "(function name) Write bytes to the bus." + }, + "microbit.spi.write.summary": { + "message": "crwdns330292:0crwdne330292:0", + "description": "Write bytes to the bus." + }, + "microbit.spi.write.param-name.buffer": { + "message": "crwdns330294:0crwdne330294:0", + "description": "(parameter name) A buffer to read data from." + }, + "microbit.spi.write.param-doc.buffer": { + "message": "crwdns330296:0crwdne330296:0", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto": { + "message": "crwdns330298:0crwdne330298:0", + "description": "(function name) Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.summary": { + "message": "crwdns330300:0{{out}}crwdnd330300:0{{in_}}crwdne330300:0", + "description": "Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.param-name.in_": { + "message": "crwdns330302:0crwdne330302:0", + "description": "(parameter name) The buffer to read data from." + }, + "microbit.spi.write_readinto.param-doc.in_": { + "message": "crwdns330304:0crwdne330304:0", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto.param-name.out": { + "message": "crwdns330306:0crwdne330306:0", + "description": "(parameter name) The buffer to write any response to." + }, + "microbit.spi.write_readinto.param-doc.out": { + "message": "crwdns330308:0crwdne330308:0", + "description": "Parameter docs" + }, + "microbit.uart": { + "message": "crwdns330310:0crwdne330310:0", + "description": "(module name) Communicate with a device using a serial interface." + }, + "microbit.uart.summary": { + "message": "crwdns330312:0crwdne330312:0", + "description": "Communicate with a device using a serial interface." + }, + "microbit.uart.ODD": { + "message": "crwdns330314:0crwdne330314:0", + "description": "(field name) Odd parity" + }, + "microbit.uart.ODD.summary": { + "message": "crwdns330316:0crwdne330316:0", + "description": "Odd parity" + }, + "microbit.uart.EVEN": { + "message": "crwdns330318:0crwdne330318:0", + "description": "(field name) Even parity" + }, + "microbit.uart.EVEN.summary": { + "message": "crwdns330320:0crwdne330320:0", + "description": "Even parity" + }, + "microbit.uart.init": { + "message": "crwdns330322:0crwdne330322:0", + "description": "(function name) Initialize serial communication." + }, + "microbit.uart.init.summary": { + "message": "crwdns330324:0crwdne330324:0", + "description": "Initialize serial communication." + }, + "microbit.uart.init.param-name.baudrate": { + "message": "crwdns330326:0crwdne330326:0", + "description": "(parameter name) The speed of communication." + }, + "microbit.uart.init.param-doc.baudrate": { + "message": "crwdns330328:0crwdne330328:0", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.bits": { + "message": "crwdns330330:0crwdne330330:0", + "description": "(parameter name) The size of bytes being transmitted. micro:bit only supports 8." + }, + "microbit.uart.init.param-doc.bits": { + "message": "crwdns330332:0crwdne330332:0", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.parity": { + "message": "crwdns330334:0crwdne330334:0", + "description": "(parameter name) How parity is checked, ``None``, ``uart.ODD`` or ``uart.EVEN``." + }, + "microbit.uart.init.param-doc.parity": { + "message": "crwdns330336:0{{None}}crwdnd330336:0{{uart.ODD}}crwdnd330336:0{{uart.EVEN}}crwdne330336:0", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.rx": { + "message": "crwdns330338:0crwdne330338:0", + "description": "(parameter name) Receiving pin." + }, + "microbit.uart.init.param-doc.rx": { + "message": "crwdns330340:0crwdne330340:0", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.stop": { + "message": "crwdns330342:0crwdne330342:0", + "description": "(parameter name) The number of stop bits, has to be 1 for micro:bit." + }, + "microbit.uart.init.param-doc.stop": { + "message": "crwdns330344:0crwdne330344:0", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.tx": { + "message": "crwdns330346:0crwdne330346:0", + "description": "(parameter name) Transmitting pin." + }, + "microbit.uart.init.param-doc.tx": { + "message": "crwdns330348:0crwdne330348:0", + "description": "Parameter docs" + }, + "microbit.uart.any": { + "message": "crwdns330350:0crwdne330350:0", + "description": "(function name) Check if any data is waiting." + }, + "microbit.uart.any.summary": { + "message": "crwdns334688:0crwdne334688:0", + "description": "Check if any data is waiting." + }, + "microbit.uart.read": { + "message": "crwdns330354:0crwdne330354:0", + "description": "(function name) Read bytes." + }, + "microbit.uart.read.summary": { + "message": "crwdns330356:0crwdne330356:0", + "description": "Read bytes." + }, + "microbit.uart.read.param-name.nbytes": { + "message": "crwdns330358:0crwdne330358:0", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read as many bytes as possible" + }, + "microbit.uart.read.param-doc.nbytes": { + "message": "crwdns330360:0{{nbytes}}crwdne330360:0", + "description": "Parameter docs" + }, + "microbit.uart.readinto": { + "message": "crwdns330362:0crwdne330362:0", + "description": "(function name) Read bytes into the ``buf``." + }, + "microbit.uart.readinto.summary": { + "message": "crwdns330364:0{{buf}}crwdne330364:0", + "description": "Read bytes into the ``buf``." + }, + "microbit.uart.readinto.param-name.buf": { + "message": "crwdns330366:0crwdne330366:0", + "description": "(parameter name) The buffer to write to." + }, + "microbit.uart.readinto.param-doc.buf": { + "message": "crwdns330368:0crwdne330368:0", + "description": "Parameter docs" + }, + "microbit.uart.readinto.param-name.nbytes": { + "message": "crwdns330370:0crwdne330370:0", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read ``len(buf)`` bytes." + }, + "microbit.uart.readinto.param-doc.nbytes": { + "message": "crwdns330372:0{{nbytes}}crwdnd330372:0{{len(buf)}}crwdne330372:0", + "description": "Parameter docs" + }, + "microbit.uart.readline": { + "message": "crwdns330374:0crwdne330374:0", + "description": "(function name) Read a line, ending in a newline character." + }, + "microbit.uart.readline.summary": { + "message": "crwdns330376:0crwdne330376:0", + "description": "Read a line, ending in a newline character." + }, + "microbit.uart.write": { + "message": "crwdns330378:0crwdne330378:0", + "description": "(function name) Write a buffer to the bus." + }, + "microbit.uart.write.summary": { + "message": "crwdns330380:0crwdne330380:0", + "description": "Write a buffer to the bus." + }, + "microbit.uart.write.param-name.buf": { + "message": "crwdns330382:0crwdne330382:0", + "description": "(parameter name) A bytes object or a string." + }, + "microbit.uart.write.param-doc.buf": { + "message": "crwdns330384:0crwdne330384:0", + "description": "Parameter docs" + }, + "micropython": { + "message": "crwdns330386:0crwdne330386:0", + "description": "(module name) MicroPython internals." + }, + "micropython.summary": { + "message": "crwdns330388:0crwdne330388:0", + "description": "MicroPython internals." + }, + "micropython.const": { + "message": "crwdns330390:0crwdne330390:0", + "description": "(function name) Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.summary": { + "message": "crwdns330392:0crwdne330392:0", + "description": "Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.param-name.expr": { + "message": "crwdns330394:0crwdne330394:0", + "description": "(parameter name) A constant expression." + }, + "micropython.const.param-doc.expr": { + "message": "crwdns330396:0crwdne330396:0", + "description": "Parameter docs" + }, + "micropython.opt_level-1": { + "message": "crwdns330398:0crwdne330398:0", + "description": "(function name) Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-1.summary": { + "message": "crwdns330400:0crwdne330400:0", + "description": "Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-2": { + "message": "crwdns330402:0crwdne330402:0", + "description": "(function name) Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.summary": { + "message": "crwdns330404:0crwdne330404:0", + "description": "Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.param-name.level": { + "message": "crwdns330406:0crwdne330406:0", + "description": "(parameter name) An integer optimisation level." + }, + "micropython.opt_level-2.param-doc.level": { + "message": "crwdns330408:0crwdne330408:0", + "description": "Parameter docs" + }, + "micropython.mem_info": { + "message": "crwdns330410:0crwdne330410:0", + "description": "(function name) Print information about currently used memory." + }, + "micropython.mem_info.summary": { + "message": "crwdns330412:0crwdne330412:0", + "description": "Print information about currently used memory." + }, + "micropython.mem_info.param-name.verbose": { + "message": "crwdns330414:0crwdne330414:0", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.mem_info.param-doc.verbose": { + "message": "crwdns330416:0{{verbose}}crwdne330416:0", + "description": "Parameter docs" + }, + "micropython.qstr_info": { + "message": "crwdns330418:0crwdne330418:0", + "description": "(function name) Print information about currently interned strings." + }, + "micropython.qstr_info.summary": { + "message": "crwdns330420:0crwdne330420:0", + "description": "Print information about currently interned strings." + }, + "micropython.qstr_info.param-name.verbose": { + "message": "crwdns330422:0crwdne330422:0", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.qstr_info.param-doc.verbose": { + "message": "crwdns330424:0{{verbose}}crwdne330424:0", + "description": "Parameter docs" + }, + "micropython.stack_use": { + "message": "crwdns330426:0crwdne330426:0", + "description": "(function name) Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.stack_use.summary": { + "message": "crwdns330428:0crwdne330428:0", + "description": "Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.heap_lock": { + "message": "crwdns330430:0crwdne330430:0", + "description": "(function name) Lock the heap." + }, + "micropython.heap_lock.summary": { + "message": "crwdns330432:0crwdne330432:0", + "description": "Lock the heap." + }, + "micropython.heap_unlock": { + "message": "crwdns330434:0crwdne330434:0", + "description": "(function name) Unlock the heap." + }, + "micropython.heap_unlock.summary": { + "message": "crwdns330436:0crwdne330436:0", + "description": "Unlock the heap." + }, + "micropython.kbd_intr": { + "message": "crwdns330438:0crwdne330438:0", + "description": "(function name) Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.summary": { + "message": "crwdns330440:0{{KeyboardInterrupt}}crwdne330440:0", + "description": "Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.param-name.chr": { + "message": "crwdns330442:0crwdne330442:0", + "description": "(parameter name) Character code to raise the interrupt or -1 to disable capture of Ctrl-C." + }, + "micropython.kbd_intr.param-doc.chr": { + "message": "crwdns330444:0crwdne330444:0", + "description": "Parameter docs" + }, + "music": { + "message": "crwdns330446:0crwdne330446:0", + "description": "(module name) Create and play melodies." + }, + "music.summary": { + "message": "crwdns330448:0crwdne330448:0", + "description": "Create and play melodies." + }, + "music.DADADADUM": { + "message": "crwdns330450:0crwdne330450:0", + "description": "(field name) Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.DADADADUM.summary": { + "message": "crwdns330452:0crwdne330452:0", + "description": "Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.ENTERTAINER": { + "message": "crwdns330454:0crwdne330454:0", + "description": "(field name) Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.ENTERTAINER.summary": { + "message": "crwdns330456:0crwdne330456:0", + "description": "Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.PRELUDE": { + "message": "crwdns330458:0crwdne330458:0", + "description": "(field name) Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.PRELUDE.summary": { + "message": "crwdns330460:0crwdne330460:0", + "description": "Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.ODE": { + "message": "crwdns330462:0crwdne330462:0", + "description": "(field name) Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.ODE.summary": { + "message": "crwdns330464:0crwdne330464:0", + "description": "Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.NYAN": { + "message": "crwdns330466:0crwdne330466:0", + "description": "(field name) Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.NYAN.summary": { + "message": "crwdns330468:0crwdne330468:0", + "description": "Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.RINGTONE": { + "message": "crwdns330470:0crwdne330470:0", + "description": "(field name) Melody: something that sounds like a mobile phone ringtone." + }, + "music.RINGTONE.summary": { + "message": "crwdns330472:0crwdne330472:0", + "description": "Melody: something that sounds like a mobile phone ringtone." + }, + "music.FUNK": { + "message": "crwdns330474:0crwdne330474:0", + "description": "(field name) Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.FUNK.summary": { + "message": "crwdns330476:0crwdne330476:0", + "description": "Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.BLUES": { + "message": "crwdns330478:0crwdne330478:0", + "description": "(field name) Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BLUES.summary": { + "message": "crwdns330480:0crwdne330480:0", + "description": "Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BIRTHDAY": { + "message": "crwdns330482:0crwdne330482:0", + "description": "(field name) Melody: “Happy Birthday to You…”" + }, + "music.BIRTHDAY.summary": { + "message": "crwdns330484:0crwdne330484:0", + "description": "Melody: “Happy Birthday to You…”" + }, + "music.WEDDING": { + "message": "crwdns330486:0crwdne330486:0", + "description": "(field name) Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.WEDDING.summary": { + "message": "crwdns330488:0crwdne330488:0", + "description": "Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.FUNERAL": { + "message": "crwdns330490:0crwdne330490:0", + "description": "(field name) Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.FUNERAL.summary": { + "message": "crwdns330492:0crwdne330492:0", + "description": "Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.PUNCHLINE": { + "message": "crwdns330494:0crwdne330494:0", + "description": "(field name) Melody: a fun fragment that signifies a joke has been made." + }, + "music.PUNCHLINE.summary": { + "message": "crwdns330496:0crwdne330496:0", + "description": "Melody: a fun fragment that signifies a joke has been made." + }, + "music.PYTHON": { + "message": "crwdns330498:0crwdne330498:0", + "description": "(field name) Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.PYTHON.summary": { + "message": "crwdns330500:0crwdne330500:0", + "description": "Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.BADDY": { + "message": "crwdns330502:0crwdne330502:0", + "description": "(field name) Melody: silent movie era entrance of a baddy." + }, + "music.BADDY.summary": { + "message": "crwdns330504:0crwdne330504:0", + "description": "Melody: silent movie era entrance of a baddy." + }, + "music.CHASE": { + "message": "crwdns330506:0crwdne330506:0", + "description": "(field name) Melody: silent movie era chase scene." + }, + "music.CHASE.summary": { + "message": "crwdns330508:0crwdne330508:0", + "description": "Melody: silent movie era chase scene." + }, + "music.BA_DING": { + "message": "crwdns330510:0crwdne330510:0", + "description": "(field name) Melody: a short signal to indicate something has happened." + }, + "music.BA_DING.summary": { + "message": "crwdns330512:0crwdne330512:0", + "description": "Melody: a short signal to indicate something has happened." + }, + "music.WAWAWAWAA": { + "message": "crwdns330514:0crwdne330514:0", + "description": "(field name) Melody: a very sad trombone." + }, + "music.WAWAWAWAA.summary": { + "message": "crwdns330516:0crwdne330516:0", + "description": "Melody: a very sad trombone." + }, + "music.JUMP_UP": { + "message": "crwdns330518:0crwdne330518:0", + "description": "(field name) Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_UP.summary": { + "message": "crwdns330520:0crwdne330520:0", + "description": "Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_DOWN": { + "message": "crwdns330522:0crwdne330522:0", + "description": "(field name) Melody: for use in a game, indicating downward movement." + }, + "music.JUMP_DOWN.summary": { + "message": "crwdns330524:0crwdne330524:0", + "description": "Melody: for use in a game, indicating downward movement." + }, + "music.POWER_UP": { + "message": "crwdns330526:0crwdne330526:0", + "description": "(field name) Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_UP.summary": { + "message": "crwdns330528:0crwdne330528:0", + "description": "Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_DOWN": { + "message": "crwdns330530:0crwdne330530:0", + "description": "(field name) Melody: a sad fanfare to indicate an achievement lost." + }, + "music.POWER_DOWN.summary": { + "message": "crwdns330532:0crwdne330532:0", + "description": "Melody: a sad fanfare to indicate an achievement lost." + }, + "music.set_tempo": { + "message": "crwdns330534:0crwdne330534:0", + "description": "(function name) Sets the approximate tempo for playback." + }, + "music.set_tempo.summary": { + "message": "crwdns330536:0crwdne330536:0", + "description": "Sets the approximate tempo for playback." + }, + "music.set_tempo.param-name.bpm": { + "message": "crwdns330538:0crwdne330538:0", + "description": "(parameter name) An integer determining how many beats per minute." + }, + "music.set_tempo.param-doc.bpm": { + "message": "crwdns330540:0crwdne330540:0", + "description": "Parameter docs" + }, + "music.set_tempo.param-name.ticks": { + "message": "crwdns330542:0crwdne330542:0", + "description": "(parameter name) The number of ticks constituting a beat." + }, + "music.set_tempo.param-doc.ticks": { + "message": "crwdns330544:0crwdne330544:0", + "description": "Parameter docs" + }, + "music.get_tempo": { + "message": "crwdns330546:0crwdne330546:0", + "description": "(function name) Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.get_tempo.summary": { + "message": "crwdns330548:0{{(ticks, bpm)}}crwdne330548:0", + "description": "Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.play": { + "message": "crwdns330550:0crwdne330550:0", + "description": "(function name) Plays music." + }, + "music.play.summary": { + "message": "crwdns330552:0crwdne330552:0", + "description": "Plays music." + }, + "music.play.param-name.loop": { + "message": "crwdns330554:0crwdne330554:0", + "description": "(parameter name) If ``loop`` is set to ``True``, the tune repeats until ``stop`` is called or the blocking call is interrupted." + }, + "music.play.param-doc.loop": { + "message": "crwdns330556:0{{loop}}crwdnd330556:0{{True}}crwdnd330556:0{{stop}}crwdne330556:0", + "description": "Parameter docs" + }, + "music.play.param-name.music": { + "message": "crwdns330558:0crwdne330558:0", + "description": "(parameter name) music specified in `a special notation `_" + }, + "music.play.param-doc.music": { + "message": "crwdns330560:0crwdne330560:0", + "description": "Parameter docs" + }, + "music.play.param-name.pin": { + "message": "crwdns330562:0crwdne330562:0", + "description": "(parameter name) the output pin for use with an external speaker (default ``pin0``), ``None`` for no sound." + }, + "music.play.param-doc.pin": { + "message": "crwdns330564:0{{pin0}}crwdnd330564:0{{None}}crwdne330564:0", + "description": "Parameter docs" + }, + "music.play.param-name.wait": { + "message": "crwdns330566:0crwdne330566:0", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.play.param-doc.wait": { + "message": "crwdns330568:0{{wait}}crwdnd330568:0{{True}}crwdne330568:0", + "description": "Parameter docs" + }, + "music.pitch": { + "message": "crwdns330570:0crwdne330570:0", + "description": "(function name) Play a note." + }, + "music.pitch.summary": { + "message": "crwdns330572:0crwdne330572:0", + "description": "Play a note." + }, + "music.pitch.param-name.duration": { + "message": "crwdns330574:0crwdne330574:0", + "description": "(parameter name) A millisecond duration. If negative then sound is continuous until the next call or a call to ``stop``." + }, + "music.pitch.param-doc.duration": { + "message": "crwdns330576:0{{stop}}crwdne330576:0", + "description": "Parameter docs" + }, + "music.pitch.param-name.frequency": { + "message": "crwdns330578:0crwdne330578:0", + "description": "(parameter name) An integer frequency" + }, + "music.pitch.param-doc.frequency": { + "message": "crwdns330580:0crwdne330580:0", + "description": "Parameter docs" + }, + "music.pitch.param-name.pin": { + "message": "crwdns330582:0crwdne330582:0", + "description": "(parameter name) Optional output pin (default ``pin0``)." + }, + "music.pitch.param-doc.pin": { + "message": "crwdns330584:0{{pin0}}crwdne330584:0", + "description": "Parameter docs" + }, + "music.pitch.param-name.wait": { + "message": "crwdns330586:0crwdne330586:0", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.pitch.param-doc.wait": { + "message": "crwdns330588:0{{wait}}crwdnd330588:0{{True}}crwdne330588:0", + "description": "Parameter docs" + }, + "music.stop": { + "message": "crwdns330590:0crwdne330590:0", + "description": "(function name) Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.summary": { + "message": "crwdns330592:0crwdne330592:0", + "description": "Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.param-name.pin": { + "message": "crwdns330594:0crwdne330594:0", + "description": "(parameter name) An optional argument can be provided to specify a pin, e.g. ``music.stop(pin1)``." + }, + "music.stop.param-doc.pin": { + "message": "crwdns330596:0{{music.stop(pin1)}}crwdne330596:0", + "description": "Parameter docs" + }, + "music.reset": { + "message": "crwdns330598:0crwdne330598:0", + "description": "(function name) Resets ticks, bpm, duration and octave to their default values." + }, + "music.reset.summary": { + "message": "crwdns330600:0crwdne330600:0", + "description": "Resets ticks, bpm, duration and octave to their default values." + }, + "neopixel": { + "message": "crwdns330602:0crwdne330602:0", + "description": "(module name) Individually addressable RGB and RGBW LED strips." + }, + "neopixel.summary": { + "message": "crwdns330604:0crwdne330604:0", + "description": "Individually addressable RGB and RGBW LED strips." + }, + "neopixel.NeoPixel.__init__": { + "message": "crwdns330606:0crwdne330606:0", + "description": "(function name) Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.summary": { + "message": "crwdns330608:0crwdne330608:0", + "description": "Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.param-name.bpp": { + "message": "crwdns330610:0crwdne330610:0", + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + }, + "neopixel.NeoPixel.__init__.param-doc.bpp": { + "message": "crwdns355240:0crwdne355240:0", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.n": { + "message": "crwdns330614:0crwdne330614:0", + "description": "(parameter name) The number of neopixels in the strip." + }, + "neopixel.NeoPixel.__init__.param-doc.n": { + "message": "crwdns330616:0crwdne330616:0", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.pin": { + "message": "crwdns330618:0crwdne330618:0", + "description": "(parameter name) The pin controlling the neopixel strip." + }, + "neopixel.NeoPixel.__init__.param-doc.pin": { + "message": "crwdns330620:0crwdne330620:0", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.clear": { + "message": "crwdns330622:0crwdne330622:0", + "description": "(function name) Clear all the pixels." + }, + "neopixel.NeoPixel.clear.summary": { + "message": "crwdns330624:0crwdne330624:0", + "description": "Clear all the pixels." + }, + "neopixel.NeoPixel.show": { + "message": "crwdns330626:0crwdne330626:0", + "description": "(function name) Show the pixels." + }, + "neopixel.NeoPixel.show.summary": { + "message": "crwdns330628:0crwdne330628:0", + "description": "Show the pixels." + }, + "neopixel.NeoPixel.write": { + "message": "crwdns330630:0crwdne330630:0", + "description": "(function name) Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.write.summary": { + "message": "crwdns330632:0crwdne330632:0", + "description": "Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill": { + "message": "crwdns330634:0crwdne330634:0", + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.summary": { + "message": "crwdns330636:0crwdne330636:0", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.param-name.colour": { + "message": "crwdns330638:0crwdne330638:0", + "description": "(parameter name) A tuple of the same length as the number of bytes per pixel (bpp)." + }, + "neopixel.NeoPixel.fill.param-doc.colour": { + "message": "crwdns330640:0crwdne330640:0", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__": { + "message": "crwdns330642:0crwdne330642:0", + "description": "(function name) Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.summary": { + "message": "crwdns330644:0crwdne330644:0", + "description": "Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.param-name.key": { + "message": "crwdns330646:0crwdne330646:0", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__setitem__.param-doc.key": { + "message": "crwdns330648:0crwdne330648:0", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__.param-name.value": { + "message": "crwdns330650:0crwdne330650:0", + "description": "(parameter name) The colour." + }, + "neopixel.NeoPixel.__setitem__.param-doc.value": { + "message": "crwdns330652:0crwdne330652:0", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__getitem__": { + "message": "crwdns330654:0crwdne330654:0", + "description": "(function name) Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.summary": { + "message": "crwdns330656:0crwdne330656:0", + "description": "Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.param-name.key": { + "message": "crwdns330658:0crwdne330658:0", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__getitem__.param-doc.key": { + "message": "crwdns330660:0crwdne330660:0", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__len__": { + "message": "crwdns330662:0crwdne330662:0", + "description": "(function name) Get length of this pixel strip." + }, + "neopixel.NeoPixel.__len__.summary": { + "message": "crwdns330664:0crwdne330664:0", + "description": "Get length of this pixel strip." + }, + "os": { + "message": "crwdns330666:0crwdne330666:0", + "description": "(module name) Access the file system." + }, + "os.summary": { + "message": "crwdns330668:0crwdne330668:0", + "description": "Access the file system." + }, + "os.listdir": { + "message": "crwdns330670:0crwdne330670:0", + "description": "(function name) List files." + }, + "os.listdir.summary": { + "message": "crwdns330672:0crwdne330672:0", + "description": "List files." + }, + "os.remove": { + "message": "crwdns330674:0crwdne330674:0", + "description": "(function name) Remove (delete) a file." + }, + "os.remove.summary": { + "message": "crwdns330676:0crwdne330676:0", + "description": "Remove (delete) a file." + }, + "os.remove.param-name.filename": { + "message": "crwdns330678:0crwdne330678:0", + "description": "(parameter name) The file to delete." + }, + "os.remove.param-doc.filename": { + "message": "crwdns330680:0crwdne330680:0", + "description": "Parameter docs" + }, + "os.size": { + "message": "crwdns330682:0crwdne330682:0", + "description": "(function name) Returns the size of a file." + }, + "os.size.summary": { + "message": "crwdns330684:0crwdne330684:0", + "description": "Returns the size of a file." + }, + "os.size.param-name.filename": { + "message": "crwdns330686:0crwdne330686:0", + "description": "(parameter name) The file" + }, + "os.size.param-doc.filename": { + "message": "crwdns330688:0crwdne330688:0", + "description": "Parameter docs" + }, + "os.uname_result": { + "message": "crwdns330690:0crwdne330690:0", + "description": "(class name) Result of ``os.uname()``" + }, + "os.uname_result.summary": { + "message": "crwdns330692:0{{os.uname()}}crwdne330692:0", + "description": "Result of ``os.uname()``" + }, + "os.uname_result.sysname": { + "message": "crwdns330694:0crwdne330694:0", + "description": "(field name) Operating system name." + }, + "os.uname_result.sysname.summary": { + "message": "crwdns330696:0crwdne330696:0", + "description": "Operating system name." + }, + "os.uname_result.nodename": { + "message": "crwdns330698:0crwdne330698:0", + "description": "(field name) Name of machine on network (implementation-defined)." + }, + "os.uname_result.nodename.summary": { + "message": "crwdns330700:0crwdne330700:0", + "description": "Name of machine on network (implementation-defined)." + }, + "os.uname_result.release": { + "message": "crwdns330702:0crwdne330702:0", + "description": "(field name) Operating system release." + }, + "os.uname_result.release.summary": { + "message": "crwdns330704:0crwdne330704:0", + "description": "Operating system release." + }, + "os.uname_result.version": { + "message": "crwdns330706:0crwdne330706:0", + "description": "(field name) Operating system version." + }, + "os.uname_result.version.summary": { + "message": "crwdns330708:0crwdne330708:0", + "description": "Operating system version." + }, + "os.uname_result.machine": { + "message": "crwdns330710:0crwdne330710:0", + "description": "(field name) Hardware identifier." + }, + "os.uname_result.machine.summary": { + "message": "crwdns330712:0crwdne330712:0", + "description": "Hardware identifier." + }, + "os.uname": { + "message": "crwdns330714:0crwdne330714:0", + "description": "(function name) Returns information identifying the current operating system." + }, + "os.uname.summary": { + "message": "crwdns330716:0crwdne330716:0", + "description": "Returns information identifying the current operating system." + }, + "radio": { + "message": "crwdns330718:0crwdne330718:0", + "description": "(module name) Communicate between micro:bits with the built-in radio." + }, + "radio.summary": { + "message": "crwdns330720:0crwdne330720:0", + "description": "Communicate between micro:bits with the built-in radio." + }, + "radio.RATE_1MBIT": { + "message": "crwdns330722:0crwdne330722:0", + "description": "(field name) Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_1MBIT.summary": { + "message": "crwdns330724:0crwdne330724:0", + "description": "Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_2MBIT": { + "message": "crwdns330726:0crwdne330726:0", + "description": "(field name) Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.RATE_2MBIT.summary": { + "message": "crwdns330728:0crwdne330728:0", + "description": "Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.on": { + "message": "crwdns330730:0crwdne330730:0", + "description": "(function name) Turns the radio on." + }, + "radio.on.summary": { + "message": "crwdns330732:0crwdne330732:0", + "description": "Turns the radio on." + }, + "radio.off": { + "message": "crwdns330734:0crwdne330734:0", + "description": "(function name) Turns off the radio, saving power and memory." + }, + "radio.off.summary": { + "message": "crwdns330736:0crwdne330736:0", + "description": "Turns off the radio, saving power and memory." + }, + "radio.config": { + "message": "crwdns330738:0crwdne330738:0", + "description": "(function name) Configures the radio." + }, + "radio.config.summary": { + "message": "crwdns330740:0crwdne330740:0", + "description": "Configures the radio." + }, + "radio.config.param-name.address": { + "message": "crwdns330742:0crwdne330742:0", + "description": "(parameter name) (default=0x75626974) an arbitrary name, expressed as a 32-bit address, that's used to filter incoming packets at the hardware level, keeping only those that match the address you set.\nThe default used by other micro:bit related platforms is the default setting used here." + }, + "radio.config.param-doc.address": { + "message": "crwdns330744:0crwdne330744:0", + "description": "Parameter docs" + }, + "radio.config.param-name.channel": { + "message": "crwdns330746:0crwdne330746:0", + "description": "(parameter name) (default=7) an integer value from 0 to 83 (inclusive) that defines an arbitrary \"channel\" to which the radio is tuned.\nMessages will be sent via this channel and only messages received via this channel will be put onto the incoming message queue. Each step is 1MHz wide, based at 2400MHz." + }, + "radio.config.param-doc.channel": { + "message": "crwdns330748:0crwdne330748:0", + "description": "Parameter docs" + }, + "radio.config.param-name.data_rate": { + "message": "crwdns330750:0crwdne330750:0", + "description": "(parameter name) (default=``radio.RATE_1MBIT``) indicates the speed at which data throughput takes place.\nCan be one of the following constants defined in the ``radio`` module: ``RATE_250KBIT``, ``RATE_1MBIT`` or ``RATE_2MBIT``." + }, + "radio.config.param-doc.data_rate": { + "message": "crwdns330752:0{{radio.RATE_1MBIT}}crwdnd330752:0{{radio}}crwdnd330752:0{{RATE_250KBIT}}crwdnd330752:0{{RATE_1MBIT}}crwdnd330752:0{{RATE_2MBIT}}crwdne330752:0", + "description": "Parameter docs" + }, + "radio.config.param-name.group": { + "message": "crwdns330754:0crwdne330754:0", + "description": "(parameter name) (default=0) an 8-bit value (0-255) used with the ``address`` when filtering messages.\nConceptually, \"address\" is like a house/office address and \"group\" is like the person at that address to which you want to send your message." + }, + "radio.config.param-doc.group": { + "message": "crwdns330756:0{{address}}crwdne330756:0", + "description": "Parameter docs" + }, + "radio.config.param-name.length": { + "message": "crwdns330758:0crwdne330758:0", + "description": "(parameter name) (default=32) defines the maximum length, in bytes, of a message sent via the radio.\nIt can be up to 251 bytes long (254 - 3 bytes for S0, LENGTH and S1 preamble)." + }, + "radio.config.param-doc.length": { + "message": "crwdns330760:0crwdne330760:0", + "description": "Parameter docs" + }, + "radio.config.param-name.power": { + "message": "crwdns330762:0crwdne330762:0", + "description": "(parameter name) (default=6) is an integer value from 0 to 7 (inclusive) to indicate the strength of signal used when broadcasting a message.\nThe higher the value the stronger the signal, but the more power is consumed by the device. The numbering translates to positions in the following list of dBm (decibel milliwatt) values: -30, -20, -16, -12, -8, -4, 0, 4." + }, + "radio.config.param-doc.power": { + "message": "crwdns330764:0crwdne330764:0", + "description": "Parameter docs" + }, + "radio.config.param-name.queue": { + "message": "crwdns330766:0crwdne330766:0", + "description": "(parameter name) (default=3) specifies the number of messages that can be stored on the incoming message queue.\nIf there are no spaces left on the queue for incoming messages, then the incoming message is dropped." + }, + "radio.config.param-doc.queue": { + "message": "crwdns330768:0crwdne330768:0", + "description": "Parameter docs" + }, + "radio.reset": { + "message": "crwdns330770:0crwdne330770:0", + "description": "(function name) Reset the settings to their default values." + }, + "radio.reset.summary": { + "message": "crwdns330772:0crwdne330772:0", + "description": "Reset the settings to their default values." + }, + "radio.send_bytes": { + "message": "crwdns330774:0crwdne330774:0", + "description": "(function name) Sends a message containing bytes." + }, + "radio.send_bytes.summary": { + "message": "crwdns330776:0crwdne330776:0", + "description": "Sends a message containing bytes." + }, + "radio.send_bytes.param-name.message": { + "message": "crwdns330778:0crwdne330778:0", + "description": "(parameter name) The bytes to send." + }, + "radio.send_bytes.param-doc.message": { + "message": "crwdns330780:0crwdne330780:0", + "description": "Parameter docs" + }, + "radio.receive_bytes": { + "message": "crwdns330782:0crwdne330782:0", + "description": "(function name) Receive the next incoming message on the message queue." + }, + "radio.receive_bytes.summary": { + "message": "crwdns330784:0crwdne330784:0", + "description": "Receive the next incoming message on the message queue." + }, + "radio.receive_bytes_into": { + "message": "crwdns330786:0crwdne330786:0", + "description": "(function name) Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.summary": { + "message": "crwdns330788:0crwdne330788:0", + "description": "Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.param-name.buffer": { + "message": "crwdns330790:0crwdne330790:0", + "description": "(parameter name) The target buffer. The message is truncated if larger than the buffer." + }, + "radio.receive_bytes_into.param-doc.buffer": { + "message": "crwdns330792:0crwdne330792:0", + "description": "Parameter docs" + }, + "radio.send": { + "message": "crwdns330794:0crwdne330794:0", + "description": "(function name) Sends a message string." + }, + "radio.send.summary": { + "message": "crwdns330796:0crwdne330796:0", + "description": "Sends a message string." + }, + "radio.send.param-name.message": { + "message": "crwdns330798:0crwdne330798:0", + "description": "(parameter name) The string to send." + }, + "radio.send.param-doc.message": { + "message": "crwdns330800:0crwdne330800:0", + "description": "Parameter docs" + }, + "radio.receive": { + "message": "crwdns330802:0crwdne330802:0", + "description": "(function name) Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive.summary": { + "message": "crwdns330804:0{{receive_bytes}}crwdne330804:0", + "description": "Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive_full": { + "message": "crwdns330806:0crwdne330806:0", + "description": "(function name) Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "radio.receive_full.summary": { + "message": "crwdns330808:0crwdne330808:0", + "description": "Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "random": { + "message": "crwdns330810:0crwdne330810:0", + "description": "(module name) Generate random numbers." + }, + "random.summary": { + "message": "crwdns330812:0crwdne330812:0", + "description": "Generate random numbers." + }, + "random.getrandbits": { + "message": "crwdns330814:0crwdne330814:0", + "description": "(function name) Generate an integer with ``n`` random bits." + }, + "random.getrandbits.summary": { + "message": "crwdns330816:0{{n}}crwdne330816:0", + "description": "Generate an integer with ``n`` random bits." + }, + "random.getrandbits.param-name.n": { + "message": "crwdns330818:0crwdne330818:0", + "description": "(parameter name) A value between 1-30 (inclusive)." + }, + "random.getrandbits.param-doc.n": { + "message": "crwdns330820:0crwdne330820:0", + "description": "Parameter docs" + }, + "random.seed": { + "message": "crwdns330822:0crwdne330822:0", + "description": "(function name) Initialize the random number generator." + }, + "random.seed.summary": { + "message": "crwdns330824:0crwdne330824:0", + "description": "Initialize the random number generator." + }, + "random.seed.param-name.n": { + "message": "crwdns330826:0crwdne330826:0", + "description": "(parameter name) The integer seed" + }, + "random.seed.param-doc.n": { + "message": "crwdns330828:0crwdne330828:0", + "description": "Parameter docs" + }, + "random.randint": { + "message": "crwdns330830:0crwdne330830:0", + "description": "(function name) Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.summary": { + "message": "crwdns330832:0{{a}}crwdnd330832:0{{b}}crwdne330832:0", + "description": "Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.param-name.a": { + "message": "crwdns330834:0crwdne330834:0", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.randint.param-doc.a": { + "message": "crwdns330836:0crwdne330836:0", + "description": "Parameter docs" + }, + "random.randint.param-name.b": { + "message": "crwdns330838:0crwdne330838:0", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.randint.param-doc.b": { + "message": "crwdns330840:0crwdne330840:0", + "description": "Parameter docs" + }, + "random.randrange-1": { + "message": "crwdns330842:0crwdne330842:0", + "description": "(function name) Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.summary": { + "message": "crwdns330844:0{{stop}}crwdne330844:0", + "description": "Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.param-name.stop": { + "message": "crwdns330846:0crwdne330846:0", + "description": "(parameter name) End value for the range (exclusive)" + }, + "random.randrange-1.param-doc.stop": { + "message": "crwdns330848:0crwdne330848:0", + "description": "Parameter docs" + }, + "random.randrange-2": { + "message": "crwdns330850:0crwdne330850:0", + "description": "(function name) Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.summary": { + "message": "crwdns330852:0{{range(start, stop, step)}}crwdne330852:0", + "description": "Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.param-name.start": { + "message": "crwdns330854:0crwdne330854:0", + "description": "(parameter name) The start of the range (inclusive)" + }, + "random.randrange-2.param-doc.start": { + "message": "crwdns330856:0crwdne330856:0", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.step": { + "message": "crwdns330858:0crwdne330858:0", + "description": "(parameter name) The step." + }, + "random.randrange-2.param-doc.step": { + "message": "crwdns330860:0crwdne330860:0", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.stop": { + "message": "crwdns330862:0crwdne330862:0", + "description": "(parameter name) The end of the range (exclusive)" + }, + "random.randrange-2.param-doc.stop": { + "message": "crwdns330864:0crwdne330864:0", + "description": "Parameter docs" + }, + "random.choice": { + "message": "crwdns330866:0crwdne330866:0", + "description": "(function name) Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.summary": { + "message": "crwdns330868:0{{seq}}crwdne330868:0", + "description": "Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.param-name.seq": { + "message": "crwdns330870:0crwdne330870:0", + "description": "(parameter name) A sequence." + }, + "random.choice.param-doc.seq": { + "message": "crwdns330872:0crwdne330872:0", + "description": "Parameter docs" + }, + "random.random": { + "message": "crwdns330874:0crwdne330874:0", + "description": "(function name) Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.random.summary": { + "message": "crwdns330876:0crwdne330876:0", + "description": "Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.uniform": { + "message": "crwdns330878:0crwdne330878:0", + "description": "(function name) Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.summary": { + "message": "crwdns330880:0{{a}}crwdnd330880:0{{b}}crwdne330880:0", + "description": "Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.param-name.a": { + "message": "crwdns330882:0crwdne330882:0", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.uniform.param-doc.a": { + "message": "crwdns330884:0crwdne330884:0", + "description": "Parameter docs" + }, + "random.uniform.param-name.b": { + "message": "crwdns330886:0crwdne330886:0", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.uniform.param-doc.b": { + "message": "crwdns330888:0crwdne330888:0", + "description": "Parameter docs" + }, + "speech": { + "message": "crwdns330890:0crwdne330890:0", + "description": "(module name) Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.summary": { + "message": "crwdns330892:0crwdne330892:0", + "description": "Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.translate": { + "message": "crwdns330894:0crwdne330894:0", + "description": "(function name) Translate English words to phonemes." + }, + "speech.translate.summary": { + "message": "crwdns330896:0crwdne330896:0", + "description": "Translate English words to phonemes." + }, + "speech.translate.param-name.words": { + "message": "crwdns330898:0crwdne330898:0", + "description": "(parameter name) A string of English words." + }, + "speech.translate.param-doc.words": { + "message": "crwdns330900:0crwdne330900:0", + "description": "Parameter docs" + }, + "speech.pronounce": { + "message": "crwdns330902:0crwdne330902:0", + "description": "(function name) Pronounce phonemes." + }, + "speech.pronounce.summary": { + "message": "crwdns330904:0crwdne330904:0", + "description": "Pronounce phonemes." + }, + "speech.pronounce.param-name.mouth": { + "message": "crwdns330906:0crwdne330906:0", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.pronounce.param-doc.mouth": { + "message": "crwdns330908:0crwdne330908:0", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.phonemes": { + "message": "crwdns330910:0crwdne330910:0", + "description": "(parameter name) The string of phonemes to pronounce" + }, + "speech.pronounce.param-doc.phonemes": { + "message": "crwdns330912:0crwdne330912:0", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pin": { + "message": "crwdns330914:0crwdne330914:0", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.pronounce.param-doc.pin": { + "message": "crwdns330916:0{{pin0}}crwdne330916:0", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pitch": { + "message": "crwdns330918:0crwdne330918:0", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.pronounce.param-doc.pitch": { + "message": "crwdns330920:0crwdne330920:0", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.speed": { + "message": "crwdns330922:0crwdne330922:0", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.pronounce.param-doc.speed": { + "message": "crwdns330924:0crwdne330924:0", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.throat": { + "message": "crwdns330926:0crwdne330926:0", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.pronounce.param-doc.throat": { + "message": "crwdns330928:0crwdne330928:0", + "description": "Parameter docs" + }, + "speech.say": { + "message": "crwdns330930:0crwdne330930:0", + "description": "(function name) Say English words." + }, + "speech.say.summary": { + "message": "crwdns330932:0crwdne330932:0", + "description": "Say English words." + }, + "speech.say.param-name.mouth": { + "message": "crwdns330934:0crwdne330934:0", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.say.param-doc.mouth": { + "message": "crwdns330936:0crwdne330936:0", + "description": "Parameter docs" + }, + "speech.say.param-name.pin": { + "message": "crwdns330938:0crwdne330938:0", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.say.param-doc.pin": { + "message": "crwdns330940:0{{pin0}}crwdne330940:0", + "description": "Parameter docs" + }, + "speech.say.param-name.pitch": { + "message": "crwdns330942:0crwdne330942:0", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.say.param-doc.pitch": { + "message": "crwdns330944:0crwdne330944:0", + "description": "Parameter docs" + }, + "speech.say.param-name.speed": { + "message": "crwdns330946:0crwdne330946:0", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.say.param-doc.speed": { + "message": "crwdns330948:0crwdne330948:0", + "description": "Parameter docs" + }, + "speech.say.param-name.throat": { + "message": "crwdns330950:0crwdne330950:0", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.say.param-doc.throat": { + "message": "crwdns330952:0crwdne330952:0", + "description": "Parameter docs" + }, + "speech.say.param-name.words": { + "message": "crwdns330954:0crwdne330954:0", + "description": "(parameter name) The string of words to say." + }, + "speech.say.param-doc.words": { + "message": "crwdns330956:0crwdne330956:0", + "description": "Parameter docs" + }, + "speech.sing": { + "message": "crwdns330958:0crwdne330958:0", + "description": "(function name) Sing phonemes." + }, + "speech.sing.summary": { + "message": "crwdns330960:0crwdne330960:0", + "description": "Sing phonemes." + }, + "speech.sing.param-name.mouth": { + "message": "crwdns330962:0crwdne330962:0", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.sing.param-doc.mouth": { + "message": "crwdns330964:0crwdne330964:0", + "description": "Parameter docs" + }, + "speech.sing.param-name.phonemes": { + "message": "crwdns330966:0crwdne330966:0", + "description": "(parameter name) The string of words to sing." + }, + "speech.sing.param-doc.phonemes": { + "message": "crwdns330968:0crwdne330968:0", + "description": "Parameter docs" + }, + "speech.sing.param-name.pin": { + "message": "crwdns330970:0crwdne330970:0", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.sing.param-doc.pin": { + "message": "crwdns330972:0{{pin0}}crwdne330972:0", + "description": "Parameter docs" + }, + "speech.sing.param-name.pitch": { + "message": "crwdns330974:0crwdne330974:0", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.sing.param-doc.pitch": { + "message": "crwdns330976:0crwdne330976:0", + "description": "Parameter docs" + }, + "speech.sing.param-name.speed": { + "message": "crwdns330978:0crwdne330978:0", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.sing.param-doc.speed": { + "message": "crwdns330980:0crwdne330980:0", + "description": "Parameter docs" + }, + "speech.sing.param-name.throat": { + "message": "crwdns330982:0crwdne330982:0", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.sing.param-doc.throat": { + "message": "crwdns330984:0crwdne330984:0", + "description": "Parameter docs" + }, + "struct": { + "message": "crwdns330986:0crwdne330986:0", + "description": "(module name) Pack and unpack primitive data types." + }, + "struct.summary": { + "message": "crwdns330988:0crwdne330988:0", + "description": "Pack and unpack primitive data types." + }, + "struct.calcsize": { + "message": "crwdns330990:0crwdne330990:0", + "description": "(function name) Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.summary": { + "message": "crwdns330992:0{{fmt}}crwdne330992:0", + "description": "Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.param-name.fmt": { + "message": "crwdns330994:0crwdne330994:0", + "description": "(parameter name) A format string." + }, + "struct.calcsize.param-doc.fmt": { + "message": "crwdns330996:0crwdne330996:0", + "description": "Parameter docs" + }, + "struct.pack": { + "message": "crwdns330998:0crwdne330998:0", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack.summary": { + "message": "crwdns331000:0crwdne331000:0", + "description": "Pack values according to a format string." + }, + "struct.pack.param-name.*vn": { + "message": "crwdns331002:0crwdne331002:0", + "description": "(parameter name) The remaining values." + }, + "struct.pack.param-doc.*vn": { + "message": "crwdns331004:0crwdne331004:0", + "description": "Parameter docs" + }, + "struct.pack.param-name.fmt": { + "message": "crwdns331006:0crwdne331006:0", + "description": "(parameter name) The format string." + }, + "struct.pack.param-doc.fmt": { + "message": "crwdns331008:0crwdne331008:0", + "description": "Parameter docs" + }, + "struct.pack.param-name.v1": { + "message": "crwdns331010:0crwdne331010:0", + "description": "(parameter name) The first value." + }, + "struct.pack.param-doc.v1": { + "message": "crwdns331012:0crwdne331012:0", + "description": "Parameter docs" + }, + "struct.pack_into": { + "message": "crwdns331014:0crwdne331014:0", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack_into.summary": { + "message": "crwdns331016:0crwdne331016:0", + "description": "Pack values according to a format string." + }, + "struct.pack_into.param-name.*vn": { + "message": "crwdns331018:0crwdne331018:0", + "description": "(parameter name) The remaining values." + }, + "struct.pack_into.param-doc.*vn": { + "message": "crwdns331020:0crwdne331020:0", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.buffer": { + "message": "crwdns331022:0crwdne331022:0", + "description": "(parameter name) The target buffer to write into." + }, + "struct.pack_into.param-doc.buffer": { + "message": "crwdns331024:0crwdne331024:0", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.fmt": { + "message": "crwdns331026:0crwdne331026:0", + "description": "(parameter name) The format string." + }, + "struct.pack_into.param-doc.fmt": { + "message": "crwdns331028:0crwdne331028:0", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.offset": { + "message": "crwdns331030:0crwdne331030:0", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.pack_into.param-doc.offset": { + "message": "crwdns331032:0crwdne331032:0", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.v1": { + "message": "crwdns331034:0crwdne331034:0", + "description": "(parameter name) The first value." + }, + "struct.pack_into.param-doc.v1": { + "message": "crwdns331036:0crwdne331036:0", + "description": "Parameter docs" + }, + "struct.unpack": { + "message": "crwdns331038:0crwdne331038:0", + "description": "(function name) Unpack data according to a format string." + }, + "struct.unpack.summary": { + "message": "crwdns331040:0crwdne331040:0", + "description": "Unpack data according to a format string." + }, + "struct.unpack.param-name.data": { + "message": "crwdns331042:0crwdne331042:0", + "description": "(parameter name) The data." + }, + "struct.unpack.param-doc.data": { + "message": "crwdns331044:0crwdne331044:0", + "description": "Parameter docs" + }, + "struct.unpack.param-name.fmt": { + "message": "crwdns331046:0crwdne331046:0", + "description": "(parameter name) The format string." + }, + "struct.unpack.param-doc.fmt": { + "message": "crwdns331048:0crwdne331048:0", + "description": "Parameter docs" + }, + "struct.unpack_from": { + "message": "crwdns331050:0crwdne331050:0", + "description": "(function name) Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.summary": { + "message": "crwdns331052:0crwdne331052:0", + "description": "Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.param-name.buffer": { + "message": "crwdns331054:0crwdne331054:0", + "description": "(parameter name) The source buffer to read from." + }, + "struct.unpack_from.param-doc.buffer": { + "message": "crwdns331056:0crwdne331056:0", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.fmt": { + "message": "crwdns331058:0crwdne331058:0", + "description": "(parameter name) The format string." + }, + "struct.unpack_from.param-doc.fmt": { + "message": "crwdns331060:0crwdne331060:0", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.offset": { + "message": "crwdns331062:0crwdne331062:0", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.unpack_from.param-doc.offset": { + "message": "crwdns331064:0crwdne331064:0", + "description": "Parameter docs" + }, + "sys": { + "message": "crwdns331066:0crwdne331066:0", + "description": "(module name) System specific functions" + }, + "sys.summary": { + "message": "crwdns331068:0crwdne331068:0", + "description": "System specific functions" + }, + "sys.exit": { + "message": "crwdns331070:0crwdne331070:0", + "description": "(function name) Terminate current program with a given exit code." + }, + "sys.exit.summary": { + "message": "crwdns331072:0crwdne331072:0", + "description": "Terminate current program with a given exit code." + }, + "sys.exit.param-name.retval": { + "message": "crwdns331074:0crwdne331074:0", + "description": "(parameter name) The exit code or message." + }, + "sys.exit.param-doc.retval": { + "message": "crwdns331076:0crwdne331076:0", + "description": "Parameter docs" + }, + "sys.print_exception": { + "message": "crwdns331078:0crwdne331078:0", + "description": "(function name) Print an exception with a traceback." + }, + "sys.print_exception.summary": { + "message": "crwdns331080:0crwdne331080:0", + "description": "Print an exception with a traceback." + }, + "sys.print_exception.param-name.exc": { + "message": "crwdns331082:0crwdne331082:0", + "description": "(parameter name) The exception to print" + }, + "sys.print_exception.param-doc.exc": { + "message": "crwdns331084:0crwdne331084:0", + "description": "Parameter docs" + }, + "sys.argv": { + "message": "crwdns331086:0crwdne331086:0", + "description": "(field name) A mutable list of arguments the current program was started with." + }, + "sys.argv.summary": { + "message": "crwdns331088:0crwdne331088:0", + "description": "A mutable list of arguments the current program was started with." + }, + "sys.byteorder": { + "message": "crwdns331090:0crwdne331090:0", + "description": "(field name) The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.byteorder.summary": { + "message": "crwdns331092:0{{\"little\"}}crwdnd331092:0{{\"big\"}}crwdne331092:0", + "description": "The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.implementation": { + "message": "crwdns331094:0crwdne331094:0", + "description": "(field name) Object with information about the current Python implementation." + }, + "sys.implementation.summary": { + "message": "crwdns331096:0crwdne331096:0", + "description": "Object with information about the current Python implementation." + }, + "sys.maxsize": { + "message": "crwdns331098:0crwdne331098:0", + "description": "(field name) \nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.maxsize.summary": { + "message": "crwdns331100:0crwdne331100:0", + "description": "\nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.modules": { + "message": "crwdns331102:0crwdne331102:0", + "description": "(field name) Dictionary of loaded modules. " + }, + "sys.modules.summary": { + "message": "crwdns331104:0crwdne331104:0", + "description": "Dictionary of loaded modules. " + }, + "sys.path": { + "message": "crwdns331106:0crwdne331106:0", + "description": "(field name) A mutable list of directories to search for imported modules." + }, + "sys.path.summary": { + "message": "crwdns331108:0crwdne331108:0", + "description": "A mutable list of directories to search for imported modules." + }, + "sys.platform": { + "message": "crwdns331110:0crwdne331110:0", + "description": "(field name) The platform that MicroPython is running on. " + }, + "sys.platform.summary": { + "message": "crwdns331112:0crwdne331112:0", + "description": "The platform that MicroPython is running on. " + }, + "sys.version": { + "message": "crwdns331114:0crwdne331114:0", + "description": "(field name) Python language version that this implementation conforms to, as a string." + }, + "sys.version.summary": { + "message": "crwdns331116:0crwdne331116:0", + "description": "Python language version that this implementation conforms to, as a string." + }, + "sys.version_info": { + "message": "crwdns331118:0crwdne331118:0", + "description": "(field name) Python language version that this implementation conforms to, as a tuple of ints." + }, + "sys.version_info.summary": { + "message": "crwdns331120:0crwdne331120:0", + "description": "Python language version that this implementation conforms to, as a tuple of ints." + }, + "time": { + "message": "crwdns331122:0crwdne331122:0", + "description": "(module name) Measure time and add delays to programs." + }, + "time.summary": { + "message": "crwdns331124:0crwdne331124:0", + "description": "Measure time and add delays to programs." + }, + "time.sleep": { + "message": "crwdns331126:0crwdne331126:0", + "description": "(function name) Delay a number of seconds." + }, + "time.sleep.summary": { + "message": "crwdns331128:0crwdne331128:0", + "description": "Delay a number of seconds." + }, + "time.sleep.param-name.seconds": { + "message": "crwdns331130:0crwdne331130:0", + "description": "(parameter name) The number of seconds to sleep for.\nUse a floating-point number to sleep for a fractional number of seconds." + }, + "time.sleep.param-doc.seconds": { + "message": "crwdns331132:0crwdne331132:0", + "description": "Parameter docs" + }, + "time.sleep_ms": { + "message": "crwdns331134:0crwdne331134:0", + "description": "(function name) Delay for given number of milliseconds." + }, + "time.sleep_ms.summary": { + "message": "crwdns331136:0crwdne331136:0", + "description": "Delay for given number of milliseconds." + }, + "time.sleep_ms.param-name.ms": { + "message": "crwdns331138:0crwdne331138:0", + "description": "(parameter name) The number of milliseconds delay (>= 0)." + }, + "time.sleep_ms.param-doc.ms": { + "message": "crwdns331140:0crwdne331140:0", + "description": "Parameter docs" + }, + "time.sleep_us": { + "message": "crwdns331142:0crwdne331142:0", + "description": "(function name) Delay for given number of microseconds." + }, + "time.sleep_us.summary": { + "message": "crwdns331144:0crwdne331144:0", + "description": "Delay for given number of microseconds." + }, + "time.sleep_us.param-name.us": { + "message": "crwdns331146:0crwdne331146:0", + "description": "(parameter name) The number of microseconds delay (>= 0)." + }, + "time.sleep_us.param-doc.us": { + "message": "crwdns331148:0crwdne331148:0", + "description": "Parameter docs" + }, + "time.ticks_ms": { + "message": "crwdns331150:0crwdne331150:0", + "description": "(function name) Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_ms.summary": { + "message": "crwdns331152:0crwdne331152:0", + "description": "Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us": { + "message": "crwdns331154:0crwdne331154:0", + "description": "(function name) Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us.summary": { + "message": "crwdns331156:0crwdne331156:0", + "description": "Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_add": { + "message": "crwdns331158:0crwdne331158:0", + "description": "(function name) Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.summary": { + "message": "crwdns331160:0crwdne331160:0", + "description": "Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.param-name.delta": { + "message": "crwdns331162:0crwdne331162:0", + "description": "(parameter name) An integer offset" + }, + "time.ticks_add.param-doc.delta": { + "message": "crwdns331164:0crwdne331164:0", + "description": "Parameter docs" + }, + "time.ticks_add.param-name.ticks": { + "message": "crwdns331166:0crwdne331166:0", + "description": "(parameter name) A ticks value" + }, + "time.ticks_add.param-doc.ticks": { + "message": "crwdns331168:0crwdne331168:0", + "description": "Parameter docs" + }, + "time.ticks_diff": { + "message": "crwdns331170:0crwdne331170:0", + "description": "(function name) Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.summary": { + "message": "crwdns331172:0{{time.ticks_ms()}}crwdnd331172:0{{ticks_us()}}crwdne331172:0", + "description": "Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.param-name.ticks1": { + "message": "crwdns331174:0crwdne331174:0", + "description": "(parameter name) The value to subtract from" + }, + "time.ticks_diff.param-doc.ticks1": { + "message": "crwdns331176:0crwdne331176:0", + "description": "Parameter docs" + }, + "time.ticks_diff.param-name.ticks2": { + "message": "crwdns331178:0crwdne331178:0", + "description": "(parameter name) The value to subtract" + }, + "time.ticks_diff.param-doc.ticks2": { + "message": "crwdns331180:0crwdne331180:0", + "description": "Parameter docs" + } +} \ No newline at end of file diff --git a/scripts/build-translations.sh b/scripts/build-translations.sh index d2a4b93..21bebeb 100755 --- a/scripts/build-translations.sh +++ b/scripts/build-translations.sh @@ -5,7 +5,7 @@ set -euxo pipefail -languages="ca de fr es-ES ja ko nl zh-CN zh-TW" +languages="ca de fr es-ES ja ko nl zh-CN zh-TW lol" for language in $languages; do lower="${language,,}" From d2959188eb50386b7b9702e4926c8fda1736d683 Mon Sep 17 00:00:00 2001 From: Grace <145345672+microbit-grace@users.noreply.github.com> Date: Tue, 14 May 2024 09:35:12 +0100 Subject: [PATCH 11/15] Add 'spi:read()' second argument (#105) --- lang/en/typeshed/stdlib/microbit/spi.pyi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/en/typeshed/stdlib/microbit/spi.pyi b/lang/en/typeshed/stdlib/microbit/spi.pyi index 08194d9..09c4046 100644 --- a/lang/en/typeshed/stdlib/microbit/spi.pyi +++ b/lang/en/typeshed/stdlib/microbit/spi.pyi @@ -27,12 +27,13 @@ def init( """ ... -def read(nbytes: int) -> bytes: - """Read bytes. +def read(nbytes: int, out: int = 0) -> bytes: + """Read at most ``nbytes`` while continuously writing the single byte given by ``out``. Example: ``spi.read(64)`` :param nbytes: Maximum number of bytes to read. + :param out: The byte value to write (default 0). :return: The bytes read. """ ... From 0d5f2f8f2395ce31785015db0325e34f8d57adae Mon Sep 17 00:00:00 2001 From: Matt Hillsdon <44397098+microbit-matt-hillsdon@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:41:33 +0100 Subject: [PATCH 12/15] Sync and add Polish (#107) I've also added the Crowdin pseudo language which we've shipped in the Python Editor to enable in-context translations using a Crowdin feature. --- crowdin/translated/api.ca.json | 16 +- crowdin/translated/api.de.json | 112 +- crowdin/translated/api.es-es.json | 66 +- crowdin/translated/api.fr.json | 16 +- crowdin/translated/api.ja.json | 16 +- crowdin/translated/api.ko.json | 36 +- crowdin/translated/api.lol.json | 18 +- crowdin/translated/api.nl.json | 16 +- crowdin/translated/api.pl.json | 5266 +++++++++++++++++ crowdin/translated/api.zh-cn.json | 18 +- crowdin/translated/api.zh-tw.json | 16 +- lang/ca/typeshed/stdlib/microbit/spi.pyi | 3 +- lang/de/typeshed/stdlib/log.pyi | 4 +- lang/de/typeshed/stdlib/microbit/__init__.pyi | 6 +- .../stdlib/microbit/accelerometer.pyi | 12 +- lang/de/typeshed/stdlib/microbit/audio.pyi | 2 +- lang/de/typeshed/stdlib/microbit/compass.pyi | 6 +- lang/de/typeshed/stdlib/microbit/display.pyi | 38 +- lang/de/typeshed/stdlib/microbit/speaker.pyi | 2 +- lang/de/typeshed/stdlib/microbit/spi.pyi | 3 +- lang/de/typeshed/stdlib/neopixel.pyi | 4 +- lang/de/typeshed/stdlib/radio.pyi | 2 +- lang/es-es/typeshed/stdlib/log.pyi | 6 +- .../typeshed/stdlib/microbit/__init__.pyi | 14 +- .../stdlib/microbit/accelerometer.pyi | 4 +- lang/es-es/typeshed/stdlib/microbit/audio.pyi | 16 +- lang/es-es/typeshed/stdlib/microbit/spi.pyi | 3 +- lang/es-es/typeshed/stdlib/microbit/uart.pyi | 2 +- lang/es-es/typeshed/stdlib/neopixel.pyi | 2 +- lang/fr/typeshed/stdlib/microbit/spi.pyi | 3 +- lang/ja/typeshed/stdlib/microbit/spi.pyi | 3 +- lang/ko/typeshed/stdlib/log.pyi | 2 +- lang/ko/typeshed/stdlib/microbit/__init__.pyi | 18 +- lang/ko/typeshed/stdlib/microbit/spi.pyi | 3 +- lang/lol/typeshed/stdlib/VERSIONS | 50 + .../typeshed/stdlib/_typeshed/__init__.pyi | 168 + lang/lol/typeshed/stdlib/abc.pyi | 28 + lang/lol/typeshed/stdlib/antigravity.pyi | 0 lang/lol/typeshed/stdlib/array.pyi | 42 + lang/lol/typeshed/stdlib/audio.pyi | 11 + lang/lol/typeshed/stdlib/builtins.pyi | 1334 +++++ .../typeshed/stdlib/collections/__init__.pyi | 60 + lang/lol/typeshed/stdlib/errno.pyi | 26 + lang/lol/typeshed/stdlib/gc.pyi | 68 + lang/lol/typeshed/stdlib/log.pyi | 89 + lang/lol/typeshed/stdlib/love.pyi | 1 + lang/lol/typeshed/stdlib/machine.pyi | 84 + lang/lol/typeshed/stdlib/math.pyi | 246 + .../lol/typeshed/stdlib/microbit/__init__.pyi | 706 +++ .../stdlib/microbit/accelerometer.pyi | 103 + lang/lol/typeshed/stdlib/microbit/audio.pyi | 123 + lang/lol/typeshed/stdlib/microbit/compass.pyi | 70 + lang/lol/typeshed/stdlib/microbit/display.pyi | 92 + lang/lol/typeshed/stdlib/microbit/i2c.pyi | 49 + .../typeshed/stdlib/microbit/microphone.pyi | 62 + lang/lol/typeshed/stdlib/microbit/speaker.pyi | 15 + lang/lol/typeshed/stdlib/microbit/spi.pyi | 47 + lang/lol/typeshed/stdlib/microbit/uart.pyi | 79 + lang/lol/typeshed/stdlib/micropython.pyi | 131 + lang/lol/typeshed/stdlib/music.pyi | 128 + lang/lol/typeshed/stdlib/neopixel.pyi | 81 + lang/lol/typeshed/stdlib/os.pyi | 63 + lang/lol/typeshed/stdlib/power.pyi | 53 + lang/lol/typeshed/stdlib/radio.pyi | 123 + lang/lol/typeshed/stdlib/random.pyi | 80 + lang/lol/typeshed/stdlib/speech.pyi | 76 + lang/lol/typeshed/stdlib/struct.pyi | 56 + lang/lol/typeshed/stdlib/sys.pyi | 93 + lang/lol/typeshed/stdlib/this.pyi | 1 + lang/lol/typeshed/stdlib/time.pyi | 110 + lang/lol/typeshed/stdlib/types.pyi | 413 ++ lang/lol/typeshed/stdlib/typing.pyi | 716 +++ .../lol/typeshed/stdlib/typing_extensions.pyi | 115 + lang/lol/typeshed/stdlib/uarray.pyi | 1 + lang/lol/typeshed/stdlib/ucollections.pyi | 1 + lang/lol/typeshed/stdlib/uerrno.pyi | 1 + lang/lol/typeshed/stdlib/urandom.pyi | 1 + lang/lol/typeshed/stdlib/ustruct.pyi | 1 + lang/lol/typeshed/stdlib/usys.pyi | 1 + lang/lol/typeshed/stdlib/utime.pyi | 1 + lang/nl/typeshed/stdlib/microbit/spi.pyi | 3 +- lang/pl/typeshed/stdlib/VERSIONS | 50 + .../pl/typeshed/stdlib/_typeshed/__init__.pyi | 168 + lang/pl/typeshed/stdlib/abc.pyi | 28 + lang/pl/typeshed/stdlib/antigravity.pyi | 0 lang/pl/typeshed/stdlib/array.pyi | 42 + lang/pl/typeshed/stdlib/audio.pyi | 11 + lang/pl/typeshed/stdlib/builtins.pyi | 1334 +++++ .../typeshed/stdlib/collections/__init__.pyi | 60 + lang/pl/typeshed/stdlib/errno.pyi | 26 + lang/pl/typeshed/stdlib/gc.pyi | 68 + lang/pl/typeshed/stdlib/log.pyi | 89 + lang/pl/typeshed/stdlib/love.pyi | 1 + lang/pl/typeshed/stdlib/machine.pyi | 84 + lang/pl/typeshed/stdlib/math.pyi | 246 + lang/pl/typeshed/stdlib/microbit/__init__.pyi | 711 +++ .../stdlib/microbit/accelerometer.pyi | 103 + lang/pl/typeshed/stdlib/microbit/audio.pyi | 123 + lang/pl/typeshed/stdlib/microbit/compass.pyi | 70 + lang/pl/typeshed/stdlib/microbit/display.pyi | 92 + lang/pl/typeshed/stdlib/microbit/i2c.pyi | 49 + .../typeshed/stdlib/microbit/microphone.pyi | 62 + lang/pl/typeshed/stdlib/microbit/speaker.pyi | 15 + lang/pl/typeshed/stdlib/microbit/spi.pyi | 47 + lang/pl/typeshed/stdlib/microbit/uart.pyi | 79 + lang/pl/typeshed/stdlib/micropython.pyi | 132 + lang/pl/typeshed/stdlib/music.pyi | 128 + lang/pl/typeshed/stdlib/neopixel.pyi | 81 + lang/pl/typeshed/stdlib/os.pyi | 63 + lang/pl/typeshed/stdlib/power.pyi | 53 + lang/pl/typeshed/stdlib/radio.pyi | 130 + lang/pl/typeshed/stdlib/random.pyi | 81 + lang/pl/typeshed/stdlib/speech.pyi | 79 + lang/pl/typeshed/stdlib/struct.pyi | 56 + lang/pl/typeshed/stdlib/sys.pyi | 96 + lang/pl/typeshed/stdlib/this.pyi | 1 + lang/pl/typeshed/stdlib/time.pyi | 117 + lang/pl/typeshed/stdlib/types.pyi | 413 ++ lang/pl/typeshed/stdlib/typing.pyi | 716 +++ lang/pl/typeshed/stdlib/typing_extensions.pyi | 115 + lang/pl/typeshed/stdlib/uarray.pyi | 1 + lang/pl/typeshed/stdlib/ucollections.pyi | 1 + lang/pl/typeshed/stdlib/uerrno.pyi | 1 + lang/pl/typeshed/stdlib/urandom.pyi | 1 + lang/pl/typeshed/stdlib/ustruct.pyi | 1 + lang/pl/typeshed/stdlib/usys.pyi | 1 + lang/pl/typeshed/stdlib/utime.pyi | 1 + lang/zh-cn/typeshed/stdlib/microbit/spi.pyi | 5 +- lang/zh-tw/typeshed/stdlib/microbit/spi.pyi | 3 +- scripts/build-translations.sh | 4 +- 130 files changed, 17187 insertions(+), 207 deletions(-) create mode 100644 crowdin/translated/api.pl.json create mode 100644 lang/lol/typeshed/stdlib/VERSIONS create mode 100644 lang/lol/typeshed/stdlib/_typeshed/__init__.pyi create mode 100644 lang/lol/typeshed/stdlib/abc.pyi create mode 100644 lang/lol/typeshed/stdlib/antigravity.pyi create mode 100644 lang/lol/typeshed/stdlib/array.pyi create mode 100644 lang/lol/typeshed/stdlib/audio.pyi create mode 100644 lang/lol/typeshed/stdlib/builtins.pyi create mode 100644 lang/lol/typeshed/stdlib/collections/__init__.pyi create mode 100644 lang/lol/typeshed/stdlib/errno.pyi create mode 100644 lang/lol/typeshed/stdlib/gc.pyi create mode 100644 lang/lol/typeshed/stdlib/log.pyi create mode 100644 lang/lol/typeshed/stdlib/love.pyi create mode 100644 lang/lol/typeshed/stdlib/machine.pyi create mode 100644 lang/lol/typeshed/stdlib/math.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/__init__.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/accelerometer.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/audio.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/compass.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/display.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/i2c.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/microphone.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/speaker.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/spi.pyi create mode 100644 lang/lol/typeshed/stdlib/microbit/uart.pyi create mode 100644 lang/lol/typeshed/stdlib/micropython.pyi create mode 100644 lang/lol/typeshed/stdlib/music.pyi create mode 100644 lang/lol/typeshed/stdlib/neopixel.pyi create mode 100644 lang/lol/typeshed/stdlib/os.pyi create mode 100644 lang/lol/typeshed/stdlib/power.pyi create mode 100644 lang/lol/typeshed/stdlib/radio.pyi create mode 100644 lang/lol/typeshed/stdlib/random.pyi create mode 100644 lang/lol/typeshed/stdlib/speech.pyi create mode 100644 lang/lol/typeshed/stdlib/struct.pyi create mode 100644 lang/lol/typeshed/stdlib/sys.pyi create mode 100644 lang/lol/typeshed/stdlib/this.pyi create mode 100644 lang/lol/typeshed/stdlib/time.pyi create mode 100644 lang/lol/typeshed/stdlib/types.pyi create mode 100644 lang/lol/typeshed/stdlib/typing.pyi create mode 100644 lang/lol/typeshed/stdlib/typing_extensions.pyi create mode 100644 lang/lol/typeshed/stdlib/uarray.pyi create mode 100644 lang/lol/typeshed/stdlib/ucollections.pyi create mode 100644 lang/lol/typeshed/stdlib/uerrno.pyi create mode 100644 lang/lol/typeshed/stdlib/urandom.pyi create mode 100644 lang/lol/typeshed/stdlib/ustruct.pyi create mode 100644 lang/lol/typeshed/stdlib/usys.pyi create mode 100644 lang/lol/typeshed/stdlib/utime.pyi create mode 100644 lang/pl/typeshed/stdlib/VERSIONS create mode 100644 lang/pl/typeshed/stdlib/_typeshed/__init__.pyi create mode 100644 lang/pl/typeshed/stdlib/abc.pyi create mode 100644 lang/pl/typeshed/stdlib/antigravity.pyi create mode 100644 lang/pl/typeshed/stdlib/array.pyi create mode 100644 lang/pl/typeshed/stdlib/audio.pyi create mode 100644 lang/pl/typeshed/stdlib/builtins.pyi create mode 100644 lang/pl/typeshed/stdlib/collections/__init__.pyi create mode 100644 lang/pl/typeshed/stdlib/errno.pyi create mode 100644 lang/pl/typeshed/stdlib/gc.pyi create mode 100644 lang/pl/typeshed/stdlib/log.pyi create mode 100644 lang/pl/typeshed/stdlib/love.pyi create mode 100644 lang/pl/typeshed/stdlib/machine.pyi create mode 100644 lang/pl/typeshed/stdlib/math.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/__init__.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/accelerometer.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/audio.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/compass.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/display.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/i2c.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/microphone.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/speaker.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/spi.pyi create mode 100644 lang/pl/typeshed/stdlib/microbit/uart.pyi create mode 100644 lang/pl/typeshed/stdlib/micropython.pyi create mode 100644 lang/pl/typeshed/stdlib/music.pyi create mode 100644 lang/pl/typeshed/stdlib/neopixel.pyi create mode 100644 lang/pl/typeshed/stdlib/os.pyi create mode 100644 lang/pl/typeshed/stdlib/power.pyi create mode 100644 lang/pl/typeshed/stdlib/radio.pyi create mode 100644 lang/pl/typeshed/stdlib/random.pyi create mode 100644 lang/pl/typeshed/stdlib/speech.pyi create mode 100644 lang/pl/typeshed/stdlib/struct.pyi create mode 100644 lang/pl/typeshed/stdlib/sys.pyi create mode 100644 lang/pl/typeshed/stdlib/this.pyi create mode 100644 lang/pl/typeshed/stdlib/time.pyi create mode 100644 lang/pl/typeshed/stdlib/types.pyi create mode 100644 lang/pl/typeshed/stdlib/typing.pyi create mode 100644 lang/pl/typeshed/stdlib/typing_extensions.pyi create mode 100644 lang/pl/typeshed/stdlib/uarray.pyi create mode 100644 lang/pl/typeshed/stdlib/ucollections.pyi create mode 100644 lang/pl/typeshed/stdlib/uerrno.pyi create mode 100644 lang/pl/typeshed/stdlib/urandom.pyi create mode 100644 lang/pl/typeshed/stdlib/ustruct.pyi create mode 100644 lang/pl/typeshed/stdlib/usys.pyi create mode 100644 lang/pl/typeshed/stdlib/utime.pyi diff --git a/crowdin/translated/api.ca.json b/crowdin/translated/api.ca.json index e0dbd52..6206889 100644 --- a/crowdin/translated/api.ca.json +++ b/crowdin/translated/api.ca.json @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "somriure", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "Imatge d'una cara somrient", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "tristesa", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "llegeix", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "Llegeix bytes", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "Nombre màxim de bytes per llegir.", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "out", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "escriu", "description": "(function name) Write bytes to the bus." diff --git a/crowdin/translated/api.de.json b/crowdin/translated/api.de.json index ad2ff50..3050b28 100644 --- a/crowdin/translated/api.de.json +++ b/crowdin/translated/api.de.json @@ -112,7 +112,7 @@ "description": "Hours timestamp format." }, "log.DAYS": { - "message": "tage", + "message": "days", "description": "(field name) Days timestamp format." }, "log.DAYS.summary": { @@ -136,7 +136,7 @@ "description": "Parameter docs" }, "log.set_labels.param-name.timestamp": { - "message": "Zeitstempel", + "message": "timestamp", "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." }, "log.set_labels.param-doc.timestamp": { @@ -856,7 +856,7 @@ "description": "Parameter docs" }, "microbit.run_every.param-name.days": { - "message": "tage", + "message": "days", "description": "(parameter name) Sets the day mark for the scheduling." }, "microbit.run_every.param-doc.days": { @@ -900,7 +900,7 @@ "description": "(function name) Enter a panic mode." }, "microbit.panic.summary": { - "message": "In einen Panik-Modus gehen.", + "message": "In einen Panik-Modus wechseln.", "description": "Enter a panic mode." }, "microbit.panic.param-name.n": { @@ -976,7 +976,7 @@ "description": "Parameter docs" }, "microbit.scale-2.param-name.value": { - "message": "wert", + "message": "value", "description": "(parameter name) A number to convert." }, "microbit.scale-2.param-doc.value": { @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "smile", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "Lächelndes Gesichtsbild.", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "sad", @@ -2456,7 +2456,7 @@ "description": "Measure the acceleration of the micro:bit and recognise gestures." }, "microbit.accelerometer.get_x": { - "message": "erhalte x", + "message": "get x", "description": "(function name) Get the acceleration measurement in the ``x`` axis in milli-g." }, "microbit.accelerometer.get_x.summary": { @@ -2464,7 +2464,7 @@ "description": "Get the acceleration measurement in the ``x`` axis in milli-g." }, "microbit.accelerometer.get_y": { - "message": "erhalte y", + "message": "get y", "description": "(function name) Get the acceleration measurement in the ``y`` axis in milli-g." }, "microbit.accelerometer.get_y.summary": { @@ -2472,7 +2472,7 @@ "description": "Get the acceleration measurement in the ``y`` axis in milli-g." }, "microbit.accelerometer.get_z": { - "message": "erhalte z", + "message": "get z", "description": "(function name) Get the acceleration measurement in the ``z`` axis in milli-g." }, "microbit.accelerometer.get_z.summary": { @@ -2480,7 +2480,7 @@ "description": "Get the acceleration measurement in the ``z`` axis in milli-g." }, "microbit.accelerometer.get_values": { - "message": "Werte erhalten", + "message": "get values", "description": "(function name) Get the acceleration measurements in all axes at once as a tuple." }, "microbit.accelerometer.get_values.summary": { @@ -2488,7 +2488,7 @@ "description": "Get the acceleration measurements in all axes at once as a tuple." }, "microbit.accelerometer.get_strength": { - "message": "erhalte Stärke", + "message": "get strength", "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.get_strength.summary": { @@ -2536,7 +2536,7 @@ "description": "Parameter docs" }, "microbit.accelerometer.get_gestures": { - "message": "erhalte Gesten", + "message": "get gestures", "description": "(function name) Return a tuple of the gesture history." }, "microbit.accelerometer.get_gestures.summary": { @@ -2584,7 +2584,7 @@ "description": "Parameter docs" }, "microbit.audio.play.param-name.return_pin": { - "message": "erhalte Pin", + "message": "return pin", "description": "(parameter name) Specifies a differential edge connector pin to connect to an external speaker instead of ground. This is ignored for the **V2** revision." }, "microbit.audio.play.param-doc.return_pin": { @@ -2928,27 +2928,27 @@ "description": "Undoes the calibration, making the compass uncalibrated again." }, "microbit.compass.get_x": { - "message": "erhalte x", + "message": "get x", "description": "(function name) Get the magnetic field strength on the ``x`` axis." }, "microbit.compass.get_x.summary": { - "message": "Ermittle die Magnetfeldstärke der {{x}}-Achse. ", + "message": "Liefert die Magnetfeldstärke der {{x}}-Achse. ", "description": "Get the magnetic field strength on the ``x`` axis." }, "microbit.compass.get_y": { - "message": "erhalte y", + "message": "get y", "description": "(function name) Get the magnetic field strength on the ``y`` axis." }, "microbit.compass.get_y.summary": { - "message": "Ermittle die Magnetfeldstärke der {{y}}-Achse. ", + "message": "Liefert die Magnetfeldstärke der {{y}}-Achse. ", "description": "Get the magnetic field strength on the ``y`` axis." }, "microbit.compass.get_z": { - "message": "erhalte z", + "message": "get z", "description": "(function name) Get the magnetic field strength on the ``z`` axis." }, "microbit.compass.get_z.summary": { - "message": "Ermittle die Magnetfeldstärke der {{z}}-Achse. ", + "message": "Liefert die Magnetfeldstärke der {{z}}-Achse. ", "description": "Get the magnetic field strength on the ``z`` axis." }, "microbit.compass.heading": { @@ -2976,11 +2976,11 @@ "description": "Show text, images and animations on the 5×5 LED display." }, "microbit.display.get_pixel": { - "message": "Pixelwerte holen", + "message": "get pixel", "description": "(function name) Get the brightness of the LED at column ``x`` and row ``y``." }, "microbit.display.get_pixel.summary": { - "message": "Ermittle die Helligkeit der LED auf Spalte {{x}} und Zeile {{y}}. ", + "message": "Ermittelt die Helligkeit der LED in Spalte {{x}} und Zeile {{y}}.", "description": "Get the brightness of the LED at column ``x`` and row ``y``." }, "microbit.display.get_pixel.param-name.x": { @@ -3000,15 +3000,15 @@ "description": "Parameter docs" }, "microbit.display.set_pixel": { - "message": "Pixelwerte setzen", + "message": "set pixel", "description": "(function name) Set the brightness of the LED at column ``x`` and row ``y``." }, "microbit.display.set_pixel.summary": { - "message": "Ändere die Helligkeit der LED auf Spalte {{x}} und Zeile {{y}}. ", + "message": "Stellt die Helligkeit der LED in Spalte {{x}} und Zeile {{y}} ein.", "description": "Set the brightness of the LED at column ``x`` and row ``y``." }, "microbit.display.set_pixel.param-name.value": { - "message": "wert", + "message": "value", "description": "(parameter name) The brightness between 0 (off) and 9 (bright)" }, "microbit.display.set_pixel.param-doc.value": { @@ -3032,7 +3032,7 @@ "description": "Parameter docs" }, "microbit.display.clear": { - "message": "löschen", + "message": "clear", "description": "(function name) Set the brightness of all LEDs to 0 (off)." }, "microbit.display.clear.summary": { @@ -3048,19 +3048,19 @@ "description": "Shows images, letters or digits on the LED display." }, "microbit.display.show.param-name.clear": { - "message": "löschen", + "message": "clear", "description": "(parameter name) If ``clear`` is ``True``, the display will be cleared after the sequence has finished." }, "microbit.display.show.param-doc.clear": { - "message": "Wenn {{clear}} {{True}}ist, wird die Anzeige ausgeschaltet, nachdem die Sequenz beendet ist.", + "message": "Wenn {{clear}} {{True}} ist, wird die Anzeige nach Beendigung der Sequenz gelöscht.", "description": "Parameter docs" }, "microbit.display.show.param-name.delay": { - "message": "Verzögerung", + "message": "delay", "description": "(parameter name) Each letter, digit or image is shown with ``delay`` milliseconds between them." }, "microbit.display.show.param-doc.delay": { - "message": "Jeder Buchstabe, Ziffer oder Bild wird mit {{delay}} Millisekunden zwischen ihnen angezeigt.", + "message": "Jeder Buchstabe, jede Ziffer oder jedes Bild wird mit einer Verzögerung von {{delay}} Millisekunden angezeigt.", "description": "Parameter docs" }, "microbit.display.show.param-name.image": { @@ -3068,7 +3068,7 @@ "description": "(parameter name) A string, number, image or list of images to show." }, "microbit.display.show.param-doc.image": { - "message": "Eine Zeichenkette, Nummer, Bild oder Liste der anzuzeigenden Bilder.", + "message": "Eine Zeichenkette, eine Zahl, ein Bild oder eine Liste von Bildern, die angezeigt werden sollen.", "description": "Parameter docs" }, "microbit.display.show.param-name.loop": { @@ -3076,7 +3076,7 @@ "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." }, "microbit.display.show.param-doc.loop": { - "message": "Wenn {{loop}} {{True}}ist, wird sich die Animation für immer wiederholen.", + "message": "Wenn {{loop}} {{True}} ist, wird die Animation endlos wiederholt.", "description": "Parameter docs" }, "microbit.display.show.param-name.wait": { @@ -3084,11 +3084,11 @@ "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." }, "microbit.display.show.param-doc.wait": { - "message": "Wenn {{wait}} {{True}}ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden.", + "message": "Wenn {{wait}} {{True}} ist, wird diese Funktion das Programm so lange anhalten, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund ausgeführt.", "description": "Parameter docs" }, "microbit.display.scroll": { - "message": "scrollen", + "message": "scroll", "description": "(function name) Scrolls a number or text on the LED display." }, "microbit.display.scroll.summary": { @@ -3096,11 +3096,11 @@ "description": "Scrolls a number or text on the LED display." }, "microbit.display.scroll.param-name.delay": { - "message": "Verzögerung", + "message": "delay", "description": "(parameter name) The ``delay`` parameter controls how fast the text is scrolling." }, "microbit.display.scroll.param-doc.delay": { - "message": "Der {{delay}} -Parameter bestimmt, wie schnell der Text scrollt.", + "message": "Der Parameter {{delay}} bestimmt, wie schnell der Text gescrollt wird.", "description": "Parameter docs" }, "microbit.display.scroll.param-name.loop": { @@ -3108,11 +3108,11 @@ "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." }, "microbit.display.scroll.param-doc.loop": { - "message": "Wenn {{loop}} {{True}}ist, wird sich die Animation für immer wiederholen.", + "message": "Wenn {{loop}} {{True}} ist, wird die Animation endlos wiederholt.", "description": "Parameter docs" }, "microbit.display.scroll.param-name.monospace": { - "message": "Monospace", + "message": "monospace", "description": "(parameter name) If ``monospace`` is ``True``, the characters will all take up 5 pixel-columns in width, otherwise there will be exactly 1 blank pixel-column between each character as they scroll." }, "microbit.display.scroll.param-doc.monospace": { @@ -3124,7 +3124,7 @@ "description": "(parameter name) The string to scroll. If ``text`` is an integer or float it is first converted to a string using ``str()``." }, "microbit.display.scroll.param-doc.text": { - "message": "Der zu wiederzugebende String. Wenn {{text}} eine Ganzzahl oder ein Float ist, wird er zuerst mit {{str()}} in einen String konvertiert.", + "message": "Die zu scrollende Zeichenkette. Wenn {{text}} ein Integer oder Float ist, wird der Text vorher mit {{str()}} in einen String umgewandelt.", "description": "Parameter docs" }, "microbit.display.scroll.param-name.wait": { @@ -3132,15 +3132,15 @@ "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." }, "microbit.display.scroll.param-doc.wait": { - "message": "Wenn {{wait}} {{True}}ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden.", + "message": "Wenn {{wait}} {{True}} ist, wird diese Funktion das Programm anhalten, bis die Animation beendet ist, andernfalls läuft die Animation im Hintergrund ab.", "description": "Parameter docs" }, "microbit.display.on": { - "message": "an", + "message": "on", "description": "(function name) Turn on the LED display." }, "microbit.display.on.summary": { - "message": "Schalten Sie das LED-Display ein.", + "message": "Das LED-Display einschalten.", "description": "Turn on the LED display." }, "microbit.display.off": { @@ -3148,19 +3148,19 @@ "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." }, "microbit.display.off.summary": { - "message": "Schalten Sie die LED-Anzeige aus (das Deaktivieren des Displays erlaubt es Ihnen, die GPIO-Pins für andere Zwecke zu verwenden).", + "message": "Die LED-Anzeige ausschalten (Deaktivieren des Displays ermöglicht es dir, die GPIO-Pins für andere Zwecke zu verwenden).", "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." }, "microbit.display.is_on": { - "message": "ist an", + "message": "is on", "description": "(function name) Check whether the LED display is enabled." }, "microbit.display.is_on.summary": { - "message": "Überprüfen Sie, ob die LED-Anzeige aktiviert ist.", + "message": "Überprüfung, ob die LED-Anzeige aktiviert ist.", "description": "Check whether the LED display is enabled." }, "microbit.display.read_light_level": { - "message": "bestimme Licht Intensität", + "message": "read light level", "description": "(function name) Read the light level." }, "microbit.display.read_light_level.summary": { @@ -3384,7 +3384,7 @@ "description": "Turn the speaker off." }, "microbit.speaker.on": { - "message": "an", + "message": "on", "description": "(function name) Turn the speaker on." }, "microbit.speaker.on.summary": { @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "read", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "Bytes lesen.", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "Maximum der zu lesenden Bytes. ", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "out", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "schreiben", "description": "(function name) Write bytes to the bus." @@ -4136,7 +4144,7 @@ "description": "Parameter docs" }, "neopixel.NeoPixel.clear": { - "message": "löschen", + "message": "clear", "description": "(function name) Clear all the pixels." }, "neopixel.NeoPixel.clear.summary": { @@ -4220,7 +4228,7 @@ "description": "(function name) Get length of this pixel strip." }, "neopixel.NeoPixel.__len__.summary": { - "message": "Erhalte die Länge des Pixelstreifens.", + "message": "Liefert die Länge des Pixelstreifens.", "description": "Get length of this pixel strip." }, "os": { @@ -4352,7 +4360,7 @@ "description": "Constant used to indicate a throughput of 2 MBit a second." }, "radio.on": { - "message": "an", + "message": "on", "description": "(function name) Turns the radio on." }, "radio.on.summary": { diff --git a/crowdin/translated/api.es-es.json b/crowdin/translated/api.es-es.json index 7479f1a..afb04f1 100644 --- a/crowdin/translated/api.es-es.json +++ b/crowdin/translated/api.es-es.json @@ -140,7 +140,7 @@ "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." }, "log.set_labels.param-doc.timestamp": { - "message": "Seleccione la unidad de marca de tiempo que se añadirá automáticamente como la primera columna de cada fila. Los valores de la marca de tiempo pueden ser {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} o {{None}} para desactivar la marca de tiempo. El valor por defecto es {{log.SECONDS}}.", + "message": "Selecciona la unidad de marca de tiempo que se añadirá automáticamente como la primera columna de cada fila. Los valores de la marca de tiempo pueden ser {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} o {{None}} para desactivar la marca de tiempo. El valor por defecto es {{log.SECONDS}}.", "description": "Parameter docs" }, "log.add-1": { @@ -156,7 +156,7 @@ "description": "(parameter name) The data to log as a dictionary with a key for each header." }, "log.add-1.param-doc.data_dictionary": { - "message": "Los datos a registrar como un diccionario con una clave para cada cabecera.", + "message": "Los datos que se registrarán como un diccionario con una clave para cada cabecera.", "description": "Parameter docs" }, "log.add-2": { @@ -188,7 +188,7 @@ "description": "(function name) Configure mirroring of the data logging activity to the serial output." }, "log.set_mirroring.summary": { - "message": "Configure la duplicación de la actividad de registro de datos en la salida en serie.", + "message": "Configura la duplicación de la actividad de registro de datos en la salida serie.", "description": "Configure mirroring of the data logging activity to the serial output." }, "log.set_mirroring.param-name.serial": { @@ -844,7 +844,7 @@ "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.summary": { - "message": "Programe para ejecutar una función en el intervalo especificado por los argumentos de tiempo **V2 solamente**.", + "message": "Programa la ejecución de una función en el intervalo especificado por los argumentos de tiempo **Sólo V2**.", "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.param-name.callback": { @@ -852,7 +852,7 @@ "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." }, "microbit.run_every.param-doc.callback": { - "message": "Función para llamar al intervalo proporcionado. Omitir cuando se utiliza como decorador.", + "message": "Función a llamar en el intervalo proporcionado. Omitir cuando se utiliza como un decorador.", "description": "Parameter docs" }, "microbit.run_every.param-name.days": { @@ -860,7 +860,7 @@ "description": "(parameter name) Sets the day mark for the scheduling." }, "microbit.run_every.param-doc.days": { - "message": "Establece la marca del día para la programación.", + "message": "Configura la marca del día para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.h": { @@ -868,7 +868,7 @@ "description": "(parameter name) Sets the hour mark for the scheduling." }, "microbit.run_every.param-doc.h": { - "message": "Establece la marca de hora para la programación.", + "message": "Configura la marca de la hora para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.min": { @@ -876,7 +876,7 @@ "description": "(parameter name) Sets the minute mark for the scheduling." }, "microbit.run_every.param-doc.min": { - "message": "Establece la marca de minuto para la programación.", + "message": "Configura la marca de los minutos para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.ms": { @@ -884,7 +884,7 @@ "description": "(parameter name) Sets the millisecond mark for the scheduling." }, "microbit.run_every.param-doc.ms": { - "message": "Establece la marca de milisegundos para la programación.", + "message": "Configura la marca de los milisegundos para la programación.", "description": "Parameter docs" }, "microbit.run_every.param-name.s": { @@ -892,7 +892,7 @@ "description": "(parameter name) Sets the second mark for the scheduling." }, "microbit.run_every.param-doc.s": { - "message": "Establece la segunda marca para la programación.", + "message": "Configura la segunda marca para la programación.", "description": "Parameter docs" }, "microbit.panic": { @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "sonrisa", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "Imagen de una cara sonriente.", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "triste", @@ -2492,7 +2492,7 @@ "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.get_strength.summary": { - "message": "Obtener la medición de aceleración de todos los ejes combinados, como un entero positivo. Esta es la suma de Pitagórica de los ejes X, Y y Z.", + "message": "Obtiene la medida de la aceleración de todos los ejes combinados, como un entero positivo. Es la suma Pitagórica de los ejes X, Y y Z.", "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.current_gesture": { @@ -2544,11 +2544,11 @@ "description": "Return a tuple of the gesture history." }, "microbit.accelerometer.set_range": { - "message": "establecer rango", + "message": "configurar rango", "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.summary": { - "message": "Establecer el rango de sensibilidad acelerómetro, en g (gravedad estándar), a los valores más cercanos soportados por el hardware, así que se redondea a {{2}}, {{4}}o {{8}} g.", + "message": "Configura el rango de sensibilidad del acelerómetro, en g (gravedad estándar), a los valores más cercanos soportados por el hardware, por lo que redondea a {{2}}, {{4}}, u {{8}} g.", "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.param-name.value": { @@ -2572,7 +2572,7 @@ "description": "(function name) Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.summary": { - "message": "Reproducir un sonido, un efecto de sonido o marcos de audio personalizados.", + "message": "Reproduce un sonido integrado, un efecto de sonido o marcos de audio personalizados.", "description": "Play a built-in sound, sound effect or custom audio frames." }, "microbit.audio.play.param-name.pin": { @@ -2624,7 +2624,7 @@ "description": "Stop all audio playback." }, "microbit.audio.SoundEffect": { - "message": "efecto de sonido", + "message": "efectosonido", "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." }, "microbit.audio.SoundEffect.summary": { @@ -2632,15 +2632,15 @@ "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." }, "microbit.audio.SoundEffect.WAVEFORM_SINE": { - "message": "forma de onda sinusoidal", + "message": "forma de onda senoidal", "description": "(field name) Sine wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { - "message": "Opción de onda sinusoidal utilizada para el parámetro {{waveform}}.", + "message": "Opción de onda senoidal utilizada para el parámetro {{waveform}}.", "description": "Sine wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { - "message": "diente de sierra de forma de onda", + "message": "forma de onda diente de sierra", "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." }, "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { @@ -2704,7 +2704,7 @@ "description": "No effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO": { - "message": "fx tremolo", + "message": "fx trémolo", "description": "(field name) Tremolo effect option used for the ``fx`` parameter." }, "microbit.audio.SoundEffect.FX_TREMOLO.summary": { @@ -2796,7 +2796,7 @@ "description": "(function name) Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.summary": { - "message": "Crear un nuevo efecto de sonido.", + "message": "Crea un nuevo efecto de sonido.", "description": "Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.param-name.duration": { @@ -2868,7 +2868,7 @@ "description": "(function name) Create a copy of this ``SoundEffect``." }, "microbit.audio.SoundEffect.copy.summary": { - "message": "Crear una copia de este {{SoundEffect}}.", + "message": "Crea una copia de este {{SoundEffect}}.", "description": "Create a copy of this ``SoundEffect``." }, "microbit.audio.AudioFrame": { @@ -2880,11 +2880,11 @@ "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." }, "microbit.audio.AudioFrame.copyfrom": { - "message": "copiar forma", + "message": "copiadesde", "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.summary": { - "message": "Sobrescribir los datos en este {{AudioFrame}} con los datos de otra instancia de {{AudioFrame}}.", + "message": "Sobrescribe los datos de este {{AudioFrame}} con los datos de otra instancia {{AudioFrame}}.", "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.param-name.other": { @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "leer", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "Lee bytes.", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "Número máximo de bytes a leer.", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "a", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "escribir", "description": "(function name) Write bytes to the bus." @@ -3596,7 +3604,7 @@ "description": "(function name) Check if any data is waiting." }, "microbit.uart.any.summary": { - "message": "Comprueba si hay algún dato esperando.", + "message": "Comprueba si hay datos en espera.", "description": "Check if any data is waiting." }, "microbit.uart.read": { @@ -4116,7 +4124,7 @@ "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." }, "neopixel.NeoPixel.__init__.param-doc.bpp": { - "message": "Bytes por píxel. Para compatibilidad con NeoPixel RGBW, pasa 4 en lugar del valor predeterminado 3 para RGB y GRB.", + "message": "Bytes por píxel. Para compatibilidad de neopíxeles RGBW, pasa 4 en lugar del valor predeterminado de 3 para RGB y GRB.", "description": "Parameter docs" }, "neopixel.NeoPixel.__init__.param-name.n": { diff --git a/crowdin/translated/api.fr.json b/crowdin/translated/api.fr.json index 75499ce..14b6a92 100644 --- a/crowdin/translated/api.fr.json +++ b/crowdin/translated/api.fr.json @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "smile", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "Image de visage souriant.", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "sad", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "read", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "Lire des octets.", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "Nombre maximal d'octets à lire.", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "out", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "write", "description": "(function name) Write bytes to the bus." diff --git a/crowdin/translated/api.ja.json b/crowdin/translated/api.ja.json index f320ef9..ea86681 100644 --- a/crowdin/translated/api.ja.json +++ b/crowdin/translated/api.ja.json @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "smile", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "「笑顔」イメージ。", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "sad", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "read", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "バイト列を読み取ります。", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "読み取る最大バイト数。", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "out", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "write", "description": "(function name) Write bytes to the bus." diff --git a/crowdin/translated/api.ko.json b/crowdin/translated/api.ko.json index 27072d8..26dc758 100644 --- a/crowdin/translated/api.ko.json +++ b/crowdin/translated/api.ko.json @@ -196,7 +196,7 @@ "description": "(parameter name) ``True`` enables mirroring data to the serial output." }, "log.set_mirroring.param-doc.serial": { - "message": "{{True}} enables mirroring data to the serial output.", + "message": "{{True}}로 설정할 경우 시리얼 출력 인터페이스에 데이터를 미러링하는 것이 허용됩니다.", "description": "Parameter docs" }, "machine": { @@ -844,7 +844,7 @@ "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.summary": { - "message": "Schedule to run a function at the interval specified by the time arguments **V2 only**.", + "message": "매개 변수로 주어진 일정한 시간(밀리초, ms)마다 특정 함수를 호출합니다. **micro:bit V2 전용**", "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.param-name.callback": { @@ -852,7 +852,7 @@ "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." }, "microbit.run_every.param-doc.callback": { - "message": "Function to call at the provided interval. Omit when using as a decorator.", + "message": "주어진 시간이 되었을 때 호출할 함수. 데코레이터(장식자)로 사용할 때 호출.", "description": "Parameter docs" }, "microbit.run_every.param-name.days": { @@ -860,7 +860,7 @@ "description": "(parameter name) Sets the day mark for the scheduling." }, "microbit.run_every.param-doc.days": { - "message": "Sets the day mark for the scheduling.", + "message": "함수 호출 반복 시간의 날 단위를 정합니다.", "description": "Parameter docs" }, "microbit.run_every.param-name.h": { @@ -868,7 +868,7 @@ "description": "(parameter name) Sets the hour mark for the scheduling." }, "microbit.run_every.param-doc.h": { - "message": "Sets the hour mark for the scheduling.", + "message": "함수 호출 반복 시간의 시간 단위를 정합니다.", "description": "Parameter docs" }, "microbit.run_every.param-name.min": { @@ -876,7 +876,7 @@ "description": "(parameter name) Sets the minute mark for the scheduling." }, "microbit.run_every.param-doc.min": { - "message": "Sets the minute mark for the scheduling.", + "message": "함수 호출 반복 시간의 분 단위를 정합니다.", "description": "Parameter docs" }, "microbit.run_every.param-name.ms": { @@ -884,7 +884,7 @@ "description": "(parameter name) Sets the millisecond mark for the scheduling." }, "microbit.run_every.param-doc.ms": { - "message": "Sets the millisecond mark for the scheduling.", + "message": "함수 호출 반복 시간의 밀리초 단위를 정합니다.", "description": "Parameter docs" }, "microbit.run_every.param-name.s": { @@ -892,7 +892,7 @@ "description": "(parameter name) Sets the second mark for the scheduling." }, "microbit.run_every.param-doc.s": { - "message": "Sets the second mark for the scheduling.", + "message": "함수 호출 반복 시간의 초 단위를 정합니다.", "description": "Parameter docs" }, "microbit.panic": { @@ -932,7 +932,7 @@ "description": "(parameter name) A tuple to define the range to convert from." }, "microbit.scale-1.param-doc.from_": { - "message": "A tuple to define the range to convert from.", + "message": "변환할 범위를 정의할 튜플 값", "description": "Parameter docs" }, "microbit.scale-1.param-name.to": { @@ -964,7 +964,7 @@ "description": "(parameter name) A tuple to define the range to convert from." }, "microbit.scale-2.param-doc.from_": { - "message": "A tuple to define the range to convert from.", + "message": "변환할 범위를 정의할 튜플 값", "description": "Parameter docs" }, "microbit.scale-2.param-name.to": { @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "smile", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "미소 짓는 얼굴 이미지입니다.", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "sad", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "read", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "바이트를 읽습니다.", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "읽을 바이트의 최대 수입니다.", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "out", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "write", "description": "(function name) Write bytes to the bus." diff --git a/crowdin/translated/api.lol.json b/crowdin/translated/api.lol.json index 90e1443..c441f41 100644 --- a/crowdin/translated/api.lol.json +++ b/crowdin/translated/api.lol.json @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "crwdns329418:0crwdne329418:0", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "crwdns329420:0crwdne329420:0", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "crwdns329422:0crwdne329422:0", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "crwdns330282:0crwdne330282:0", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "crwdns330284:0crwdne330284:0", - "description": "Read bytes." + "message": "crwdns330284:0{{nbytes}}crwdnd330284:0{{out}}crwdne330284:0", + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "crwdns330286:0crwdne330286:0", @@ -3471,6 +3471,14 @@ "message": "crwdns330288:0crwdne330288:0", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "crwdns360362:0crwdne360362:0", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "crwdns360364:0crwdne360364:0", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "crwdns330290:0crwdne330290:0", "description": "(function name) Write bytes to the bus." diff --git a/crowdin/translated/api.nl.json b/crowdin/translated/api.nl.json index a8b50d4..84a0a03 100644 --- a/crowdin/translated/api.nl.json +++ b/crowdin/translated/api.nl.json @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "glimlach", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "Glimlach gezicht afbeelding.", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "verdrietig", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "lezen", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "Lees bytes.", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "Maximum aantal te lezen bytes.", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "uit", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "schrijven", "description": "(function name) Write bytes to the bus." diff --git a/crowdin/translated/api.pl.json b/crowdin/translated/api.pl.json new file mode 100644 index 0000000..4738739 --- /dev/null +++ b/crowdin/translated/api.pl.json @@ -0,0 +1,5266 @@ +{ + "gc": { + "message": "gc", + "description": "(module name) Control the garbage collector" + }, + "gc.summary": { + "message": "Steruj zbieraniem sieci", + "description": "Control the garbage collector" + }, + "gc.enable": { + "message": "enable", + "description": "(function name) Enable automatic garbage collection." + }, + "gc.enable.summary": { + "message": "Włącz automatyczne zbieranie śmieci.", + "description": "Enable automatic garbage collection." + }, + "gc.disable": { + "message": "disable", + "description": "(function name) Disable automatic garbage collection." + }, + "gc.disable.summary": { + "message": "Wyłącz automatyczne zbieranie śmieci.", + "description": "Disable automatic garbage collection." + }, + "gc.collect": { + "message": "collect", + "description": "(function name) Run a garbage collection." + }, + "gc.collect.summary": { + "message": "Uruchom zbieranie śmieci.", + "description": "Run a garbage collection." + }, + "gc.mem_alloc": { + "message": "mem alloc", + "description": "(function name) Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_alloc.summary": { + "message": "Znajdź liczbę przydzielonych bajtów sterty pamięci RAM.", + "description": "Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_free": { + "message": "mem free", + "description": "(function name) Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.mem_free.summary": { + "message": "Znajdź liczbę bajtów dostępnej sterty pamięci RAM lub -1, jeśli ta liczba nie jest znana.", + "description": "Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.threshold-1": { + "message": "threshold", + "description": "(function name) Query the additional GC allocation threshold." + }, + "gc.threshold-1.summary": { + "message": "Zapytanie o dodatkowy próg przydziału GC.", + "description": "Query the additional GC allocation threshold." + }, + "gc.threshold-2": { + "message": "threshold", + "description": "(function name) Set the additional GC allocation threshold." + }, + "gc.threshold-2.summary": { + "message": "Ustaw próg dodatkowego przydziału GC.", + "description": "Set the additional GC allocation threshold." + }, + "gc.threshold-2.param-name.amount": { + "message": "amount", + "description": "(parameter name) The number of bytes after which a garbage collection should be triggered." + }, + "gc.threshold-2.param-doc.amount": { + "message": "Liczba bajtów, po których powinno zostać uruchomione zbieranie śmieci.", + "description": "Parameter docs" + }, + "log": { + "message": "log", + "description": "(module name) Log data to your micro:bit V2." + }, + "log.summary": { + "message": "Zaloguj dane do swojego micro:bita V2.", + "description": "Log data to your micro:bit V2." + }, + "log.MILLISECONDS": { + "message": "milliseconds", + "description": "(field name) Milliseconds timestamp format." + }, + "log.MILLISECONDS.summary": { + "message": "Format znacznika czasu w milisekundach.", + "description": "Milliseconds timestamp format." + }, + "log.SECONDS": { + "message": "seconds", + "description": "(field name) Seconds timestamp format." + }, + "log.SECONDS.summary": { + "message": "Format znacznika czasu w sekundach.", + "description": "Seconds timestamp format." + }, + "log.MINUTES": { + "message": "minutes", + "description": "(field name) Minutes timestamp format." + }, + "log.MINUTES.summary": { + "message": "Format znacznika czasu w minutach.", + "description": "Minutes timestamp format." + }, + "log.HOURS": { + "message": "hours", + "description": "(field name) Hours timestamp format." + }, + "log.HOURS.summary": { + "message": "Format znacznika czasu w godzinach.", + "description": "Hours timestamp format." + }, + "log.DAYS": { + "message": "days", + "description": "(field name) Days timestamp format." + }, + "log.DAYS.summary": { + "message": "Format znacznika czasu w dniach.", + "description": "Days timestamp format." + }, + "log.set_labels": { + "message": "set labels", + "description": "(function name) Set up the log file header." + }, + "log.set_labels.summary": { + "message": "Ustaw nagłówek pliku dziennika.", + "description": "Set up the log file header." + }, + "log.set_labels.param-name.*labels": { + "message": "*labels", + "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." + }, + "log.set_labels.param-doc.*labels": { + "message": "Dowolna liczba argumentów pozycyjnych, każdy odpowiadający wpisowi w nagłówku dziennika.", + "description": "Parameter docs" + }, + "log.set_labels.param-name.timestamp": { + "message": "timestamp", + "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." + }, + "log.set_labels.param-doc.timestamp": { + "message": "Wybierz jednostkę znacznika czasu, która będzie automatycznie dodana jako pierwsza kolumna w każdym wierszu. Wartości znacznika czasu mogą być jedną z {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} lub {{None}}, aby wyłączyć znacznik czasu. Wartością domyślną jest {{log.SECONDS}}.", + "description": "Parameter docs" + }, + "log.add-1": { + "message": "add", + "description": "(function name) Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.summary": { + "message": "Dodaj wiersz danych do dziennika poprzez podanie słownika nagłówków i wartości.", + "description": "Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.param-name.data_dictionary": { + "message": "data dictionary", + "description": "(parameter name) The data to log as a dictionary with a key for each header." + }, + "log.add-1.param-doc.data_dictionary": { + "message": "Dane do logowania jako słownik z kluczem dla każdego nagłówka.", + "description": "Parameter docs" + }, + "log.add-2": { + "message": "dodaj", + "description": "(function name) Add a data row to the log using keyword arguments." + }, + "log.add-2.summary": { + "message": "Dodaj wiersz danych do dziennika używając argumentów słów kluczowych.", + "description": "Add a data row to the log using keyword arguments." + }, + "log.delete": { + "message": "delete", + "description": "(function name) Deletes the contents of the log, including headers." + }, + "log.delete.summary": { + "message": "Usuwa zawartość wpisu, w tym nagłówki.", + "description": "Deletes the contents of the log, including headers." + }, + "log.delete.param-name.full": { + "message": "full", + "description": "(parameter name) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method." + }, + "log.delete.param-doc.full": { + "message": "{{True}} wybiera usunięcie \"pełne\" i {{False}} wybiera metodę \"szybkiego\" usunięcia.", + "description": "Parameter docs" + }, + "log.set_mirroring": { + "message": "set mirroring", + "description": "(function name) Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.summary": { + "message": "Skonfiguruj lustrzane odbicie logowania danych do wyjścia szeregowego.", + "description": "Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.param-name.serial": { + "message": "serial", + "description": "(parameter name) ``True`` enables mirroring data to the serial output." + }, + "log.set_mirroring.param-doc.serial": { + "message": "{{True}} umożliwia odbicie lustrzane danych na szeregowe wyjście.", + "description": "Parameter docs" + }, + "machine": { + "message": "machine", + "description": "(module name) Low-level utilities." + }, + "machine.summary": { + "message": "Narzędzia niskiego poziomu.", + "description": "Low-level utilities." + }, + "machine.unique_id": { + "message": "unique id", + "description": "(function name) Get a byte string with a unique identifier of a board." + }, + "machine.unique_id.summary": { + "message": "Pobierz ciąg bajtów z unikatowym identyfikatorem płytki.", + "description": "Get a byte string with a unique identifier of a board." + }, + "machine.reset": { + "message": "reset", + "description": "(function name) Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.reset.summary": { + "message": "Zresetuj urządzenie w sposób podobny do naciśnięcia zewnętrznego przycisku RESET.", + "description": "Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.freq": { + "message": "freq", + "description": "(function name) Get the CPU frequency in hertz." + }, + "machine.freq.summary": { + "message": "Uzyskaj częstotliwość procesora w hercach", + "description": "Get the CPU frequency in hertz." + }, + "machine.disable_irq": { + "message": "disable irq", + "description": "(function name) Disable interrupt requests." + }, + "machine.disable_irq.summary": { + "message": "Wyłącz żądania przerwań.", + "description": "Disable interrupt requests." + }, + "machine.enable_irq": { + "message": "enable irq", + "description": "(function name) Re-enable interrupt requests." + }, + "machine.enable_irq.summary": { + "message": "Ponownie włącz żądania przerwań.", + "description": "Re-enable interrupt requests." + }, + "machine.enable_irq.param-name.state": { + "message": "state", + "description": "(parameter name) The value that was returned from the most recent call to the ``disable_irq`` function." + }, + "machine.enable_irq.param-doc.state": { + "message": "Wartość, która została zwrócona z ostatniego wywołania funkcji {{disable_irq}}.", + "description": "Parameter docs" + }, + "machine.time_pulse_us": { + "message": "time pulse us", + "description": "(function name) Time a pulse on a pin." + }, + "machine.time_pulse_us.summary": { + "message": "Czas pulsowania na pinie.", + "description": "Time a pulse on a pin." + }, + "machine.time_pulse_us.param-name.pin": { + "message": "pin", + "description": "(parameter name) The pin to use" + }, + "machine.time_pulse_us.param-doc.pin": { + "message": "Pin do użycia", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.pulse_level": { + "message": "pulse level", + "description": "(parameter name) 0 to time a low pulse or 1 to time a high pulse" + }, + "machine.time_pulse_us.param-doc.pulse_level": { + "message": "0 do czasu niskiego pulsu lub 1 do czasu wysokiego pulsu", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.timeout_us": { + "message": "timeout us", + "description": "(parameter name) A microsecond timeout" + }, + "machine.time_pulse_us.param-doc.timeout_us": { + "message": "Mikrosekundowy limit czasu", + "description": "Parameter docs" + }, + "machine.mem": { + "message": "mem", + "description": "(class name) The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.summary": { + "message": "Klasa dla widoków pamięci {{mem8}}, {{mem16}} i {{mem32}}.", + "description": "The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.__getitem__": { + "message": "getitem", + "description": "(function name) Access a value from memory." + }, + "machine.mem.__getitem__.summary": { + "message": "Uzyskaj dostęp do wartości z pamięci.", + "description": "Access a value from memory." + }, + "machine.mem.__getitem__.param-name.address": { + "message": "address", + "description": "(parameter name) The memory address." + }, + "machine.mem.__getitem__.param-doc.address": { + "message": "Adres pamięci.", + "description": "Parameter docs" + }, + "machine.mem.__setitem__": { + "message": "setitem", + "description": "(function name) Set a value at the given address." + }, + "machine.mem.__setitem__.summary": { + "message": "Ustaw wartość dla podanego adresu.", + "description": "Set a value at the given address." + }, + "machine.mem.__setitem__.param-name.address": { + "message": "address", + "description": "(parameter name) The memory address." + }, + "machine.mem.__setitem__.param-doc.address": { + "message": "Adres pamięci.", + "description": "Parameter docs" + }, + "machine.mem.__setitem__.param-name.value": { + "message": "value", + "description": "(parameter name) The integer value to set." + }, + "machine.mem.__setitem__.param-doc.value": { + "message": "Wartość całkowita do ustawiania.", + "description": "Parameter docs" + }, + "machine.mem8": { + "message": "mem8", + "description": "(field name) 8-bit (byte) view of memory." + }, + "machine.mem8.summary": { + "message": "8-bitowy widok pamięci.", + "description": "8-bit (byte) view of memory." + }, + "machine.mem16": { + "message": "mem16", + "description": "(field name) 16-bit view of memory." + }, + "machine.mem16.summary": { + "message": "16-bitowy widok pamięci.", + "description": "16-bit view of memory." + }, + "machine.mem32": { + "message": "mem32", + "description": "(field name) 32-bit view of memory." + }, + "machine.mem32.summary": { + "message": "32-bitowy widok pamięci.", + "description": "32-bit view of memory." + }, + "math": { + "message": "math", + "description": "(module name) Mathematical functions." + }, + "math.summary": { + "message": "Funkcje matematyczne.", + "description": "Mathematical functions." + }, + "math.acos": { + "message": "acos", + "description": "(function name) Calculate the inverse cosine." + }, + "math.acos.summary": { + "message": "Obliczyć odwrotność cosinusa.", + "description": "Calculate the inverse cosine." + }, + "math.acos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.acos.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.asin": { + "message": "asin", + "description": "(function name) Calculate the inverse sine." + }, + "math.asin.summary": { + "message": "Obliczyć odwrotność sinusa.", + "description": "Calculate the inverse sine." + }, + "math.asin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.asin.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.atan": { + "message": "atan", + "description": "(function name) Calculate the inverse tangent." + }, + "math.atan.summary": { + "message": "Oblicz odwrotność tangensa.", + "description": "Calculate the inverse tangent." + }, + "math.atan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.atan2": { + "message": "atan2", + "description": "(function name) Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.summary": { + "message": "Oblicz wartość główną odwrotności tangensa {{y/x}}.", + "description": "Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.atan2.param-name.y": { + "message": "y", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.y": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.ceil": { + "message": "ceil", + "description": "(function name) Round a number towards positive infinity." + }, + "math.ceil.summary": { + "message": "Zaokrąglij liczbę w kierunku dodatniej nieskończoności.", + "description": "Round a number towards positive infinity." + }, + "math.ceil.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ceil.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.copysign": { + "message": "copysign", + "description": "(function name) Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.summary": { + "message": "Oblicz {{x}} ze znakiem {{y}}.", + "description": "Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.copysign.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.copysign.param-name.y": { + "message": "y", + "description": "(parameter name) The source of the sign for the return value" + }, + "math.copysign.param-doc.y": { + "message": "Źródło znaku dla wartości zwracanej", + "description": "Parameter docs" + }, + "math.cos": { + "message": "cos", + "description": "(function name) Calculate the cosine of ``x``." + }, + "math.cos.summary": { + "message": "Oblicz cosinus {{x}}.", + "description": "Calculate the cosine of ``x``." + }, + "math.cos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.cos.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.degrees": { + "message": "degrees", + "description": "(function name) Convert radians to degrees." + }, + "math.degrees.summary": { + "message": "Konwertuj radiany na stopnie.", + "description": "Convert radians to degrees." + }, + "math.degrees.param-name.x": { + "message": "x", + "description": "(parameter name) A value in radians" + }, + "math.degrees.param-doc.x": { + "message": "Wartość w radianach", + "description": "Parameter docs" + }, + "math.exp": { + "message": "exp", + "description": "(function name) Calculate the exponential of ``x``." + }, + "math.exp.summary": { + "message": "Oblicz potęgę {{x}}.", + "description": "Calculate the exponential of ``x``." + }, + "math.exp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.exp.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.fabs": { + "message": "fabs", + "description": "(function name) Return the absolute value of ``x``." + }, + "math.fabs.summary": { + "message": "Zwróć wartość bezwzględną {{x}}.", + "description": "Return the absolute value of ``x``." + }, + "math.fabs.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.fabs.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.floor": { + "message": "floor", + "description": "(function name) Round a number towards negative infinity." + }, + "math.floor.summary": { + "message": "Zaokrąglij liczbę w kierunku ujemnej nieskończoności.", + "description": "Round a number towards negative infinity." + }, + "math.floor.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.floor.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.fmod": { + "message": "fmod", + "description": "(function name) Calculate the remainder of ``x/y``." + }, + "math.fmod.summary": { + "message": "Oblicz resztę z {{x/y}}.", + "description": "Calculate the remainder of ``x/y``." + }, + "math.fmod.param-name.x": { + "message": "x", + "description": "(parameter name) The numerator" + }, + "math.fmod.param-doc.x": { + "message": "Licznik", + "description": "Parameter docs" + }, + "math.fmod.param-name.y": { + "message": "y", + "description": "(parameter name) The denominator" + }, + "math.fmod.param-doc.y": { + "message": "Mianownik", + "description": "Parameter docs" + }, + "math.frexp": { + "message": "frexp", + "description": "(function name) Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.summary": { + "message": "Rozkłada liczbę zmiennopozycyjną na mantysę i wykładnik.", + "description": "Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.param-name.x": { + "message": "x", + "description": "(parameter name) A floating-point number" + }, + "math.frexp.param-doc.x": { + "message": "Liczba zmiennopozycyjna", + "description": "Parameter docs" + }, + "math.isfinite": { + "message": "isfinite", + "description": "(function name) Check if a value is finite." + }, + "math.isfinite.summary": { + "message": "Sprawdź, czy wartość jest skończona.", + "description": "Check if a value is finite." + }, + "math.isfinite.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isfinite.param-doc.x": { + "message": "Liczba.", + "description": "Parameter docs" + }, + "math.isinf": { + "message": "isinf", + "description": "(function name) Check if a value is infinite." + }, + "math.isinf.summary": { + "message": "Sprawdź, czy wartość jest nieskończona.", + "description": "Check if a value is infinite." + }, + "math.isinf.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isinf.param-doc.x": { + "message": "Liczba.", + "description": "Parameter docs" + }, + "math.isnan": { + "message": "isnan", + "description": "(function name) Check if a value is not-a-number (NaN)." + }, + "math.isnan.summary": { + "message": "Sprawdź, czy wartość nie jest liczbą (NaN).", + "description": "Check if a value is not-a-number (NaN)." + }, + "math.isnan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.isnan.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.ldexp": { + "message": "ldexp", + "description": "(function name) Calculate ``x * (2**exp)``." + }, + "math.ldexp.summary": { + "message": "Oblicz {{x * (2**exp)}}.", + "description": "Calculate ``x * (2**exp)``." + }, + "math.ldexp.param-name.exp": { + "message": "exp", + "description": "(parameter name) Integer exponent" + }, + "math.ldexp.param-doc.exp": { + "message": "Wykładnik całkowity", + "description": "Parameter docs" + }, + "math.ldexp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ldexp.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.log": { + "message": "log", + "description": "(function name) Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.summary": { + "message": "Oblicz logarytm z {{x}} przy podanej podstawie (domyślnie loggorytm naturalny).", + "description": "Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.param-name.base": { + "message": "base", + "description": "(parameter name) The base to use" + }, + "math.log.param-doc.base": { + "message": "Podstawa do użycia", + "description": "Parameter docs" + }, + "math.log.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.log.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.modf": { + "message": "modf", + "description": "(function name) Calculate the fractional and integral parts of ``x``." + }, + "math.modf.summary": { + "message": "Oblicz część ułamkową i całkowitą z {{x}}.", + "description": "Calculate the fractional and integral parts of ``x``." + }, + "math.modf.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.modf.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.pow": { + "message": "pow", + "description": "(function name) Returns ``x`` to the power of ``y``." + }, + "math.pow.summary": { + "message": "Zwraca {{x}} do potęgi {{y}}.", + "description": "Returns ``x`` to the power of ``y``." + }, + "math.pow.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.pow.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.pow.param-name.y": { + "message": "y", + "description": "(parameter name) The exponent" + }, + "math.pow.param-doc.y": { + "message": "Wykładnik", + "description": "Parameter docs" + }, + "math.radians": { + "message": "radians", + "description": "(function name) Convert a degrees to radians." + }, + "math.radians.summary": { + "message": "Konwertuj stopnie na radiany.", + "description": "Convert a degrees to radians." + }, + "math.radians.param-name.x": { + "message": "x", + "description": "(parameter name) A value in degrees" + }, + "math.radians.param-doc.x": { + "message": "Wartość w stopniach", + "description": "Parameter docs" + }, + "math.sin": { + "message": "sin", + "description": "(function name) Calculate the sine of ``x``." + }, + "math.sin.summary": { + "message": "Oblicz sinus {{x}}.", + "description": "Calculate the sine of ``x``." + }, + "math.sin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sin.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.sqrt": { + "message": "sqrt", + "description": "(function name) Calculate the square root of ``x``." + }, + "math.sqrt.summary": { + "message": "Oblicz pierwiastek kwadratowy z {{x}}.", + "description": "Calculate the square root of ``x``." + }, + "math.sqrt.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sqrt.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.tan": { + "message": "tan", + "description": "(function name) Calculate the tangent of ``x``." + }, + "math.tan.summary": { + "message": "Oblicz tangens z {{x}}.", + "description": "Calculate the tangent of ``x``." + }, + "math.tan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.tan.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.trunc": { + "message": "trunc", + "description": "(function name) Round a number towards 0." + }, + "math.trunc.summary": { + "message": "Zaokrąglij liczbę w kierunku 0.", + "description": "Round a number towards 0." + }, + "math.trunc.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.trunc.param-doc.x": { + "message": "Liczba", + "description": "Parameter docs" + }, + "math.e": { + "message": "e", + "description": "(field name) Base of the natural logarithm" + }, + "math.e.summary": { + "message": "Podstawa logarytmu naturalnego", + "description": "Base of the natural logarithm" + }, + "math.pi": { + "message": "pi", + "description": "(field name) The ratio of a circle's circumference to its diameter" + }, + "math.pi.summary": { + "message": "Stosunek obwodu okręgu do jego średnicy", + "description": "The ratio of a circle's circumference to its diameter" + }, + "microbit": { + "message": "microbit", + "description": "(module name) Pins, images, sounds, temperature and volume." + }, + "microbit.summary": { + "message": "Piny, obrazy, dźwięki, temperatura i głośność.", + "description": "Pins, images, sounds, temperature and volume." + }, + "microbit.run_every": { + "message": "run every", + "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.summary": { + "message": "Zaplanuj uruchomienie funkcji w przedziale określonym przez argumenty czasu **tylko V2**.", + "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.param-name.callback": { + "message": "callback", + "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." + }, + "microbit.run_every.param-doc.callback": { + "message": "Funkcja wywoływana w podanym przedziale. Pomiń, jeśli używasz jako dekorator.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.days": { + "message": "days", + "description": "(parameter name) Sets the day mark for the scheduling." + }, + "microbit.run_every.param-doc.days": { + "message": "Ustawia oznaczenie dnia dla harmonogramu.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.h": { + "message": "h", + "description": "(parameter name) Sets the hour mark for the scheduling." + }, + "microbit.run_every.param-doc.h": { + "message": "Ustawia znak godziny dla harmonogramu.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.min": { + "message": "min", + "description": "(parameter name) Sets the minute mark for the scheduling." + }, + "microbit.run_every.param-doc.min": { + "message": "Ustawia znak minuty dla harmonogramu.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.ms": { + "message": "ms", + "description": "(parameter name) Sets the millisecond mark for the scheduling." + }, + "microbit.run_every.param-doc.ms": { + "message": "Ustawia znak milisekundy dla harmonogramu.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.s": { + "message": "s", + "description": "(parameter name) Sets the second mark for the scheduling." + }, + "microbit.run_every.param-doc.s": { + "message": "Ustawia znak sekundy dla harmonogramu.", + "description": "Parameter docs" + }, + "microbit.panic": { + "message": "panic", + "description": "(function name) Enter a panic mode." + }, + "microbit.panic.summary": { + "message": "Wejdź w tryb paniki.", + "description": "Enter a panic mode." + }, + "microbit.panic.param-name.n": { + "message": "n", + "description": "(parameter name) An arbitrary integer <= 255 to indicate a status." + }, + "microbit.panic.param-doc.n": { + "message": "Dowolna liczba całkowita <= 255 dla wskazania statusu.", + "description": "Parameter docs" + }, + "microbit.reset": { + "message": "reset", + "description": "(function name) Restart the board." + }, + "microbit.reset.summary": { + "message": "Uruchom ponownie płytkę.", + "description": "Restart the board." + }, + "microbit.scale-1": { + "message": "scale", + "description": "(function name) Converts a value from a range to an integer range." + }, + "microbit.scale-1.summary": { + "message": "Konwertuje wartość z zakresu do zakresu liczb całkowitych.", + "description": "Converts a value from a range to an integer range." + }, + "microbit.scale-1.param-name.from_": { + "message": "from", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-1.param-doc.from_": { + "message": "Krotka do zdefiniowania zakresu dla konwersji z.", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.to": { + "message": "to", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-1.param-doc.to": { + "message": "Krotka do zdefiniowania zakresu dla konwersji do.", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.value": { + "message": "value", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-1.param-doc.value": { + "message": "Liczba do konwersji.", + "description": "Parameter docs" + }, + "microbit.scale-2": { + "message": "scale", + "description": "(function name) Converts a value from a range to a floating point range." + }, + "microbit.scale-2.summary": { + "message": "Konwertuje wartość z zakresu do zakresu o zmiennopozycyjnego.", + "description": "Converts a value from a range to a floating point range." + }, + "microbit.scale-2.param-name.from_": { + "message": "from", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-2.param-doc.from_": { + "message": "Krotka do zdefiniowania zakresu dla konwersji z.", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.to": { + "message": "to", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-2.param-doc.to": { + "message": "Krotka do zdefiniowania zakresu, na jaki konwertować.", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.value": { + "message": "value", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-2.param-doc.value": { + "message": "Liczba do konwersji.", + "description": "Parameter docs" + }, + "microbit.sleep": { + "message": "sleep", + "description": "(function name) Wait for ``n`` milliseconds." + }, + "microbit.sleep.summary": { + "message": "Poczekaj {{n}} milisekund.", + "description": "Wait for ``n`` milliseconds." + }, + "microbit.sleep.param-name.n": { + "message": "n", + "description": "(parameter name) The number of milliseconds to wait" + }, + "microbit.sleep.param-doc.n": { + "message": "Liczba milisekund oczekiwania", + "description": "Parameter docs" + }, + "microbit.running_time": { + "message": "running time", + "description": "(function name) Get the running time of the board." + }, + "microbit.running_time.summary": { + "message": "Uzyskaj czas pracy płytki.", + "description": "Get the running time of the board." + }, + "microbit.temperature": { + "message": "temperature", + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.temperature.summary": { + "message": "Uzyskaj temperaturę micro:bita w stopniach Celsjusza.", + "description": "Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.set_volume": { + "message": "set volume", + "description": "(function name) Sets the volume." + }, + "microbit.set_volume.summary": { + "message": "Ustawia głośność.", + "description": "Sets the volume." + }, + "microbit.set_volume.param-name.v": { + "message": "v", + "description": "(parameter name) a value between 0 (low) and 255 (high)." + }, + "microbit.set_volume.param-doc.v": { + "message": "wartość między 0 (niska) a 255 (wysoka).", + "description": "Parameter docs" + }, + "microbit.Button": { + "message": "button", + "description": "(class name) The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.summary": { + "message": "Klasa dla przycisków {{button_a}} i {{button_b}}.", + "description": "The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.is_pressed": { + "message": "is pressed", + "description": "(function name) Check if the button is pressed." + }, + "microbit.Button.is_pressed.summary": { + "message": "Sprawdź, czy przycisk jest naciśnięty.", + "description": "Check if the button is pressed." + }, + "microbit.Button.was_pressed": { + "message": "was pressed", + "description": "(function name) Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.was_pressed.summary": { + "message": "Sprawdź, czy przycisk został naciśnięty od momentu uruchomienia urządzenia lub kiedy ta metoda została wywołana.", + "description": "Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.get_presses": { + "message": "get presses", + "description": "(function name) Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.Button.get_presses.summary": { + "message": "Pobierz sumę naciśnięć przycisków i zresetuje tę sumę\ndo zera przed powrotem.", + "description": "Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.button_a": { + "message": "button a", + "description": "(field name) The left button ``Button`` object." + }, + "microbit.button_a.summary": { + "message": "Lewy przycisk {{Button}} obiekt.", + "description": "The left button ``Button`` object." + }, + "microbit.button_b": { + "message": "button b", + "description": "(field name) The right button ``Button`` object." + }, + "microbit.button_b.summary": { + "message": "Prawy przycisk {{Button}} obiekt.", + "description": "The right button ``Button`` object." + }, + "microbit.MicroBitDigitalPin": { + "message": "microbitdigitalpin", + "description": "(class name) A digital pin." + }, + "microbit.MicroBitDigitalPin.summary": { + "message": "Cyfrowy pin.", + "description": "A digital pin." + }, + "microbit.MicroBitDigitalPin.read_digital": { + "message": "read digital", + "description": "(function name) Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.read_digital.summary": { + "message": "Uzyskaj cyfrową wartość pinu.", + "description": "Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital": { + "message": "write digital", + "description": "(function name) Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.summary": { + "message": "Ustaw cyfrową wartość pinu.", + "description": "Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.param-name.value": { + "message": "value", + "description": "(parameter name) 1 to set the pin high or 0 to set the pin low" + }, + "microbit.MicroBitDigitalPin.write_digital.param-doc.value": { + "message": "1, aby ustawić wysoką wartość pinu lub 0, aby ustawić niską wartość pinu", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_pull": { + "message": "set pull", + "description": "(function name) Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.summary": { + "message": "Ustaw stan ciągnięcia na jedną z trzech możliwych wartości: {{PULL_UP}}, {{PULL_DOWN}} lub {{NO_PULL}}.", + "description": "Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-name.value": { + "message": "value", + "description": "(parameter name) The pull state from the relevant pin, e.g. ``pin0.PULL_UP``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-doc.value": { + "message": "Stan ciągnięcia z odpowiedniego pinu, np. {{pin0.PULL_UP}}.", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.get_pull": { + "message": "get pull", + "description": "(function name) Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_pull.summary": { + "message": "Uzyskaj stan cignięcia na pinie.", + "description": "Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_mode": { + "message": "get mode", + "description": "(function name) Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.get_mode.summary": { + "message": "Zwraca tryb pinu.", + "description": "Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.write_analog": { + "message": "write analog", + "description": "(function name) Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.summary": { + "message": "Wysyłaj sygnał PWM na pin, z cyklem pracy proporcjonalnym do {{value}}.", + "description": "Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.param-name.value": { + "message": "value", + "description": "(parameter name) An integer or a floating point number between 0 (0% duty cycle) and 1023 (100% duty)." + }, + "microbit.MicroBitDigitalPin.write_analog.param-doc.value": { + "message": "Liczba całkowita lub liczba zmiennopozycyjna między 0 (0% cyklu pracy) a 1023 (100% cyklu pracy).", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period": { + "message": "set analog period", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.summary": { + "message": "Ustaw okres wyjścia sygnału PWM na {{period}} w milisekundach.", + "description": "Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-name.period": { + "message": "period", + "description": "(parameter name) The period in milliseconds with a minimum valid value of 1ms." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-doc.period": { + "message": "Okres w milisekundach z minimalną poprawną wartością 1 ms.", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds": { + "message": "ustaw mikrosekundy okresu analogowego", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.summary": { + "message": "Ustaw okres wyjścia sygnału PWM na {{period}} w mikrosekundach.", + "description": "Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-name.period": { + "message": "period", + "description": "(parameter name) The period in microseconds with a minimum valid value of 256µs." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-doc.period": { + "message": "Okres w mikrosekundach z minimalną poprawną wartością 256µs.", + "description": "Parameter docs" + }, + "microbit.MicroBitAnalogDigitalPin": { + "message": "microbitanalogdigitalpin", + "description": "(class name) A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.summary": { + "message": "Pin z funkcjami analogowymi i cyfrowymi.", + "description": "A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog": { + "message": "read analog", + "description": "(function name) Read the voltage applied to the pin." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog.summary": { + "message": "Odczytaj napięcie przyłożone do pinu.", + "description": "Read the voltage applied to the pin." + }, + "microbit.MicroBitTouchPin": { + "message": "microbittouchpin", + "description": "(class name) A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.summary": { + "message": "Pin z funkcjami analogowymi, cyfrowymi i dotykowymi.", + "description": "A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.is_touched": { + "message": "is touched", + "description": "(function name) Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.is_touched.summary": { + "message": "Sprawdź, czy pin został dotknięty.", + "description": "Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.set_touch_mode": { + "message": "set touch mode", + "description": "(function name) Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.summary": { + "message": "Ustaw tryb dotykowy dla pinu.", + "description": "Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-name.value": { + "message": "value", + "description": "(parameter name) ``CAPACITIVE`` or ``RESISTIVE`` from the relevant pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-doc.value": { + "message": "{{CAPACITIVE}} lub {{RESISTIVE}} z odpowiedniego pinu.", + "description": "Parameter docs" + }, + "microbit.pin0": { + "message": "pin0", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin0.summary": { + "message": "Pin z funkcjami cyfrową, analogową i dotykową.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin1": { + "message": "pin1", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin1.summary": { + "message": "Pin z funkcjami cyfrową, analogową i dotykową.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin2": { + "message": "pin2", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin2.summary": { + "message": "Pin z funkcjami cyfrową, analogową i dotykową.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin3": { + "message": "pin3", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin3.summary": { + "message": "Pin z funkcjami cyfrowymi i analogowymi.", + "description": "Pin with digital and analog features." + }, + "microbit.pin4": { + "message": "pin4", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin4.summary": { + "message": "Pin z funkcjami cyfrowymi i analogowymi.", + "description": "Pin with digital and analog features." + }, + "microbit.pin5": { + "message": "pin5", + "description": "(field name) Pin with digital features." + }, + "microbit.pin5.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin6": { + "message": "pin6", + "description": "(field name) Pin with digital features." + }, + "microbit.pin6.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin7": { + "message": "pin7", + "description": "(field name) Pin with digital features." + }, + "microbit.pin7.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin8": { + "message": "pin8", + "description": "(field name) Pin with digital features." + }, + "microbit.pin8.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin9": { + "message": "pin9", + "description": "(field name) Pin with digital features." + }, + "microbit.pin9.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin10": { + "message": "pin10", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin10.summary": { + "message": "Pin z funkcjami cyfrowymi i analogowymi.", + "description": "Pin with digital and analog features." + }, + "microbit.pin11": { + "message": "pin11", + "description": "(field name) Pin with digital features." + }, + "microbit.pin11.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin12": { + "message": "pin12", + "description": "(field name) Pin with digital features." + }, + "microbit.pin12.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin13": { + "message": "pin13", + "description": "(field name) Pin with digital features." + }, + "microbit.pin13.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin14": { + "message": "pin14", + "description": "(field name) Pin with digital features." + }, + "microbit.pin14.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin15": { + "message": "pin15", + "description": "(field name) Pin with digital features." + }, + "microbit.pin15.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin16": { + "message": "pin16", + "description": "(field name) Pin with digital features." + }, + "microbit.pin16.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin19": { + "message": "pin19", + "description": "(field name) Pin with digital features." + }, + "microbit.pin19.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin20": { + "message": "pin20", + "description": "(field name) Pin with digital features." + }, + "microbit.pin20.summary": { + "message": "Pin z funkcjami cyfrowymi.", + "description": "Pin with digital features." + }, + "microbit.pin_logo": { + "message": "pin logo", + "description": "(field name) A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_logo.summary": { + "message": "Wrażliwy na dotyk pin z logo z przodu micro:bita, który domyślnie jest ustawiony na pojemnościowy tryb dotykowy.", + "description": "A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_speaker": { + "message": "pin speaker", + "description": "(field name) A pin to address the micro:bit speaker." + }, + "microbit.pin_speaker.summary": { + "message": "Pin adresujący głośnik micro:bita.", + "description": "A pin to address the micro:bit speaker." + }, + "microbit.Image": { + "message": "image", + "description": "(class name) An image to show on the micro:bit LED display." + }, + "microbit.Image.summary": { + "message": "Obraz wyświetlany na wyświetlaczu LED micro:bita.", + "description": "An image to show on the micro:bit LED display." + }, + "microbit.Image.HEART": { + "message": "heart", + "description": "(field name) Heart image." + }, + "microbit.Image.HEART.summary": { + "message": "Obraz serca.", + "description": "Heart image." + }, + "microbit.Image.HEART_SMALL": { + "message": "heart small", + "description": "(field name) Small heart image." + }, + "microbit.Image.HEART_SMALL.summary": { + "message": "Obraz małego serca.", + "description": "Small heart image." + }, + "microbit.Image.HAPPY": { + "message": "happy", + "description": "(field name) Happy face image." + }, + "microbit.Image.HAPPY.summary": { + "message": "Obraz szczęśliwej twarzy.", + "description": "Happy face image." + }, + "microbit.Image.SMILE": { + "message": "smile", + "description": "(field name) Smiling mouth image." + }, + "microbit.Image.SMILE.summary": { + "message": "Obraz uśmiechniętej twarzy.", + "description": "Smiling mouth image." + }, + "microbit.Image.SAD": { + "message": "sad", + "description": "(field name) Sad face image." + }, + "microbit.Image.SAD.summary": { + "message": "Obraz smutnej twarzy.", + "description": "Sad face image." + }, + "microbit.Image.CONFUSED": { + "message": "confused", + "description": "(field name) Confused face image." + }, + "microbit.Image.CONFUSED.summary": { + "message": "Obraz zmieszanej twarzy.", + "description": "Confused face image." + }, + "microbit.Image.ANGRY": { + "message": "angry", + "description": "(field name) Angry face image." + }, + "microbit.Image.ANGRY.summary": { + "message": "Obraz złej twarzy.", + "description": "Angry face image." + }, + "microbit.Image.ASLEEP": { + "message": "asleep", + "description": "(field name) Sleeping face image." + }, + "microbit.Image.ASLEEP.summary": { + "message": "Obraz śpiącej twarzy.", + "description": "Sleeping face image." + }, + "microbit.Image.SURPRISED": { + "message": "surprised", + "description": "(field name) Surprised face image." + }, + "microbit.Image.SURPRISED.summary": { + "message": "Obraz zaskoczonej twarzy.", + "description": "Surprised face image." + }, + "microbit.Image.SILLY": { + "message": "silly", + "description": "(field name) Silly face image." + }, + "microbit.Image.SILLY.summary": { + "message": "Obraz głupiej twarzy.", + "description": "Silly face image." + }, + "microbit.Image.FABULOUS": { + "message": "fabulous", + "description": "(field name) Sunglasses face image." + }, + "microbit.Image.FABULOUS.summary": { + "message": "Obraz twarzy w okularach przeciwsłonecznych.", + "description": "Sunglasses face image." + }, + "microbit.Image.MEH": { + "message": "meh", + "description": "(field name) Unimpressed face image." + }, + "microbit.Image.MEH.summary": { + "message": "Obraz niewzruszonej twarzy.", + "description": "Unimpressed face image." + }, + "microbit.Image.YES": { + "message": "yes", + "description": "(field name) Tick image." + }, + "microbit.Image.YES.summary": { + "message": "Haczyk na TAK.", + "description": "Tick image." + }, + "microbit.Image.NO": { + "message": "no", + "description": "(field name) Cross image." + }, + "microbit.Image.NO.summary": { + "message": "Krzyżyk na NIE.", + "description": "Cross image." + }, + "microbit.Image.CLOCK12": { + "message": "clock12", + "description": "(field name) Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK12.summary": { + "message": "Obraz z linią wskazującą na godzinę 12.", + "description": "Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK11": { + "message": "clock11", + "description": "(field name) Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK11.summary": { + "message": "Obraz z linią wskazującą na godzinę 11.", + "description": "Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK10": { + "message": "clock10", + "description": "(field name) Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK10.summary": { + "message": "Obraz z linią wskazującą na godzinę 10.", + "description": "Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK9": { + "message": "clock9", + "description": "(field name) Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK9.summary": { + "message": "Obraz z linią wskazującą na godzinę 9.", + "description": "Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK8": { + "message": "clock8", + "description": "(field name) Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK8.summary": { + "message": "Obraz z linią wskazującą na godzinę 8.", + "description": "Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK7": { + "message": "clock7", + "description": "(field name) Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK7.summary": { + "message": "Obraz z linią wskazującą na godzinę 7.", + "description": "Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK6": { + "message": "clock6", + "description": "(field name) Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK6.summary": { + "message": "Obraz z linią wskazującą na godzinę 6.", + "description": "Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK5": { + "message": "clock5", + "description": "(field name) Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK5.summary": { + "message": "Obraz z linią wskazującą na godzinę 5.", + "description": "Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK4": { + "message": "clock4", + "description": "(field name) Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK4.summary": { + "message": "Obraz z linią wskazującą na godzinę 4.", + "description": "Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK3": { + "message": "clock3", + "description": "(field name) Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK3.summary": { + "message": "Obraz z linią wskazującą na godzinę 3.", + "description": "Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK2": { + "message": "clock2", + "description": "(field name) Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK2.summary": { + "message": "Obraz z linią wskazującą na godzinę 2.", + "description": "Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK1": { + "message": "clock1", + "description": "(field name) Image with line pointing to 1 o'clock." + }, + "microbit.Image.CLOCK1.summary": { + "message": "Obraz z linią wskazującą na godzinę 1.", + "description": "Image with line pointing to 1 o'clock." + }, + "microbit.Image.ARROW_N": { + "message": "arrow n", + "description": "(field name) Image of arrow pointing north." + }, + "microbit.Image.ARROW_N.summary": { + "message": "Obraz strzałki wskazującej północ.", + "description": "Image of arrow pointing north." + }, + "microbit.Image.ARROW_NE": { + "message": "arrow ne", + "description": "(field name) Image of arrow pointing north east." + }, + "microbit.Image.ARROW_NE.summary": { + "message": "Obraz strzałki wskazującej północny wschód.", + "description": "Image of arrow pointing north east." + }, + "microbit.Image.ARROW_E": { + "message": "arrow e", + "description": "(field name) Image of arrow pointing east." + }, + "microbit.Image.ARROW_E.summary": { + "message": "Obraz strzałki wskazującej wschód.", + "description": "Image of arrow pointing east." + }, + "microbit.Image.ARROW_SE": { + "message": "arrow se", + "description": "(field name) Image of arrow pointing south east." + }, + "microbit.Image.ARROW_SE.summary": { + "message": "Obraz strzałki wskazującej południowy wschód.", + "description": "Image of arrow pointing south east." + }, + "microbit.Image.ARROW_S": { + "message": "arrow s", + "description": "(field name) Image of arrow pointing south." + }, + "microbit.Image.ARROW_S.summary": { + "message": "Obraz strzałki wskazującej południe.", + "description": "Image of arrow pointing south." + }, + "microbit.Image.ARROW_SW": { + "message": "arrow sw", + "description": "(field name) Image of arrow pointing south west." + }, + "microbit.Image.ARROW_SW.summary": { + "message": "Obraz strzałki wskazującej południowy zachód.", + "description": "Image of arrow pointing south west." + }, + "microbit.Image.ARROW_W": { + "message": "arrow w", + "description": "(field name) Image of arrow pointing west." + }, + "microbit.Image.ARROW_W.summary": { + "message": "Obraz strzałki wskazującej zachód.", + "description": "Image of arrow pointing west." + }, + "microbit.Image.ARROW_NW": { + "message": "arrow nw", + "description": "(field name) Image of arrow pointing north west." + }, + "microbit.Image.ARROW_NW.summary": { + "message": "Obraz strzałki wskazującej północny zachód.", + "description": "Image of arrow pointing north west." + }, + "microbit.Image.TRIANGLE": { + "message": "triangle", + "description": "(field name) Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE.summary": { + "message": "Obraz trójkąta skierowanego do góry.", + "description": "Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE_LEFT": { + "message": "triangle left", + "description": "(field name) Image of a triangle in the left corner." + }, + "microbit.Image.TRIANGLE_LEFT.summary": { + "message": "Obraz trójkąta w lewym rogu.", + "description": "Image of a triangle in the left corner." + }, + "microbit.Image.CHESSBOARD": { + "message": "chessboard", + "description": "(field name) Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.CHESSBOARD.summary": { + "message": "Diody LED świecą naprzemiennie w układzie szachownicy.", + "description": "Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.DIAMOND": { + "message": "diamond", + "description": "(field name) Diamond image." + }, + "microbit.Image.DIAMOND.summary": { + "message": "Obraz diamentu.", + "description": "Diamond image." + }, + "microbit.Image.DIAMOND_SMALL": { + "message": "diamond small", + "description": "(field name) Small diamond image." + }, + "microbit.Image.DIAMOND_SMALL.summary": { + "message": "Obraz małego diamentu.", + "description": "Small diamond image." + }, + "microbit.Image.SQUARE": { + "message": "square", + "description": "(field name) Square image." + }, + "microbit.Image.SQUARE.summary": { + "message": "Obraz kwadratu.", + "description": "Square image." + }, + "microbit.Image.SQUARE_SMALL": { + "message": "square small", + "description": "(field name) Small square image." + }, + "microbit.Image.SQUARE_SMALL.summary": { + "message": "Obraz małego kwadratu.", + "description": "Small square image." + }, + "microbit.Image.RABBIT": { + "message": "rabbit", + "description": "(field name) Rabbit image." + }, + "microbit.Image.RABBIT.summary": { + "message": "Obraz królika.", + "description": "Rabbit image." + }, + "microbit.Image.COW": { + "message": "cow", + "description": "(field name) Cow image." + }, + "microbit.Image.COW.summary": { + "message": "Obraz krowy.", + "description": "Cow image." + }, + "microbit.Image.MUSIC_CROTCHET": { + "message": "music crotchet", + "description": "(field name) Crotchet note image." + }, + "microbit.Image.MUSIC_CROTCHET.summary": { + "message": "Obraz ćwierćnuty. ", + "description": "Crotchet note image." + }, + "microbit.Image.MUSIC_QUAVER": { + "message": "music quaver", + "description": "(field name) Quaver note image." + }, + "microbit.Image.MUSIC_QUAVER.summary": { + "message": "Obraz nuty ósemki.", + "description": "Quaver note image." + }, + "microbit.Image.MUSIC_QUAVERS": { + "message": "music quavers", + "description": "(field name) Pair of quavers note image." + }, + "microbit.Image.MUSIC_QUAVERS.summary": { + "message": "Obraz pary nut ósemek.", + "description": "Pair of quavers note image." + }, + "microbit.Image.PITCHFORK": { + "message": "pitchfork", + "description": "(field name) Pitchfork image." + }, + "microbit.Image.PITCHFORK.summary": { + "message": "Obraz kamertonu.", + "description": "Pitchfork image." + }, + "microbit.Image.XMAS": { + "message": "xmas", + "description": "(field name) Christmas tree image." + }, + "microbit.Image.XMAS.summary": { + "message": "Obraz choinki.", + "description": "Christmas tree image." + }, + "microbit.Image.PACMAN": { + "message": "pacman", + "description": "(field name) Pac-Man arcade character image." + }, + "microbit.Image.PACMAN.summary": { + "message": "Obrazek postaci arcade Pac-Man", + "description": "Pac-Man arcade character image." + }, + "microbit.Image.TARGET": { + "message": "target", + "description": "(field name) Target image." + }, + "microbit.Image.TARGET.summary": { + "message": "Obraz celu.", + "description": "Target image." + }, + "microbit.Image.TSHIRT": { + "message": "tshirt", + "description": "(field name) T-shirt image." + }, + "microbit.Image.TSHIRT.summary": { + "message": "Obraz t-shirt.", + "description": "T-shirt image." + }, + "microbit.Image.ROLLERSKATE": { + "message": "rollerskate", + "description": "(field name) Rollerskate image." + }, + "microbit.Image.ROLLERSKATE.summary": { + "message": "Obraz Rollerskate.", + "description": "Rollerskate image." + }, + "microbit.Image.DUCK": { + "message": "duck", + "description": "(field name) Duck image." + }, + "microbit.Image.DUCK.summary": { + "message": "Obraz kaczki.", + "description": "Duck image." + }, + "microbit.Image.HOUSE": { + "message": "house", + "description": "(field name) House image." + }, + "microbit.Image.HOUSE.summary": { + "message": "Obraz domu.", + "description": "House image." + }, + "microbit.Image.TORTOISE": { + "message": "tortoise", + "description": "(field name) Tortoise image." + }, + "microbit.Image.TORTOISE.summary": { + "message": "Obraz żółwia.", + "description": "Tortoise image." + }, + "microbit.Image.BUTTERFLY": { + "message": "butterfly", + "description": "(field name) Butterfly image." + }, + "microbit.Image.BUTTERFLY.summary": { + "message": "Obraz motyla.", + "description": "Butterfly image." + }, + "microbit.Image.STICKFIGURE": { + "message": "stickfigure", + "description": "(field name) Stick figure image." + }, + "microbit.Image.STICKFIGURE.summary": { + "message": "Obraz przyklejonej figury.", + "description": "Stick figure image." + }, + "microbit.Image.GHOST": { + "message": "ghost", + "description": "(field name) Ghost image." + }, + "microbit.Image.GHOST.summary": { + "message": "Obraz ducha.", + "description": "Ghost image." + }, + "microbit.Image.SWORD": { + "message": "sword", + "description": "(field name) Sword image." + }, + "microbit.Image.SWORD.summary": { + "message": "Obraz miecza.", + "description": "Sword image." + }, + "microbit.Image.GIRAFFE": { + "message": "giraffe", + "description": "(field name) Giraffe image." + }, + "microbit.Image.GIRAFFE.summary": { + "message": "Obraz żyrafy.", + "description": "Giraffe image." + }, + "microbit.Image.SKULL": { + "message": "skull", + "description": "(field name) Skull image." + }, + "microbit.Image.SKULL.summary": { + "message": "Obraz czaszki.", + "description": "Skull image." + }, + "microbit.Image.UMBRELLA": { + "message": "umbrella", + "description": "(field name) Umbrella image." + }, + "microbit.Image.UMBRELLA.summary": { + "message": "Obraz parasola.", + "description": "Umbrella image." + }, + "microbit.Image.SNAKE": { + "message": "snake", + "description": "(field name) Snake image." + }, + "microbit.Image.SNAKE.summary": { + "message": "Obraz węża.", + "description": "Snake image." + }, + "microbit.Image.SCISSORS": { + "message": "scissors", + "description": "(field name) Scissors image." + }, + "microbit.Image.SCISSORS.summary": { + "message": "Obraz nożyczek.", + "description": "Scissors image." + }, + "microbit.Image.ALL_CLOCKS": { + "message": "all clocks", + "description": "(field name) A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_CLOCKS.summary": { + "message": "Lista zawierająca wszystkie obrazy CLOCK_ po kolei.", + "description": "A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_ARROWS": { + "message": "all arrows", + "description": "(field name) A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.ALL_ARROWS.summary": { + "message": "Lista zawierająca wszystkie obrazy ARROW_ po kolei.", + "description": "A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.__init__-1": { + "message": "init", + "description": "(function name) Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.summary": { + "message": "Utwórz obraz z łańcucha opisującego, które diody LED są zapalone.", + "description": "Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.param-name.string": { + "message": "string", + "description": "(parameter name) The string describing the image." + }, + "microbit.Image.__init__-1.param-doc.string": { + "message": "Łańcuch opisujący obraz.", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2": { + "message": "init", + "description": "(function name) Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.summary": { + "message": "Utwórz pusty obraz z {{width}} kolumnami i {{height}} wierszami.", + "description": "Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.param-name.buffer": { + "message": "buffer", + "description": "(parameter name) Optional array or bytes of ``width``×``height`` integers in range 0-9 to initialize the image" + }, + "microbit.Image.__init__-2.param-doc.buffer": { + "message": "Opcjonalna tablica lub bajty {{width}}×{{height}} liczb całkowitych w zakresie 0-9 do zainicjowania obrazu", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.height": { + "message": "height", + "description": "(parameter name) Optional height of the image" + }, + "microbit.Image.__init__-2.param-doc.height": { + "message": "Opcjonalna wysokość obrazu", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.width": { + "message": "width", + "description": "(parameter name) Optional width of the image" + }, + "microbit.Image.__init__-2.param-doc.width": { + "message": "Opcjonalna szerokość obrazu", + "description": "Parameter docs" + }, + "microbit.Image.width": { + "message": "width", + "description": "(function name) Get the number of columns." + }, + "microbit.Image.width.summary": { + "message": "Ustal liczbę kolumn", + "description": "Get the number of columns." + }, + "microbit.Image.height": { + "message": "height", + "description": "(function name) Get the number of rows." + }, + "microbit.Image.height.summary": { + "message": "Uzyskaj liczbę wierszy", + "description": "Get the number of rows." + }, + "microbit.Image.set_pixel": { + "message": "set pixel", + "description": "(function name) Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.summary": { + "message": "Ustaw jasność piksela.", + "description": "Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.param-name.value": { + "message": "value", + "description": "(parameter name) The brightness as an integer between 0 (dark) and 9 (bright)" + }, + "microbit.Image.set_pixel.param-doc.value": { + "message": "Jasność jako liczba całkowita między 0 (ciemny) i 9 (jasna)", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.set_pixel.param-doc.x": { + "message": "Numer kolumny", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.set_pixel.param-doc.y": { + "message": "Numer wiersza", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel": { + "message": "get pixel", + "description": "(function name) Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.summary": { + "message": "uzyskaj jasność piksela.", + "description": "Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.get_pixel.param-doc.x": { + "message": "Numer kolumny", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.get_pixel.param-doc.y": { + "message": "Numer wiersza", + "description": "Parameter docs" + }, + "microbit.Image.shift_left": { + "message": "shift left", + "description": "(function name) Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.summary": { + "message": "Utwórz nowy obraz przesuwając ten obraz w lewo.", + "description": "Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_left.param-doc.n": { + "message": "Liczba kolumn do przesunięcia", + "description": "Parameter docs" + }, + "microbit.Image.shift_right": { + "message": "shift right", + "description": "(function name) Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.summary": { + "message": "Utwórz nowy obraz, przesuwając ten obraz w prawo.", + "description": "Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_right.param-doc.n": { + "message": "Liczba kolumn do przesunięcia", + "description": "Parameter docs" + }, + "microbit.Image.shift_up": { + "message": "shift up", + "description": "(function name) Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.summary": { + "message": "Utwórz nowy obraz, przesuwając obraz do góry.", + "description": "Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_up.param-doc.n": { + "message": "Liczba wierszy do przesunięcia o", + "description": "Parameter docs" + }, + "microbit.Image.shift_down": { + "message": "shift down", + "description": "(function name) Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.summary": { + "message": "Utwórz nowy obraz, przesuwając obraz do dołu.", + "description": "Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_down.param-doc.n": { + "message": "Liczba wierszy do przesunięcia o", + "description": "Parameter docs" + }, + "microbit.Image.crop": { + "message": "crop", + "description": "(function name) Create a new image by cropping the picture." + }, + "microbit.Image.crop.summary": { + "message": "Utwórz nowy obraz przez przycięcie zdjęcia.", + "description": "Create a new image by cropping the picture." + }, + "microbit.Image.crop.param-name.h": { + "message": "h", + "description": "(parameter name) The crop height" + }, + "microbit.Image.crop.param-doc.h": { + "message": "Wysokość przycięcia", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.w": { + "message": "w", + "description": "(parameter name) The crop width" + }, + "microbit.Image.crop.param-doc.w": { + "message": "Szerokość przycięcia", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.x": { + "message": "x", + "description": "(parameter name) The crop offset column" + }, + "microbit.Image.crop.param-doc.x": { + "message": "Kolumna przesunięcia przycięcia", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.y": { + "message": "y", + "description": "(parameter name) The crop offset row" + }, + "microbit.Image.crop.param-doc.y": { + "message": "Wiersz przesunięcia przycięcia", + "description": "Parameter docs" + }, + "microbit.Image.copy": { + "message": "copy", + "description": "(function name) Create an exact copy of the image." + }, + "microbit.Image.copy.summary": { + "message": "Utwórz dokładną kopię obrazu.", + "description": "Create an exact copy of the image." + }, + "microbit.Image.invert": { + "message": "invert", + "description": "(function name) Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.invert.summary": { + "message": "Utwórz nowy obraz przez odwrócenie jasności pikseli w obrazie źródłowym.", + "description": "Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.fill": { + "message": "fill", + "description": "(function name) Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.summary": { + "message": "Ustaw jasność wszystkich pikseli obrazka.", + "description": "Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.param-name.value": { + "message": "value", + "description": "(parameter name) The new brightness as a number between 0 (dark) and 9 (bright)." + }, + "microbit.Image.fill.param-doc.value": { + "message": "Nowa jasność jako liczba między 0 (ciemny) a 9 (jasny).", + "description": "Parameter docs" + }, + "microbit.Image.blit": { + "message": "blit", + "description": "(function name) Copy an area from another image into this image." + }, + "microbit.Image.blit.summary": { + "message": "Skopiuj obszar z innego obrazu na ten obraz.", + "description": "Copy an area from another image into this image." + }, + "microbit.Image.blit.param-name.h": { + "message": "h", + "description": "(parameter name) The number of rows to copy" + }, + "microbit.Image.blit.param-doc.h": { + "message": "Liczba wierszy do skopiowania", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.src": { + "message": "src", + "description": "(parameter name) The source image" + }, + "microbit.Image.blit.param-doc.src": { + "message": "Zdjęcie źródłowe", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.w": { + "message": "w", + "description": "(parameter name) The number of columns to copy" + }, + "microbit.Image.blit.param-doc.w": { + "message": "Liczba kolumn do skopiowania", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.x": { + "message": "x", + "description": "(parameter name) The starting column offset in the source image" + }, + "microbit.Image.blit.param-doc.x": { + "message": "Początkowe przesunięcie kolumny w obrazie źródłowym", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.xdest": { + "message": "xdest", + "description": "(parameter name) The column offset to modify in this image" + }, + "microbit.Image.blit.param-doc.xdest": { + "message": "Przesunięcie kolumny do modyfikacji na tym obrazie", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.y": { + "message": "y", + "description": "(parameter name) The starting row offset in the source image" + }, + "microbit.Image.blit.param-doc.y": { + "message": "Początkowe przesunięcie wiersza na obrazie źródłowym", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.ydest": { + "message": "ydest", + "description": "(parameter name) The row offset to modify in this image" + }, + "microbit.Image.blit.param-doc.ydest": { + "message": "Przesunięcie wiersza do modyfikacji na tym obrazie", + "description": "Parameter docs" + }, + "microbit.Image.__repr__": { + "message": "repr", + "description": "(function name) Get a compact string representation of the image." + }, + "microbit.Image.__repr__.summary": { + "message": "Uzyskaj kompaktową reprezentację obrazu w postaci łańcucha.", + "description": "Get a compact string representation of the image." + }, + "microbit.Image.__str__": { + "message": "str", + "description": "(function name) Get a readable string representation of the image." + }, + "microbit.Image.__str__.summary": { + "message": "Uzyskaj czytelną reprezentację obrazu w postaci łańcucha.", + "description": "Get a readable string representation of the image." + }, + "microbit.Image.__add__": { + "message": "add", + "description": "(function name) Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.summary": { + "message": "Utwórz nowy obraz, dodając wartości jasności z dwóch\nobrazów dla każdego piksela.", + "description": "Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.param-name.other": { + "message": "other", + "description": "(parameter name) The image to add." + }, + "microbit.Image.__add__.param-doc.other": { + "message": "Obraz do dodania.", + "description": "Parameter docs" + }, + "microbit.Image.__sub__": { + "message": "sub", + "description": "(function name) Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.summary": { + "message": "Utwórz nowy obraz, odejmując wartości jasności\ninnego obrazu od tego obrazu.", + "description": "Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.param-name.other": { + "message": "other", + "description": "(parameter name) The image to subtract." + }, + "microbit.Image.__sub__.param-doc.other": { + "message": "Obraz do odjęcia.", + "description": "Parameter docs" + }, + "microbit.Image.__mul__": { + "message": "mul", + "description": "(function name) Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.summary": { + "message": "Utwórz nowy obraz, mnożąc jasność każdego piksela przez\n{{n}}.", + "description": "Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to multiply by." + }, + "microbit.Image.__mul__.param-doc.n": { + "message": "Wartość do mnożenia przez.", + "description": "Parameter docs" + }, + "microbit.Image.__truediv__": { + "message": "truediv", + "description": "(function name) Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.summary": { + "message": "Utwórz nowy obraz, dzieląc jasność każdego piksela przez\n{{n}}.", + "description": "Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to divide by." + }, + "microbit.Image.__truediv__.param-doc.n": { + "message": "Wartość do dzielenia przez.", + "description": "Parameter docs" + }, + "microbit.SoundEvent.LOUD": { + "message": "loud", + "description": "(field name) Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.LOUD.summary": { + "message": "Przedstawia przejście zdarzeń dźwiękowych z {{quiet}} do {{loud}}, jak klaskanie lub krzyczenie.", + "description": "Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.QUIET": { + "message": "quiet", + "description": "(field name) Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.SoundEvent.QUIET.summary": { + "message": "Przedstawia przejście zdarzeń dźwiękowych z {{loud}} do {{quiet}}, jak mówienie lub muzyka w tle.", + "description": "Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.Sound": { + "message": "sound", + "description": "(class name) The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.summary": { + "message": "Wbudowane dźwięki można wywołać za pomocą {{audio.play(Sound.NAME)}}.", + "description": "The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.GIGGLE": { + "message": "giggle", + "description": "(field name) Giggling sound." + }, + "microbit.Sound.GIGGLE.summary": { + "message": "Chichoczący dźwięk.", + "description": "Giggling sound." + }, + "microbit.Sound.HAPPY": { + "message": "happy", + "description": "(field name) Happy sound." + }, + "microbit.Sound.HAPPY.summary": { + "message": "Szczęśliwy dźwięk.", + "description": "Happy sound." + }, + "microbit.Sound.HELLO": { + "message": "hello", + "description": "(field name) Greeting sound." + }, + "microbit.Sound.HELLO.summary": { + "message": "Dźwięk powitania.", + "description": "Greeting sound." + }, + "microbit.Sound.MYSTERIOUS": { + "message": "mysterious", + "description": "(field name) Mysterious sound." + }, + "microbit.Sound.MYSTERIOUS.summary": { + "message": "Tajemniczy dźwięk.", + "description": "Mysterious sound." + }, + "microbit.Sound.SAD": { + "message": "sad", + "description": "(field name) Sad sound." + }, + "microbit.Sound.SAD.summary": { + "message": "Smutny dźwięk.", + "description": "Sad sound." + }, + "microbit.Sound.SLIDE": { + "message": "slide", + "description": "(field name) Sliding sound." + }, + "microbit.Sound.SLIDE.summary": { + "message": "Przesuwający się dźwięk.", + "description": "Sliding sound." + }, + "microbit.Sound.SOARING": { + "message": "soaring", + "description": "(field name) Soaring sound." + }, + "microbit.Sound.SOARING.summary": { + "message": "Wznoszący się dźwięk.", + "description": "Soaring sound." + }, + "microbit.Sound.SPRING": { + "message": "spring", + "description": "(field name) Spring sound." + }, + "microbit.Sound.SPRING.summary": { + "message": "Wiosny dźwięk.", + "description": "Spring sound." + }, + "microbit.Sound.TWINKLE": { + "message": "twinkle", + "description": "(field name) Twinkling sound." + }, + "microbit.Sound.TWINKLE.summary": { + "message": "Migoczący dźwięk.", + "description": "Twinkling sound." + }, + "microbit.Sound.YAWN": { + "message": "yawn", + "description": "(field name) Yawning sound." + }, + "microbit.Sound.YAWN.summary": { + "message": "Dźwięk ziewania.", + "description": "Yawning sound." + }, + "microbit.accelerometer": { + "message": "accelerometer", + "description": "(module name) Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.summary": { + "message": "Zmierz przyspieszenie micro:bita i rozpoznawaj gesty.", + "description": "Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.get_x": { + "message": "get x", + "description": "(function name) Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_x.summary": { + "message": "Uzyskaj pomiar przyspieszenia na osi {{x}} w mili-g.", + "description": "Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_y": { + "message": "get y", + "description": "(function name) Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_y.summary": { + "message": "Uzyskaj pomiar przyspieszenia na osi {{y}} w mili-g.", + "description": "Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_z": { + "message": "get z", + "description": "(function name) Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_z.summary": { + "message": "Uzyskaj pomiar przyspieszenia na osi {{z}} w mili-g.", + "description": "Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_values": { + "message": "get values", + "description": "(function name) Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_values.summary": { + "message": "Uzyskaj pomiary przyspieszenia na wszystkich osiach jednocześnie, jako krotkę.", + "description": "Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_strength": { + "message": "get strength", + "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.get_strength.summary": { + "message": "Uzyskaj pomiar przyspieszenia wszystkich osi łącznie jako dodatnią liczbę całkowitą. Jest to suma pitagorejska osi X, Y i Z.", + "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.current_gesture": { + "message": "current gesture", + "description": "(function name) Get the name of the current gesture." + }, + "microbit.accelerometer.current_gesture.summary": { + "message": "Pobierz nazwę aktualnego gestu.", + "description": "Get the name of the current gesture." + }, + "microbit.accelerometer.is_gesture": { + "message": "is gesture", + "description": "(function name) Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.summary": { + "message": "Sprawdź, czy nazwany gest jest aktualnie aktywny.", + "description": "Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.param-name.name": { + "message": "name", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.is_gesture.param-doc.name": { + "message": "Nazwa gestu.", + "description": "Parameter docs" + }, + "microbit.accelerometer.was_gesture": { + "message": "was gesture", + "description": "(function name) Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.summary": { + "message": "Sprawdź, czy nazwany gest był aktywny od ostatniego połączenia.", + "description": "Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.param-name.name": { + "message": "name", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.was_gesture.param-doc.name": { + "message": "Nazwa gestu.", + "description": "Parameter docs" + }, + "microbit.accelerometer.get_gestures": { + "message": "get gestures", + "description": "(function name) Return a tuple of the gesture history." + }, + "microbit.accelerometer.get_gestures.summary": { + "message": "Zwróć krotkę historii gestów.", + "description": "Return a tuple of the gesture history." + }, + "microbit.accelerometer.set_range": { + "message": "set range", + "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.summary": { + "message": "Ustaw zakres czułości akcelerometru w g (standardowa grawitacja) na najbliższe wartości obsługiwane przez sprzęt tak, aby zaokrąglał się do {{2}}, {{4}} lub {{8}} g.", + "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.param-name.value": { + "message": "value", + "description": "(parameter name) New range for the accelerometer, an integer in ``g``." + }, + "microbit.accelerometer.set_range.param-doc.value": { + "message": "Nowy zakres dla akcelerometru, liczba całkowita w {{g}}.", + "description": "Parameter docs" + }, + "microbit.audio": { + "message": "audio", + "description": "(module name) Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.summary": { + "message": "Odtwarzaj dźwięki za pomocą micro:bita (importuj {{audio}} dla kompatybilności V1).", + "description": "Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.play": { + "message": "play", + "description": "(function name) Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.summary": { + "message": "Odtwórz wbudowany dźwięk, efekt dźwiękowy lub niestandardowe ramki audio.", + "description": "Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.param-name.pin": { + "message": "pin", + "description": "(parameter name) An optional argument to specify the output pin can be used to override the default of ``pin0``. If we do not want any sound to play we can use ``pin=None``." + }, + "microbit.audio.play.param-doc.pin": { + "message": "Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości {{pin0}}. Jeśli nie chcemy, aby żaden dźwięk nie był odtwarzany, możemy użyć {{pin=None}}.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.return_pin": { + "message": "return pin", + "description": "(parameter name) Specifies a differential edge connector pin to connect to an external speaker instead of ground. This is ignored for the **V2** revision." + }, + "microbit.audio.play.param-doc.return_pin": { + "message": "Określa pin łącznika różnicowego, aby podłączyć płytkę do zewnętrznego głośnika zamiast do ziemi. Jest to ignorowane dla **V2**.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.source": { + "message": "source", + "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." + }, + "microbit.audio.play.param-doc.source": { + "message": "Wbudowany {{Sound}}, taki jak {{Sound.GIGGLE}}, {{SoundEffect}} lub przykładowe dane jako iteracja obiektów {{AudioFrame}}.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the sound is complete." + }, + "microbit.audio.play.param-doc.wait": { + "message": "Jeśli {{wait}} jest {{True}}, ta funkcja będzie blokować, aż dźwięk zostanie zakończony.", + "description": "Parameter docs" + }, + "microbit.audio.is_playing": { + "message": "is playing", + "description": "(function name) Check whether a sound is playing." + }, + "microbit.audio.is_playing.summary": { + "message": "Sprawdź, czy dźwięk jest odtwarzany.", + "description": "Check whether a sound is playing." + }, + "microbit.audio.stop": { + "message": "stop", + "description": "(function name) Stop all audio playback." + }, + "microbit.audio.stop.summary": { + "message": "Zatrzymaj odtwarzania audio.", + "description": "Stop all audio playback." + }, + "microbit.audio.SoundEffect": { + "message": "soundeffect", + "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.summary": { + "message": "Efekt dźwiękowy, utworzony przez zestaw parametrów skonfigurowanych za pomocą konstruktora lub atrybutów.", + "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE": { + "message": "waveform sine", + "description": "(field name) Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { + "message": "Opcja sinusoidalnej fali używana dla parametru {{waveform}}.", + "description": "Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { + "message": "waveform sawtooth", + "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { + "message": "Opcja fali piłokształtnej używana dla parametru {{waveform}}.", + "description": "Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE": { + "message": "waveform triangle", + "description": "(field name) Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE.summary": { + "message": "Opcja fali trójkątnej używana dla parametru {{waveform}}.", + "description": "Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE": { + "message": "waveform square", + "description": "(field name) Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { + "message": "Opcja fali kwadratowj używana dla parametru {{waveform}}.", + "description": "Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE": { + "message": "waveform noise", + "description": "(field name) Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE.summary": { + "message": "Opcja szumu używana dla parametru {{waveform}}.", + "description": "Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR": { + "message": "shape linear", + "description": "(field name) Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR.summary": { + "message": "Opcja interpolacji liniowej używana dla parametru {{shape}}.", + "description": "Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE": { + "message": "shape curve", + "description": "(field name) Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE.summary": { + "message": "Opcja interpolacji krzywej używana dla parametru {{shape}}.", + "description": "Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG": { + "message": "shape log", + "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG.summary": { + "message": "Opcja interpolacji logarytmicznej używana dla parametru {{shape}}.", + "description": "Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE": { + "message": "fx none", + "description": "(field name) No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE.summary": { + "message": "Opcja braku efektu użyta dla parametru {{fx}}.", + "description": "No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO": { + "message": "fx tremolo", + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO.summary": { + "message": "Opcja efektu Tremelo użyta dla parametru {{fx}}.", + "description": "Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO": { + "message": "fx vibrato", + "description": "(field name) Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO.summary": { + "message": "Opcja efektu Vibrato użyta dla parametru {{fx}}.", + "description": "Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE": { + "message": "fx warble", + "description": "(field name) Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE.summary": { + "message": "Opcja efektu Warble użyta dla parametru {{fx}}.", + "description": "Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.freq_start": { + "message": "freq start", + "description": "(field name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_start.summary": { + "message": "Częstotliwość początkowa w hercach (Hz), liczba między {{0}} i {{9999}}", + "description": "Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end": { + "message": "freq end", + "description": "(field name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end.summary": { + "message": "Częstotliwość końcowa w hercach (Hz), liczba między {{0}} i {{9999}}", + "description": "End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration": { + "message": "duration", + "description": "(field name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration.summary": { + "message": "Czas trwania dźwięku w milisekundach, liczba pomiędzy {{0}} i {{9999}}", + "description": "Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.vol_start": { + "message": "vol start", + "description": "(field name) Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_start.summary": { + "message": "Wartość głośności początkowej, liczba między {{0}} i {{255}}", + "description": "Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end": { + "message": "vol end", + "description": "(field name) End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end.summary": { + "message": "Wartość głośności końcowej, liczba między {{0}} i {{255}}", + "description": "End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.waveform": { + "message": "waveform", + "description": "(field name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.waveform.summary": { + "message": "Rodzaj kształtu fali, jedna z tych wartości:{{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (losowo generowany szum)", + "description": "Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.fx": { + "message": "fx", + "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.fx.summary": { + "message": "Efekt do dodania do dźwięku, jedna z następujących wartości: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}} lub {{FX_NONE}}", + "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.shape": { + "message": "shape", + "description": "(field name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.shape.summary": { + "message": "Rodzaj krzywej interpolacji między częstotliwością początkową i końcową, różne kształty fal mają różne szybkości zmian częstotliwości. Jedna z następujących wartości: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", + "description": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.__init__": { + "message": "init", + "description": "(function name) Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.summary": { + "message": "Utwórz nowy efekt dźwiękowy.", + "description": "Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.param-name.duration": { + "message": "duration", + "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.duration": { + "message": "Czas trwania dźwięku w milisekundach, liczba między {{0}} i {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_end": { + "message": "freq end", + "description": "(parameter name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_end": { + "message": "Częstotliwość końcowa w hercach (Hz), liczba między {{0}} i {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_start": { + "message": "freq start", + "description": "(parameter name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_start": { + "message": "Częstotliwość początkowa w hercach (Hz), liczba między {{0}} i {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.fx": { + "message": "fx", + "description": "(parameter name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.fx": { + "message": "Efekt do dodania do dźwięku, jedna z następujących wartości: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}} lub {{FX_NONE}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.shape": { + "message": "shape", + "description": "(parameter name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.shape": { + "message": "Rodzaj krzywej interpolacji między częstotliwością początkową i końcową, różne kształty fal mają różne szybkości zmian częstotliwości. Jedna z następujących wartości: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_end": { + "message": "vol end", + "description": "(parameter name) End volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_end": { + "message": "Końcowa wartość głośności, liczba pomiędzy {{0}} i {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_start": { + "message": "vol start", + "description": "(parameter name) Start volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_start": { + "message": "Początkowa wartość głośności, liczba pomiędzy {{0}} i {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.waveform": { + "message": "waveform", + "description": "(parameter name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)." + }, + "microbit.audio.SoundEffect.__init__.param-doc.waveform": { + "message": "Rodzaj kształtu fali, jedna z tych wartości: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (losowo generowany szum).", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.copy": { + "message": "copy", + "description": "(function name) Create a copy of this ``SoundEffect``." + }, + "microbit.audio.SoundEffect.copy.summary": { + "message": "Utwórz kopię {{SoundEffect}}.", + "description": "Create a copy of this ``SoundEffect``." + }, + "microbit.audio.AudioFrame": { + "message": "audioframe", + "description": "(class name) An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.summary": { + "message": "Obiekt {{AudioFrame}} jest listą 32 próbek, z których każda jest niepodpisanym bajtem (liczba całkowita między 0 a 255).", + "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.copyfrom": { + "message": "copyfrom", + "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.summary": { + "message": "Zastąp dane w tym {{AudioFrame}} danymi z innej instancji {{AudioFrame}}.", + "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.param-name.other": { + "message": "other", + "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." + }, + "microbit.audio.AudioFrame.copyfrom.param-doc.other": { + "message": "Instancja {{AudioFrame}}, z której skopiowane są dane.", + "description": "Parameter docs" + }, + "microbit.compass": { + "message": "compass", + "description": "(module name) Use the built-in compass." + }, + "microbit.compass.summary": { + "message": "Użyj wbudowanego kompasu.", + "description": "Use the built-in compass." + }, + "microbit.compass.calibrate": { + "message": "calibrate", + "description": "(function name) Starts the calibration process." + }, + "microbit.compass.calibrate.summary": { + "message": "Rozpoczyna proces kalibracji.", + "description": "Starts the calibration process." + }, + "microbit.compass.is_calibrated": { + "message": "is calibrated", + "description": "(function name) Check is the compass is calibrated." + }, + "microbit.compass.is_calibrated.summary": { + "message": "Sprawdź, czy kompas jest skalibrowany.", + "description": "Check is the compass is calibrated." + }, + "microbit.compass.clear_calibration": { + "message": "clear calibration", + "description": "(function name) Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.clear_calibration.summary": { + "message": "Cofnij kalibrację, czyniąc kompas ponownie niekalibrowanym.", + "description": "Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.get_x": { + "message": "get x", + "description": "(function name) Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_x.summary": { + "message": "Uzyskaj natężenie pola magnetycznego na osi {{x}}.", + "description": "Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_y": { + "message": "get y", + "description": "(function name) Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_y.summary": { + "message": "Uzyskaj natężenie pola magnetycznego na osi {{y}}.", + "description": "Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_z": { + "message": "get z", + "description": "(function name) Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.get_z.summary": { + "message": "Uzyskaj natężenie pola magnetycznego na osi {{z}}.", + "description": "Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.heading": { + "message": "heading", + "description": "(function name) Get the compass heading." + }, + "microbit.compass.heading.summary": { + "message": "Pobierz kierunek kompasu.", + "description": "Get the compass heading." + }, + "microbit.compass.get_field_strength": { + "message": "get field strength", + "description": "(function name) Get the magnitude of the magnetic field around the device." + }, + "microbit.compass.get_field_strength.summary": { + "message": "Uzyskaj wielkość pola magnetycznego wokół urządzenia.", + "description": "Get the magnitude of the magnetic field around the device." + }, + "microbit.display": { + "message": "display", + "description": "(module name) Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.summary": { + "message": "Pokaż tekst, obrazy i animacje na wyświetlaczu 5x5 LED.", + "description": "Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.get_pixel": { + "message": "get pixel", + "description": "(function name) Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.summary": { + "message": "Uzyskaj jasność LED w kolumnie {{x}} i w wierszu {{y}}.", + "description": "Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.get_pixel.param-doc.x": { + "message": "Wyświetlana kolumna (0..4)", + "description": "Parameter docs" + }, + "microbit.display.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.get_pixel.param-doc.y": { + "message": "Wyświetlany wiersz (0..4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel": { + "message": "set pixel", + "description": "(function name) Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.summary": { + "message": "Ustaw jasność LED w kolumnie {{x}} i wierszu {{y}}.", + "description": "Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.param-name.value": { + "message": "value", + "description": "(parameter name) The brightness between 0 (off) and 9 (bright)" + }, + "microbit.display.set_pixel.param-doc.value": { + "message": "Jasność między 0 (wyłączona) i 9 (jasna)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.set_pixel.param-doc.x": { + "message": "Wyświetlana kolumna (0..4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.set_pixel.param-doc.y": { + "message": "Wyświetlany wiersz (0..4)", + "description": "Parameter docs" + }, + "microbit.display.clear": { + "message": "clear", + "description": "(function name) Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.clear.summary": { + "message": "Ustaw jasność wszystkich diod LED na 0 (wyłączone).", + "description": "Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.show": { + "message": "show", + "description": "(function name) Shows images, letters or digits on the LED display." + }, + "microbit.display.show.summary": { + "message": "Pokazuje obrazy, litery lub cyfry na wyświetlaczu LED.", + "description": "Shows images, letters or digits on the LED display." + }, + "microbit.display.show.param-name.clear": { + "message": "clear", + "description": "(parameter name) If ``clear`` is ``True``, the display will be cleared after the sequence has finished." + }, + "microbit.display.show.param-doc.clear": { + "message": "Jeśli {{clear}} jest {{True}}, wyświetlacz zostanie wyczyszczony po zakończeniu sekwencji.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.delay": { + "message": "delay", + "description": "(parameter name) Each letter, digit or image is shown with ``delay`` milliseconds between them." + }, + "microbit.display.show.param-doc.delay": { + "message": "Każda litera, cyfra lub obraz są wyświetlane z {{delay}} milisekundami między sobą.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.image": { + "message": "image", + "description": "(parameter name) A string, number, image or list of images to show." + }, + "microbit.display.show.param-doc.image": { + "message": "Łańcuch, liczba, obraz lub lista obrazów do pokazania.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.loop": { + "message": "loop", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.show.param-doc.loop": { + "message": "Jeśli {{loop}} jest {{True}}, animacja będzie powtarzana w nieskończoność.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.show.param-doc.wait": { + "message": "Jeśli {{wait}} jest {{True}}, ta funkcja będzie blokować, aż zakończy się animacja, w przeciwnym razie animacja pojawi się w tle.", + "description": "Parameter docs" + }, + "microbit.display.scroll": { + "message": "scroll", + "description": "(function name) Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.summary": { + "message": "Przewija liczbę lub tekst na wyświetlaczu LED.", + "description": "Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.param-name.delay": { + "message": "delay", + "description": "(parameter name) The ``delay`` parameter controls how fast the text is scrolling." + }, + "microbit.display.scroll.param-doc.delay": { + "message": "Parametr {{delay}} kontroluje szybkość przewijania tekstu.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.loop": { + "message": "loop", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.scroll.param-doc.loop": { + "message": "Jeśli {{loop}} jest {{True}}, animacja będzie powtarzana w nieskończoność.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.monospace": { + "message": "monospace", + "description": "(parameter name) If ``monospace`` is ``True``, the characters will all take up 5 pixel-columns in width, otherwise there will be exactly 1 blank pixel-column between each character as they scroll." + }, + "microbit.display.scroll.param-doc.monospace": { + "message": "Jeśli {{monospace}} jest {{True}}, wszystkie znaki zajmą co najwyżej 5 kolumn pikseli na szerokość, w przeciwnym razie będzie dokładnie 1 pusta kolumna pikseli pomiędzy każdym znakiem, gdy się przewijają.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.text": { + "message": "text", + "description": "(parameter name) The string to scroll. If ``text`` is an integer or float it is first converted to a string using ``str()``." + }, + "microbit.display.scroll.param-doc.text": { + "message": "Łańcuch do przewinięcia. Jeśli {{text}} jest liczbą całkowitą lub zmiennopozycyjną, najpierw zostanie przekonwertowany na łańcuch za pomocą {{str()}}.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.scroll.param-doc.wait": { + "message": "Jeśli {{wait}} jest {{True}}, ta funkcja będzie blokować, aż zakończy się animacja, w przeciwnym razie animacja pojawi się w tle.", + "description": "Parameter docs" + }, + "microbit.display.on": { + "message": "on", + "description": "(function name) Turn on the LED display." + }, + "microbit.display.on.summary": { + "message": "Włącz wyświetlacz LED.", + "description": "Turn on the LED display." + }, + "microbit.display.off": { + "message": "off", + "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.off.summary": { + "message": "Wyłącz wyświetlacz LED (wyłączenie wyświetlania pozwala na ponowne użycie pinów GPIO do innych celów).", + "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.is_on": { + "message": "is on", + "description": "(function name) Check whether the LED display is enabled." + }, + "microbit.display.is_on.summary": { + "message": "Sprawdź, czy wyświetlacz LED jest włączony.", + "description": "Check whether the LED display is enabled." + }, + "microbit.display.read_light_level": { + "message": "read light level", + "description": "(function name) Read the light level." + }, + "microbit.display.read_light_level.summary": { + "message": "Odczytuj poziom światła.", + "description": "Read the light level." + }, + "microbit.i2c": { + "message": "i2c", + "description": "(module name) Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.summary": { + "message": "Komunikuj się z urządzeniami za pomocą protokołu magistrali I2C.", + "description": "Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.init": { + "message": "init", + "description": "(function name) Re-initialize a peripheral." + }, + "microbit.i2c.init.summary": { + "message": "Ponownie zainicjuj peryferia.", + "description": "Re-initialize a peripheral." + }, + "microbit.i2c.init.param-name.freq": { + "message": "freq", + "description": "(parameter name) clock frequency" + }, + "microbit.i2c.init.param-doc.freq": { + "message": "clock frequency", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.scl": { + "message": "scl", + "description": "(parameter name) ``scl`` pin (default 19)" + }, + "microbit.i2c.init.param-doc.scl": { + "message": "{{scl}} pin (domyślnie 19)", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.sda": { + "message": "sda", + "description": "(parameter name) ``sda`` pin (default 20)" + }, + "microbit.i2c.init.param-doc.sda": { + "message": "{{sda}} pin (domyślnie 20)", + "description": "Parameter docs" + }, + "microbit.i2c.scan": { + "message": "scan", + "description": "(function name) Scan the bus for devices." + }, + "microbit.i2c.scan.summary": { + "message": "Przeskanuj magistralę w poszukiwaniu urządzeń.", + "description": "Scan the bus for devices." + }, + "microbit.i2c.read": { + "message": "read", + "description": "(function name) Read bytes from a device." + }, + "microbit.i2c.read.summary": { + "message": "Odczytaj bajty z urządzenia..", + "description": "Read bytes from a device." + }, + "microbit.i2c.read.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.read.param-doc.addr": { + "message": "7-bitowy adres urządzenia", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.n": { + "message": "n", + "description": "(parameter name) The number of bytes to read" + }, + "microbit.i2c.read.param-doc.n": { + "message": "Liczba bajtów do odczytu", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.repeat": { + "message": "repeat", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.read.param-doc.repeat": { + "message": "Jeśli {{True}}, nie zostaną wysłane żadne bity zatrzymania", + "description": "Parameter docs" + }, + "microbit.i2c.write": { + "message": "write", + "description": "(function name) Write bytes to a device." + }, + "microbit.i2c.write.summary": { + "message": "Zapisz bajty na urządzenie.", + "description": "Write bytes to a device." + }, + "microbit.i2c.write.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.write.param-doc.addr": { + "message": "7-bitowy adres urządzenia", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A buffer containing the bytes to write" + }, + "microbit.i2c.write.param-doc.buf": { + "message": "Bufor zawierający bajty do zapisu", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.repeat": { + "message": "repeat", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.write.param-doc.repeat": { + "message": "Jeśli {{True}}, nie zostaną wysłane żadne bity zatrzymania", + "description": "Parameter docs" + }, + "microbit.microphone": { + "message": "microphone", + "description": "(module name) Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.summary": { + "message": "Odpowiedz na dźwięk przy użyciu wbudowanego mikrofonu (tylko V2).", + "description": "Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.current_event": { + "message": "current event", + "description": "(function name) Get the last recorded sound event" + }, + "microbit.microphone.current_event.summary": { + "message": "Pobierz ostatnie nagrane zdarzenie dźwiękowe", + "description": "Get the last recorded sound event" + }, + "microbit.microphone.was_event": { + "message": "was event", + "description": "(function name) Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.summary": { + "message": "Sprawdź, czy dźwięk był słyszany co najmniej raz od ostatniego połączenia.", + "description": "Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.param-name.event": { + "message": "event", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.was_event.param-doc.event": { + "message": "Zdarzenie do sprawdzenia, takie jak {{SoundEvent.LOUD}} lub {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.is_event": { + "message": "is event", + "description": "(function name) Check the most recent sound event detected." + }, + "microbit.microphone.is_event.summary": { + "message": "Sprawdź najnowsze wykryte zdarzenie dźwiękowe.", + "description": "Check the most recent sound event detected." + }, + "microbit.microphone.is_event.param-name.event": { + "message": "event", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.is_event.param-doc.event": { + "message": "Zdarzenie do sprawdzenia, takie jak {{SoundEvent.LOUD}} lub {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.get_events": { + "message": "get events", + "description": "(function name) Get the sound event history as a tuple." + }, + "microbit.microphone.get_events.summary": { + "message": "Pobierz historię zdarzeń dźwiękowych jako krotkę.", + "description": "Get the sound event history as a tuple." + }, + "microbit.microphone.set_threshold": { + "message": "set threshold", + "description": "(function name) Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.summary": { + "message": "Ustaw próg dla zdarzenia dźwiękowego.", + "description": "Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.param-name.event": { + "message": "event", + "description": "(parameter name) A sound event, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``." + }, + "microbit.microphone.set_threshold.param-doc.event": { + "message": "Zdarzenie dźwiękowe, takie jak {{SoundEvent.LOUD}} lub {{SoundEvent.QUIET}}.", + "description": "Parameter docs" + }, + "microbit.microphone.set_threshold.param-name.value": { + "message": "value", + "description": "(parameter name) The threshold level in the range 0-255." + }, + "microbit.microphone.set_threshold.param-doc.value": { + "message": "Poziom progu w zakresie 0-255.", + "description": "Parameter docs" + }, + "microbit.microphone.sound_level": { + "message": "sound level", + "description": "(function name) Get the sound pressure level." + }, + "microbit.microphone.sound_level.summary": { + "message": "Uzyskaj poziom ciśnienia akustycznego.", + "description": "Get the sound pressure level." + }, + "microbit.speaker": { + "message": "speaker", + "description": "(module name) Control the built-in speaker (V2 only)." + }, + "microbit.speaker.summary": { + "message": "Sprawdź wbudowany głośnik (tylko V2).", + "description": "Control the built-in speaker (V2 only)." + }, + "microbit.speaker.off": { + "message": "off", + "description": "(function name) Turn the speaker off." + }, + "microbit.speaker.off.summary": { + "message": "Wyłącz głośnik.", + "description": "Turn the speaker off." + }, + "microbit.speaker.on": { + "message": "on", + "description": "(function name) Turn the speaker on." + }, + "microbit.speaker.on.summary": { + "message": "Włącz głośnik.", + "description": "Turn the speaker on." + }, + "microbit.spi": { + "message": "spi", + "description": "(module name) Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.summary": { + "message": "Komunikuj się z urządzeniami za pomocą magistrali szeregowego interfejsu (SPI).", + "description": "Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.init": { + "message": "init", + "description": "(function name) Initialize SPI communication." + }, + "microbit.spi.init.summary": { + "message": "Zainicjuj komunikację SPI.", + "description": "Initialize SPI communication." + }, + "microbit.spi.init.param-name.baudrate": { + "message": "baudrate", + "description": "(parameter name) The speed of communication." + }, + "microbit.spi.init.param-doc.baudrate": { + "message": "Szybkość komunikacji.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.bits": { + "message": "bits", + "description": "(parameter name) The width in bits of each transfer. Currently only ``bits=8`` is supported. However, this may change in the future." + }, + "microbit.spi.init.param-doc.bits": { + "message": "Szerokość w bitach każdego transferu. Obecnie obsługiwanych jest tylko {{bits=8}}. Może to jednak ulec zmianie w przyszłości.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.miso": { + "message": "miso", + "description": "(parameter name) miso pin (default 14)" + }, + "microbit.spi.init.param-doc.miso": { + "message": "pin miso (domyślnie 14)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mode": { + "message": "mode", + "description": "(parameter name) Determines the combination of clock polarity and phase - `see online table `_." + }, + "microbit.spi.init.param-doc.mode": { + "message": "Określa połączenie polarności zegara i fazy - `zobacz tabelę online `_.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mosi": { + "message": "mosi", + "description": "(parameter name) mosi pin (default 15)" + }, + "microbit.spi.init.param-doc.mosi": { + "message": "pin mosi (domyślnie 15)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.sclk": { + "message": "sclk", + "description": "(parameter name) sclk pin (default 13)" + }, + "microbit.spi.init.param-doc.sclk": { + "message": "pin sclk (domyślnie 13)", + "description": "Parameter docs" + }, + "microbit.spi.read": { + "message": "read", + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." + }, + "microbit.spi.read.summary": { + "message": "Czytaj bajty.", + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." + }, + "microbit.spi.read.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) Maximum number of bytes to read." + }, + "microbit.spi.read.param-doc.nbytes": { + "message": "Maksymalna liczba bajtów do odczytu.", + "description": "Parameter docs" + }, + "microbit.spi.read.param-name.out": { + "message": "out", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, + "microbit.spi.write": { + "message": "write", + "description": "(function name) Write bytes to the bus." + }, + "microbit.spi.write.summary": { + "message": "Zapisz bajty na magistrali.", + "description": "Write bytes to the bus." + }, + "microbit.spi.write.param-name.buffer": { + "message": "buffer", + "description": "(parameter name) A buffer to read data from." + }, + "microbit.spi.write.param-doc.buffer": { + "message": "Bufor do odczytu danych.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto": { + "message": "write readinto", + "description": "(function name) Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.summary": { + "message": "Zapisz bufor {{out}} do magistrali i wczytaj dowolną odpowiedź do bufora {{in_}}.", + "description": "Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.param-name.in_": { + "message": "in", + "description": "(parameter name) The buffer to read data from." + }, + "microbit.spi.write_readinto.param-doc.in_": { + "message": "Bufor do odczytu danych.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto.param-name.out": { + "message": "out", + "description": "(parameter name) The buffer to write any response to." + }, + "microbit.spi.write_readinto.param-doc.out": { + "message": "Bufor do zapisu dowolnej odpowiedzi.", + "description": "Parameter docs" + }, + "microbit.uart": { + "message": "uart", + "description": "(module name) Communicate with a device using a serial interface." + }, + "microbit.uart.summary": { + "message": "Komunikuj się z urządzeniem za pomocą interfejsu szeregowego.", + "description": "Communicate with a device using a serial interface." + }, + "microbit.uart.ODD": { + "message": "odd", + "description": "(field name) Odd parity" + }, + "microbit.uart.ODD.summary": { + "message": "Nieparzysta parzystość", + "description": "Odd parity" + }, + "microbit.uart.EVEN": { + "message": "even", + "description": "(field name) Even parity" + }, + "microbit.uart.EVEN.summary": { + "message": "Parzysta parzystość", + "description": "Even parity" + }, + "microbit.uart.init": { + "message": "init", + "description": "(function name) Initialize serial communication." + }, + "microbit.uart.init.summary": { + "message": "Zainicjuj komunikację seryjną.", + "description": "Initialize serial communication." + }, + "microbit.uart.init.param-name.baudrate": { + "message": "baudrate", + "description": "(parameter name) The speed of communication." + }, + "microbit.uart.init.param-doc.baudrate": { + "message": "Szybkość komunikacji.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.bits": { + "message": "bits", + "description": "(parameter name) The size of bytes being transmitted. micro:bit only supports 8." + }, + "microbit.uart.init.param-doc.bits": { + "message": "Rozmiar przesyłanych bajtów. micro:bit obsługuje tylko 8.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.parity": { + "message": "parity", + "description": "(parameter name) How parity is checked, ``None``, ``uart.ODD`` or ``uart.EVEN``." + }, + "microbit.uart.init.param-doc.parity": { + "message": "Jak sprawdzana jest parzystość, {{None}}, {{uart.ODD}} lub {{uart.EVEN}}.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.rx": { + "message": "rx", + "description": "(parameter name) Receiving pin." + }, + "microbit.uart.init.param-doc.rx": { + "message": "Odbieranie pinu.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.stop": { + "message": "stop", + "description": "(parameter name) The number of stop bits, has to be 1 for micro:bit." + }, + "microbit.uart.init.param-doc.stop": { + "message": "Liczba bitów stopu musi wynosić 1 dla micro:bita.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.tx": { + "message": "tx", + "description": "(parameter name) Transmitting pin." + }, + "microbit.uart.init.param-doc.tx": { + "message": "Transmitując pin.", + "description": "Parameter docs" + }, + "microbit.uart.any": { + "message": "any", + "description": "(function name) Check if any data is waiting." + }, + "microbit.uart.any.summary": { + "message": "Sprawdź, czy czekają jakieś dane.", + "description": "Check if any data is waiting." + }, + "microbit.uart.read": { + "message": "read", + "description": "(function name) Read bytes." + }, + "microbit.uart.read.summary": { + "message": "Czytaj bajty.", + "description": "Read bytes." + }, + "microbit.uart.read.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read as many bytes as possible" + }, + "microbit.uart.read.param-doc.nbytes": { + "message": "Jeśli {{nbytes}} jest określony, przeczytaj co najwyżej tę liczbę bajtów, w przeciwnym razie przeczytaj jak najwięcej bajtów", + "description": "Parameter docs" + }, + "microbit.uart.readinto": { + "message": "readinto", + "description": "(function name) Read bytes into the ``buf``." + }, + "microbit.uart.readinto.summary": { + "message": "Przeczytaj bajty do {{buf}}.", + "description": "Read bytes into the ``buf``." + }, + "microbit.uart.readinto.param-name.buf": { + "message": "buf", + "description": "(parameter name) The buffer to write to." + }, + "microbit.uart.readinto.param-doc.buf": { + "message": "Bufor do zapisu.", + "description": "Parameter docs" + }, + "microbit.uart.readinto.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read ``len(buf)`` bytes." + }, + "microbit.uart.readinto.param-doc.nbytes": { + "message": "Jeśli {{nbytes}} jest określony, przeczytaj co najwyżej tę liczbę bajtów, w przeciwnym razie przeczytaj {{len(buf)}} bajtów.", + "description": "Parameter docs" + }, + "microbit.uart.readline": { + "message": "readline", + "description": "(function name) Read a line, ending in a newline character." + }, + "microbit.uart.readline.summary": { + "message": "Przeczytaj wiersz kończący się znakiem nowej linii.", + "description": "Read a line, ending in a newline character." + }, + "microbit.uart.write": { + "message": "write", + "description": "(function name) Write a buffer to the bus." + }, + "microbit.uart.write.summary": { + "message": "Zapisz bufor na magistrali.", + "description": "Write a buffer to the bus." + }, + "microbit.uart.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A bytes object or a string." + }, + "microbit.uart.write.param-doc.buf": { + "message": "Obiekt bajtów lub łańcuch.", + "description": "Parameter docs" + }, + "micropython": { + "message": "microPython", + "description": "(module name) MicroPython internals." + }, + "micropython.summary": { + "message": "Wewnątrz MicroPythona.", + "description": "MicroPython internals." + }, + "micropython.const": { + "message": "const", + "description": "(function name) Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.summary": { + "message": "Służy do zadeklarowania, że wyrażenie jest stałą tak, że kompilator może\nje zoptymalizować.", + "description": "Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.param-name.expr": { + "message": "expr", + "description": "(parameter name) A constant expression." + }, + "micropython.const.param-doc.expr": { + "message": "Wyrażenie stałe.", + "description": "Parameter docs" + }, + "micropython.opt_level-1": { + "message": "opt level", + "description": "(function name) Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-1.summary": { + "message": "Uzyskaj obecny poziom optymalizacji dla kompilacji skryptów.", + "description": "Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-2": { + "message": "opt level", + "description": "(function name) Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.summary": { + "message": "Ustawia poziom optymalizacji dla późniejszej kompilacji skryptów.", + "description": "Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.param-name.level": { + "message": "level", + "description": "(parameter name) An integer optimisation level." + }, + "micropython.opt_level-2.param-doc.level": { + "message": "Poziom optymalizacji całkowity.", + "description": "Parameter docs" + }, + "micropython.mem_info": { + "message": "mem info", + "description": "(function name) Print information about currently used memory." + }, + "micropython.mem_info.summary": { + "message": "Drukuj informacje o aktualnie używanej pamięci.", + "description": "Print information about currently used memory." + }, + "micropython.mem_info.param-name.verbose": { + "message": "verbose", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.mem_info.param-doc.verbose": { + "message": "Jeśli dany jest argument {{verbose}}, drukowane są dodatkowe informacje.", + "description": "Parameter docs" + }, + "micropython.qstr_info": { + "message": "qstr info", + "description": "(function name) Print information about currently interned strings." + }, + "micropython.qstr_info.summary": { + "message": "Drukuj informacje o aktualnie internowanych łańcuchach.", + "description": "Print information about currently interned strings." + }, + "micropython.qstr_info.param-name.verbose": { + "message": "verbose", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.qstr_info.param-doc.verbose": { + "message": "Jeśli dany jest argument {{verbose}}, drukowane są dodatkowe informacje.", + "description": "Parameter docs" + }, + "micropython.stack_use": { + "message": "stack use", + "description": "(function name) Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.stack_use.summary": { + "message": "Zwróć liczbę całkowitą reprezentującą aktualną wielkość używanego stosu", + "description": "Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.heap_lock": { + "message": "heap lock", + "description": "(function name) Lock the heap." + }, + "micropython.heap_lock.summary": { + "message": "Zablokuj stos.", + "description": "Lock the heap." + }, + "micropython.heap_unlock": { + "message": "heap unlock", + "description": "(function name) Unlock the heap." + }, + "micropython.heap_unlock.summary": { + "message": "Odblokuj stos.", + "description": "Unlock the heap." + }, + "micropython.kbd_intr": { + "message": "kbd intr", + "description": "(function name) Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.summary": { + "message": "Ustaw znak, który zgłosi wyjątek {{KeyboardInterrupt}}.", + "description": "Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.param-name.chr": { + "message": "chr", + "description": "(parameter name) Character code to raise the interrupt or -1 to disable capture of Ctrl-C." + }, + "micropython.kbd_intr.param-doc.chr": { + "message": "Kod znaku, aby zwiększyć przerwę lub -1, aby wyłączyć przechwytywanie Ctrl-C.", + "description": "Parameter docs" + }, + "music": { + "message": "music", + "description": "(module name) Create and play melodies." + }, + "music.summary": { + "message": "Twórz i graj w melodie.", + "description": "Create and play melodies." + }, + "music.DADADADUM": { + "message": "dadadadum", + "description": "(field name) Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.DADADADUM.summary": { + "message": "Melodia: otwarcie 5. symfonii Beethovena w C minor", + "description": "Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.ENTERTAINER": { + "message": "entertainer", + "description": "(field name) Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.ENTERTAINER.summary": { + "message": "Melodia: fragment otwierający klasyczny Scott Joplin Ragtime \"The Entertainer\".", + "description": "Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.PRELUDE": { + "message": "prelude", + "description": "(field name) Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.PRELUDE.summary": { + "message": "Melodia: otwarcie pierwszego Preludium w C Major, 48 preludiów i Fug J.S.Bacha.", + "description": "Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.ODE": { + "message": "ode", + "description": "(field name) Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.ODE.summary": { + "message": "Melodia: motyw Ody do radości z 9. Symfonii Beethovena w D minor.", + "description": "Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.NYAN": { + "message": "nyan", + "description": "(field name) Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.NYAN.summary": { + "message": "Melodia: motyw Nyan Kot (http://www.nyan.cat/).", + "description": "Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.RINGTONE": { + "message": "ringtone", + "description": "(field name) Melody: something that sounds like a mobile phone ringtone." + }, + "music.RINGTONE.summary": { + "message": "Melodia: coś, co brzmi jak dzwonek telefonu komórkowego.", + "description": "Melody: something that sounds like a mobile phone ringtone." + }, + "music.FUNK": { + "message": "funk", + "description": "(field name) Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.FUNK.summary": { + "message": "Melody: funkowa linia basu dla tajnych agentów i geniuszy kryminalnych.", + "description": "Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.BLUES": { + "message": "blues", + "description": "(field name) Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BLUES.summary": { + "message": "Melodia: 12-taktowy bluesowy chodzący bas w stylu boogie-woogie.", + "description": "Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BIRTHDAY": { + "message": "birthday", + "description": "(field name) Melody: “Happy Birthday to You…”" + }, + "music.BIRTHDAY.summary": { + "message": "Melodia: \"Wszystkiego najlepszego…\"", + "description": "Melody: “Happy Birthday to You…”" + }, + "music.WEDDING": { + "message": "ślub", + "description": "(field name) Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.WEDDING.summary": { + "message": "Melodia: chór panny młodej z opery Wagnera „Lohengrin”.", + "description": "Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.FUNERAL": { + "message": "pogrzeb", + "description": "(field name) Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.FUNERAL.summary": { + "message": "Melodia: »Marsz pogrzebowy« znany jako Sonata Fortepianowa No. 2 w B♭ minor, Op. 35 Fryderyka Chopina. ", + "description": "Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.PUNCHLINE": { + "message": "punchline", + "description": "(field name) Melody: a fun fragment that signifies a joke has been made." + }, + "music.PUNCHLINE.summary": { + "message": "Melodia: zabawny fragment oznaczający, że zażartowano.", + "description": "Melody: a fun fragment that signifies a joke has been made." + }, + "music.PYTHON": { + "message": "python", + "description": "(field name) Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.PYTHON.summary": { + "message": "Melodia: Marsz John Philip Sousa „Liberty Bell” aka, motyw „Monty Python Flating Circus” (po którym nazwano język programowania Pythona).", + "description": "Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.BADDY": { + "message": "baddy", + "description": "(field name) Melody: silent movie era entrance of a baddy." + }, + "music.BADDY.summary": { + "message": "Melodia: wejście złego człowieka do ery kina niemego.", + "description": "Melody: silent movie era entrance of a baddy." + }, + "music.CHASE": { + "message": "chase", + "description": "(field name) Melody: silent movie era chase scene." + }, + "music.CHASE.summary": { + "message": "Melodia: scena pościgu z epoki kina niemego.", + "description": "Melody: silent movie era chase scene." + }, + "music.BA_DING": { + "message": "ba ding", + "description": "(field name) Melody: a short signal to indicate something has happened." + }, + "music.BA_DING.summary": { + "message": "Melodia: krótki sygnał informujący, że coś się wydarzyło.", + "description": "Melody: a short signal to indicate something has happened." + }, + "music.WAWAWAWAA": { + "message": "wawawawaa", + "description": "(field name) Melody: a very sad trombone." + }, + "music.WAWAWAWAA.summary": { + "message": "Melodia: bardzo smutny puzon.", + "description": "Melody: a very sad trombone." + }, + "music.JUMP_UP": { + "message": "jump up", + "description": "(field name) Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_UP.summary": { + "message": "Melodia: do użytku w grze, wskazujący ruch w górę.", + "description": "Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_DOWN": { + "message": "jump down", + "description": "(field name) Melody: for use in a game, indicating downward movement." + }, + "music.JUMP_DOWN.summary": { + "message": "Melodia: do użytku w grze, wskazujący ruch w górę.", + "description": "Melody: for use in a game, indicating downward movement." + }, + "music.POWER_UP": { + "message": "power up", + "description": "(field name) Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_UP.summary": { + "message": "Melodia: fanfara oznaczająca odblokowanie osiągnięcia.", + "description": "Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_DOWN": { + "message": "power down", + "description": "(field name) Melody: a sad fanfare to indicate an achievement lost." + }, + "music.POWER_DOWN.summary": { + "message": "Melodia: smutna fanfara oznaczająca utracenie osiągnięcia.", + "description": "Melody: a sad fanfare to indicate an achievement lost." + }, + "music.set_tempo": { + "message": "set tempo", + "description": "(function name) Sets the approximate tempo for playback." + }, + "music.set_tempo.summary": { + "message": "Ustawia przybliżone tempo dla odtwarzania.", + "description": "Sets the approximate tempo for playback." + }, + "music.set_tempo.param-name.bpm": { + "message": "bpm", + "description": "(parameter name) An integer determining how many beats per minute." + }, + "music.set_tempo.param-doc.bpm": { + "message": "Liczba całkowita określająca liczbę uderzeń na minutę.", + "description": "Parameter docs" + }, + "music.set_tempo.param-name.ticks": { + "message": "ticks", + "description": "(parameter name) The number of ticks constituting a beat." + }, + "music.set_tempo.param-doc.ticks": { + "message": "Liczba taktów składających się na uderzenie.", + "description": "Parameter docs" + }, + "music.get_tempo": { + "message": "get tempo", + "description": "(function name) Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.get_tempo.summary": { + "message": "Pobiera bieżące tempo jako parę liczb całkowitych: {{(ticks, bpm)}}.", + "description": "Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.play": { + "message": "play", + "description": "(function name) Plays music." + }, + "music.play.summary": { + "message": "Odtwarzaj muzykę.", + "description": "Plays music." + }, + "music.play.param-name.loop": { + "message": "loop", + "description": "(parameter name) If ``loop`` is set to ``True``, the tune repeats until ``stop`` is called or the blocking call is interrupted." + }, + "music.play.param-doc.loop": { + "message": "Jeśli {{loop}} jest ustawiony na {{True}}, melodia powtarza się, aż {{stop}} jest wywołana lub połączenie blokujące zostanie przerwane.", + "description": "Parameter docs" + }, + "music.play.param-name.music": { + "message": "music", + "description": "(parameter name) music specified in `a special notation `_" + }, + "music.play.param-doc.music": { + "message": "muzyka określona w `specjalnej notacji `_", + "description": "Parameter docs" + }, + "music.play.param-name.pin": { + "message": "pin", + "description": "(parameter name) the output pin for use with an external speaker (default ``pin0``), ``None`` for no sound." + }, + "music.play.param-doc.pin": { + "message": "pin wyjściowy do użycia z zewnętrznym głośnikiem (domyślnie {{pin0}}), {{None}} dla braku dźwięku.", + "description": "Parameter docs" + }, + "music.play.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.play.param-doc.wait": { + "message": "Jeśli {{wait}} jest ustawiony na {{True}}, ta funkcja jest blokowana.", + "description": "Parameter docs" + }, + "music.pitch": { + "message": "pitch", + "description": "(function name) Play a note." + }, + "music.pitch.summary": { + "message": "Zagraj nutę.", + "description": "Play a note." + }, + "music.pitch.param-name.duration": { + "message": "duration", + "description": "(parameter name) A millisecond duration. If negative then sound is continuous until the next call or a call to ``stop``." + }, + "music.pitch.param-doc.duration": { + "message": "Czas trwania w milisekundach. Jeśli ujemny, to dźwięk jest ciągły aż do następnego połączenia lub połączenia z {{stop}}.", + "description": "Parameter docs" + }, + "music.pitch.param-name.frequency": { + "message": "frequency", + "description": "(parameter name) An integer frequency" + }, + "music.pitch.param-doc.frequency": { + "message": "Częstotliwość całkowitoliczbowa", + "description": "Parameter docs" + }, + "music.pitch.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional output pin (default ``pin0``)." + }, + "music.pitch.param-doc.pin": { + "message": "Opcjonalny pin wyjściowy (domyślny {{pin0}}).", + "description": "Parameter docs" + }, + "music.pitch.param-name.wait": { + "message": "wait", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.pitch.param-doc.wait": { + "message": "Jeśli {{wait}} jest ustawiony na {{True}}, ta funkcja jest blokowana.", + "description": "Parameter docs" + }, + "music.stop": { + "message": "stop", + "description": "(function name) Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.summary": { + "message": "Zatrzymuje odtwarzanie muzyki na wbudowanym głośniku i jakimkolwiek pinie wyjściowym dźwięku.", + "description": "Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.param-name.pin": { + "message": "pin", + "description": "(parameter name) An optional argument can be provided to specify a pin, e.g. ``music.stop(pin1)``." + }, + "music.stop.param-doc.pin": { + "message": "Opcjonalny argument może być podany do określenia pinu, np. {{music.stop(pin1)}}.", + "description": "Parameter docs" + }, + "music.reset": { + "message": "reset", + "description": "(function name) Resets ticks, bpm, duration and octave to their default values." + }, + "music.reset.summary": { + "message": "Resetuje takty, bpm, czas trwania i oktawę do ich wartości domyślnych.", + "description": "Resets ticks, bpm, duration and octave to their default values." + }, + "neopixel": { + "message": "neopixel", + "description": "(module name) Individually addressable RGB and RGBW LED strips." + }, + "neopixel.summary": { + "message": "Indywidualnie adresowalne paski LED RGB i RGBW.", + "description": "Individually addressable RGB and RGBW LED strips." + }, + "neopixel.NeoPixel.__init__": { + "message": "init", + "description": "(function name) Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.summary": { + "message": "Zainicjuj nowy pasek neopikselowych diod LED sterowanych za pomocą pinu.", + "description": "Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.param-name.bpp": { + "message": "bpp", + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + }, + "neopixel.NeoPixel.__init__.param-doc.bpp": { + "message": "Bajty na piksel. W przypadku obsługi neopikseli RGBW należy przekazać 4 zamiast domyślnych 3 dla RGB i GRB.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.n": { + "message": "n", + "description": "(parameter name) The number of neopixels in the strip." + }, + "neopixel.NeoPixel.__init__.param-doc.n": { + "message": "Liczba neopikseli w pasku.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.pin": { + "message": "pin", + "description": "(parameter name) The pin controlling the neopixel strip." + }, + "neopixel.NeoPixel.__init__.param-doc.pin": { + "message": "Pin kontrolujący pasek neopikseli.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.clear": { + "message": "clear", + "description": "(function name) Clear all the pixels." + }, + "neopixel.NeoPixel.clear.summary": { + "message": "Wyczyść wszystkie piksele.", + "description": "Clear all the pixels." + }, + "neopixel.NeoPixel.show": { + "message": "show", + "description": "(function name) Show the pixels." + }, + "neopixel.NeoPixel.show.summary": { + "message": "Pokaż piksele.", + "description": "Show the pixels." + }, + "neopixel.NeoPixel.write": { + "message": "write", + "description": "(function name) Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.write.summary": { + "message": "Pokaż piksele (tylko micro:bit V2).", + "description": "Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill": { + "message": "fill", + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.summary": { + "message": "Pokoloruj wszystkie piksele określoną wartością RGB/RGBW (tylko micro:bit V2).", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.param-name.colour": { + "message": "colour", + "description": "(parameter name) A tuple of the same length as the number of bytes per pixel (bpp)." + }, + "neopixel.NeoPixel.fill.param-doc.colour": { + "message": "Krotka o takiej samej długości jak liczba bajtów na piksel (bpp).", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__": { + "message": "setitem", + "description": "(function name) Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.summary": { + "message": "Ustaw kolor pikseli.", + "description": "Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.param-name.key": { + "message": "key", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__setitem__.param-doc.key": { + "message": "Liczba pikseli.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__.param-name.value": { + "message": "value", + "description": "(parameter name) The colour." + }, + "neopixel.NeoPixel.__setitem__.param-doc.value": { + "message": "Kolor", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__getitem__": { + "message": "getitem", + "description": "(function name) Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.summary": { + "message": "Uzyskaj kolor piksela.", + "description": "Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.param-name.key": { + "message": "key", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__getitem__.param-doc.key": { + "message": "Liczba pikseli.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__len__": { + "message": "len", + "description": "(function name) Get length of this pixel strip." + }, + "neopixel.NeoPixel.__len__.summary": { + "message": "Uzyskaj długość tego paska pikseli.", + "description": "Get length of this pixel strip." + }, + "os": { + "message": "os", + "description": "(module name) Access the file system." + }, + "os.summary": { + "message": "Uzyskaj dostęp do systemu plików.", + "description": "Access the file system." + }, + "os.listdir": { + "message": "listdir", + "description": "(function name) List files." + }, + "os.listdir.summary": { + "message": "Lista plików.", + "description": "List files." + }, + "os.remove": { + "message": "remove", + "description": "(function name) Remove (delete) a file." + }, + "os.remove.summary": { + "message": "Usuń (usuń) plik.", + "description": "Remove (delete) a file." + }, + "os.remove.param-name.filename": { + "message": "filename", + "description": "(parameter name) The file to delete." + }, + "os.remove.param-doc.filename": { + "message": "Plik do usunięcia.", + "description": "Parameter docs" + }, + "os.size": { + "message": "size", + "description": "(function name) Returns the size of a file." + }, + "os.size.summary": { + "message": "Zwraca rozmiar pliku.", + "description": "Returns the size of a file." + }, + "os.size.param-name.filename": { + "message": "filename", + "description": "(parameter name) The file" + }, + "os.size.param-doc.filename": { + "message": "Plik", + "description": "Parameter docs" + }, + "os.uname_result": { + "message": "uname result", + "description": "(class name) Result of ``os.uname()``" + }, + "os.uname_result.summary": { + "message": "Wynik {{os.uname()}}", + "description": "Result of ``os.uname()``" + }, + "os.uname_result.sysname": { + "message": "sysname", + "description": "(field name) Operating system name." + }, + "os.uname_result.sysname.summary": { + "message": "Nazwa systemu operacyjnego.", + "description": "Operating system name." + }, + "os.uname_result.nodename": { + "message": "nodename", + "description": "(field name) Name of machine on network (implementation-defined)." + }, + "os.uname_result.nodename.summary": { + "message": "Nazwa maszyny w sieci (zdefiniowana w implementacji).", + "description": "Name of machine on network (implementation-defined)." + }, + "os.uname_result.release": { + "message": "release", + "description": "(field name) Operating system release." + }, + "os.uname_result.release.summary": { + "message": "Wydanie systemu operacyjnego.", + "description": "Operating system release." + }, + "os.uname_result.version": { + "message": "version", + "description": "(field name) Operating system version." + }, + "os.uname_result.version.summary": { + "message": "Wersja systemu operacyjnego", + "description": "Operating system version." + }, + "os.uname_result.machine": { + "message": "machine", + "description": "(field name) Hardware identifier." + }, + "os.uname_result.machine.summary": { + "message": "Identyfikator sprzętu.", + "description": "Hardware identifier." + }, + "os.uname": { + "message": "uname", + "description": "(function name) Returns information identifying the current operating system." + }, + "os.uname.summary": { + "message": "Zwraca informacje identyfikujące bieżący system operacyjny.", + "description": "Returns information identifying the current operating system." + }, + "radio": { + "message": "radio", + "description": "(module name) Communicate between micro:bits with the built-in radio." + }, + "radio.summary": { + "message": "Komunikuj się pomiędzy micro:bitami za pomocą wbudowanego radia.", + "description": "Communicate between micro:bits with the built-in radio." + }, + "radio.RATE_1MBIT": { + "message": "rate 1mbit", + "description": "(field name) Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_1MBIT.summary": { + "message": "Stała używana do wskazania przepustowości 1 MBit na sekundę.", + "description": "Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_2MBIT": { + "message": "rate 2mbit", + "description": "(field name) Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.RATE_2MBIT.summary": { + "message": "Stała używana do wskazania przepustowości 2 MBit na sekundę.", + "description": "Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.on": { + "message": "on", + "description": "(function name) Turns the radio on." + }, + "radio.on.summary": { + "message": "Włącza radio", + "description": "Turns the radio on." + }, + "radio.off": { + "message": "off", + "description": "(function name) Turns off the radio, saving power and memory." + }, + "radio.off.summary": { + "message": "Wyłącza radio, oszczędzając energię i pamięć.", + "description": "Turns off the radio, saving power and memory." + }, + "radio.config": { + "message": "config", + "description": "(function name) Configures the radio." + }, + "radio.config.summary": { + "message": "Konfiguruje radio.", + "description": "Configures the radio." + }, + "radio.config.param-name.address": { + "message": "address", + "description": "(parameter name) (default=0x75626974) an arbitrary name, expressed as a 32-bit address, that's used to filter incoming packets at the hardware level, keeping only those that match the address you set.\nThe default used by other micro:bit related platforms is the default setting used here." + }, + "radio.config.param-doc.address": { + "message": "(default=0x75626974) dowolna nazwa wyrażona jako 32-bitowy adres, używana do filtrowania przychodzących pakietów na poziomie sprzętowym, zatrzymując tylko te, które odpowiadają ustawionemu adresowi.\nDomyślnym ustawieniem używanym przez inne platformy powiązane z micro:bitem jest ustawienie domyślne używane tutaj.", + "description": "Parameter docs" + }, + "radio.config.param-name.channel": { + "message": "channel", + "description": "(parameter name) (default=7) an integer value from 0 to 83 (inclusive) that defines an arbitrary \"channel\" to which the radio is tuned.\nMessages will be sent via this channel and only messages received via this channel will be put onto the incoming message queue. Each step is 1MHz wide, based at 2400MHz." + }, + "radio.config.param-doc.channel": { + "message": "(default=7) wartość całkowita od 0 do 83 (włącznie), która definiuje dowolny „kanał”, do którego dostrojone jest radio.\nWiadomości będą wysyłane za pośrednictwem tego kanału i tylko wiadomości otrzymane za pośrednictwem tego kanału zostaną umieszczone w kolejce wiadomości przychodzących. Każdy stopień ma szerokość 1 MHz w oparciu o częstotliwość 2400 MHz.", + "description": "Parameter docs" + }, + "radio.config.param-name.data_rate": { + "message": "data rate", + "description": "(parameter name) (default=``radio.RATE_1MBIT``) indicates the speed at which data throughput takes place.\nCan be one of the following constants defined in the ``radio`` module: ``RATE_250KBIT``, ``RATE_1MBIT`` or ``RATE_2MBIT``." + }, + "radio.config.param-doc.data_rate": { + "message": "(default={{radio.RATE_1MBIT}}) wskazuje prędkość, z jaką odbywa się przesyłanie danych.\nMoże być jedną z następujących stałych zdefiniowanych w module {{radio}}:{{RATE_250KBIT}}, {{RATE_1MBIT}} lub {{RATE_2MBIT}}.", + "description": "Parameter docs" + }, + "radio.config.param-name.group": { + "message": "group", + "description": "(parameter name) (default=0) an 8-bit value (0-255) used with the ``address`` when filtering messages.\nConceptually, \"address\" is like a house/office address and \"group\" is like the person at that address to which you want to send your message." + }, + "radio.config.param-doc.group": { + "message": "(default=0) 8-bitowa wartość (0-255) używana wraz z {{address}} podczas filtrowania wiadomości.\nKoncepcyjnie, \"adres\" jest jak adres domu/biura, a \"grupa\" jest jak osoba pod tym adresem, na który chcesz wysłać swoją wiadomość.", + "description": "Parameter docs" + }, + "radio.config.param-name.length": { + "message": "length", + "description": "(parameter name) (default=32) defines the maximum length, in bytes, of a message sent via the radio.\nIt can be up to 251 bytes long (254 - 3 bytes for S0, LENGTH and S1 preamble)." + }, + "radio.config.param-doc.length": { + "message": "(default=32) definiuje maksymalną długość w bajtach wiadomości wysyłanej przez radio.\nMoże mieć długość do 251 bajtów (254 - 3 bajty dla S0, LENGTH i S1).", + "description": "Parameter docs" + }, + "radio.config.param-name.power": { + "message": "power", + "description": "(parameter name) (default=6) is an integer value from 0 to 7 (inclusive) to indicate the strength of signal used when broadcasting a message.\nThe higher the value the stronger the signal, but the more power is consumed by the device. The numbering translates to positions in the following list of dBm (decibel milliwatt) values: -30, -20, -16, -12, -8, -4, 0, 4." + }, + "radio.config.param-doc.power": { + "message": "(default=6) jest liczb całkowitą od 0 do 7 (włącznie) do oznaczenia siły sygnału używanego podczas nadawania wiadomości.\nIm wyższa wartość, tym silniejszy jest sygnał, ale tym większa moc jest zużywana przez urządzenie. Numeracja przekłada się na pozycje w następującym wykazie wartości dBm (decybel miliwat): -30, -20, -16, -12, -8, -4, 0, 4.", + "description": "Parameter docs" + }, + "radio.config.param-name.queue": { + "message": "queue", + "description": "(parameter name) (default=3) specifies the number of messages that can be stored on the incoming message queue.\nIf there are no spaces left on the queue for incoming messages, then the incoming message is dropped." + }, + "radio.config.param-doc.queue": { + "message": "(default=3) określa liczbę wiadomości, które mogą być przechowywane w kolejce przychodzących wiadomości.\nJeśli w kolejce na wiadomości przychodzące nie ma już wolnych miejsc, wiadomość przychodząca jest odrzucana.", + "description": "Parameter docs" + }, + "radio.reset": { + "message": "reset", + "description": "(function name) Reset the settings to their default values." + }, + "radio.reset.summary": { + "message": "Resetuj ustawienia do ich wartości domyślnych.", + "description": "Reset the settings to their default values." + }, + "radio.send_bytes": { + "message": "send bytes", + "description": "(function name) Sends a message containing bytes." + }, + "radio.send_bytes.summary": { + "message": "Wysyła wiadomość zawierającą bajty.", + "description": "Sends a message containing bytes." + }, + "radio.send_bytes.param-name.message": { + "message": "message", + "description": "(parameter name) The bytes to send." + }, + "radio.send_bytes.param-doc.message": { + "message": "Bajty do wysłania.", + "description": "Parameter docs" + }, + "radio.receive_bytes": { + "message": "receive bytes", + "description": "(function name) Receive the next incoming message on the message queue." + }, + "radio.receive_bytes.summary": { + "message": "Otrzymuj następną przychodzącą wiadomość w kolejce wiadomości.", + "description": "Receive the next incoming message on the message queue." + }, + "radio.receive_bytes_into": { + "message": "receive bytes into", + "description": "(function name) Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.summary": { + "message": "Skopiuj następną wiadomość przychodzącą do kolejki wiadomości w buforze.", + "description": "Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.param-name.buffer": { + "message": "buffer", + "description": "(parameter name) The target buffer. The message is truncated if larger than the buffer." + }, + "radio.receive_bytes_into.param-doc.buffer": { + "message": "Bufor docelowy. Wiadomość jest obcinana, jeśli jest większa niż bufor.", + "description": "Parameter docs" + }, + "radio.send": { + "message": "send", + "description": "(function name) Sends a message string." + }, + "radio.send.summary": { + "message": "Wysyła łańcuch wiadomości.", + "description": "Sends a message string." + }, + "radio.send.param-name.message": { + "message": "message", + "description": "(parameter name) The string to send." + }, + "radio.send.param-doc.message": { + "message": "Łańcuch do wysłania.", + "description": "Parameter docs" + }, + "radio.receive": { + "message": "odbierz", + "description": "(function name) Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive.summary": { + "message": "Działa dokładnie w taki sam sposób, jak {{receive_bytes}}, ale zwraca cokolwiek zostało wysłane.", + "description": "Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive_full": { + "message": "receive full", + "description": "(function name) Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "radio.receive_full.summary": { + "message": "Zwraca krotkę zawierającą trzy wartości reprezentujące następną wiadomość przychodzącą do kolejki wiadomości.", + "description": "Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "random": { + "message": "losowy", + "description": "(module name) Generate random numbers." + }, + "random.summary": { + "message": "Generuj liczb losowe.", + "description": "Generate random numbers." + }, + "random.getrandbits": { + "message": "getrandbits", + "description": "(function name) Generate an integer with ``n`` random bits." + }, + "random.getrandbits.summary": { + "message": "Wygeneruj liczbę całkowitą z {{n}} losowymi bitami.", + "description": "Generate an integer with ``n`` random bits." + }, + "random.getrandbits.param-name.n": { + "message": "n", + "description": "(parameter name) A value between 1-30 (inclusive)." + }, + "random.getrandbits.param-doc.n": { + "message": "Wartość między 1–30 (włącznie).", + "description": "Parameter docs" + }, + "random.seed": { + "message": "seed", + "description": "(function name) Initialize the random number generator." + }, + "random.seed.summary": { + "message": "Zainicjuj generator liczb losowych.", + "description": "Initialize the random number generator." + }, + "random.seed.param-name.n": { + "message": "n", + "description": "(parameter name) The integer seed" + }, + "random.seed.param-doc.n": { + "message": "Całkowity zarodek", + "description": "Parameter docs" + }, + "random.randint": { + "message": "randint", + "description": "(function name) Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.summary": { + "message": "Wybierz losową liczbę całkowitą pomiędzy {{a}} i {{b}} włącznie.", + "description": "Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.randint.param-doc.a": { + "message": "Wartość początkowa dla zakresu (włącznie)", + "description": "Parameter docs" + }, + "random.randint.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.randint.param-doc.b": { + "message": "Wartość końcowa dla zakresu (wyłącznie)", + "description": "Parameter docs" + }, + "random.randrange-1": { + "message": "randrange", + "description": "(function name) Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.summary": { + "message": "Wybierz losowo wybraną liczbę całkowitą między zero aż do (ale nie\nwłącznie) {{stop}}.", + "description": "Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.param-name.stop": { + "message": "stop", + "description": "(parameter name) End value for the range (exclusive)" + }, + "random.randrange-1.param-doc.stop": { + "message": "Wartość końcowa zakresu (wyłącznie)", + "description": "Parameter docs" + }, + "random.randrange-2": { + "message": "randrange", + "description": "(function name) Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.summary": { + "message": "Wybierz losowo wybrany element z {{range(start, stop, step)}}.", + "description": "Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.param-name.start": { + "message": "start", + "description": "(parameter name) The start of the range (inclusive)" + }, + "random.randrange-2.param-doc.start": { + "message": "Początek zakresu (włącznie)", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.step": { + "message": "step", + "description": "(parameter name) The step." + }, + "random.randrange-2.param-doc.step": { + "message": "Krok", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.stop": { + "message": "stop", + "description": "(parameter name) The end of the range (exclusive)" + }, + "random.randrange-2.param-doc.stop": { + "message": "Koniec zakresu (wyłącznie)", + "description": "Parameter docs" + }, + "random.choice": { + "message": "choice", + "description": "(function name) Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.summary": { + "message": "Wybierz losowy element z niepustego cigu {{seq}}.", + "description": "Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.param-name.seq": { + "message": "seq", + "description": "(parameter name) A sequence." + }, + "random.choice.param-doc.seq": { + "message": "Cig.", + "description": "Parameter docs" + }, + "random.random": { + "message": "random", + "description": "(function name) Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.random.summary": { + "message": "Wygeneruj losową liczbę zmiennopozycyjną w zakresie [0.0, 1.0).", + "description": "Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.uniform": { + "message": "uniform", + "description": "(function name) Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.summary": { + "message": "Zwróć losową liczbę zmiennopozycyjnłą między {{a}} i {{b}}.", + "description": "Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.uniform.param-doc.a": { + "message": "Wartość początkowa dla zakresu (włącznie)", + "description": "Parameter docs" + }, + "random.uniform.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.uniform.param-doc.b": { + "message": "Wartość końcowa dla zakresu (wyłącznie)", + "description": "Parameter docs" + }, + "speech": { + "message": "speech", + "description": "(module name) Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.summary": { + "message": "Spraw, by micro:bit mówił, śpiewał i tworzył inne dźwięki podobne do mowy.", + "description": "Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.translate": { + "message": "translate", + "description": "(function name) Translate English words to phonemes." + }, + "speech.translate.summary": { + "message": "Tłumacz angielskie słowa na fonemy.", + "description": "Translate English words to phonemes." + }, + "speech.translate.param-name.words": { + "message": "words", + "description": "(parameter name) A string of English words." + }, + "speech.translate.param-doc.words": { + "message": "Łańcuch słów angielskich.", + "description": "Parameter docs" + }, + "speech.pronounce": { + "message": "pronounce", + "description": "(function name) Pronounce phonemes." + }, + "speech.pronounce.summary": { + "message": "Wymów fonemy.", + "description": "Pronounce phonemes." + }, + "speech.pronounce.param-name.mouth": { + "message": "mouth", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.pronounce.param-doc.mouth": { + "message": "Liczba reprezentująca usta głosu", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.phonemes": { + "message": "phonemes", + "description": "(parameter name) The string of phonemes to pronounce" + }, + "speech.pronounce.param-doc.phonemes": { + "message": "Łańcuch fonemów do wymówienia", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.pronounce.param-doc.pin": { + "message": "Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości {{pin0}}.\nJeśli nie chcemy, aby jakikolwiek dźwięk wydobywał się z pinów, możemy użyć {{pin=None}}. Tylko micro:bit V2.", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pitch": { + "message": "pitch", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.pronounce.param-doc.pitch": { + "message": "Liczba reprezentująca wysokość głosu", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.speed": { + "message": "speed", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.pronounce.param-doc.speed": { + "message": "Liczba reprezentująca szybkość głosu", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.throat": { + "message": "throat", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.pronounce.param-doc.throat": { + "message": "Liczba reprezentująca gardło głosu", + "description": "Parameter docs" + }, + "speech.say": { + "message": "say", + "description": "(function name) Say English words." + }, + "speech.say.summary": { + "message": "Powiedz angielskie słowa.", + "description": "Say English words." + }, + "speech.say.param-name.mouth": { + "message": "mouth", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.say.param-doc.mouth": { + "message": "Liczba reprezentująca usta głosu", + "description": "Parameter docs" + }, + "speech.say.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.say.param-doc.pin": { + "message": "Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości {{pin0}}.\nJeśli nie chcemy, aby jakikolwiek dźwięk wydobywał się z pinów, możemy użyć {{pin=None}}. Tylko micro:bit V2.", + "description": "Parameter docs" + }, + "speech.say.param-name.pitch": { + "message": "pitch", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.say.param-doc.pitch": { + "message": "Liczba reprezentująca wysokość głosu", + "description": "Parameter docs" + }, + "speech.say.param-name.speed": { + "message": "speed", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.say.param-doc.speed": { + "message": "Liczba reprezentująca szybkość głosu", + "description": "Parameter docs" + }, + "speech.say.param-name.throat": { + "message": "throat", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.say.param-doc.throat": { + "message": "Liczba reprezentująca gardło głosu", + "description": "Parameter docs" + }, + "speech.say.param-name.words": { + "message": "words", + "description": "(parameter name) The string of words to say." + }, + "speech.say.param-doc.words": { + "message": "Łańcuch słów do powiedzenia.", + "description": "Parameter docs" + }, + "speech.sing": { + "message": "sing", + "description": "(function name) Sing phonemes." + }, + "speech.sing.summary": { + "message": "Zaśpiewaj fonemy.", + "description": "Sing phonemes." + }, + "speech.sing.param-name.mouth": { + "message": "mouth", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.sing.param-doc.mouth": { + "message": "Liczba reprezentująca usta głosu", + "description": "Parameter docs" + }, + "speech.sing.param-name.phonemes": { + "message": "phonemes", + "description": "(parameter name) The string of words to sing." + }, + "speech.sing.param-doc.phonemes": { + "message": "Łańcuch słów do zaśpiewania.", + "description": "Parameter docs" + }, + "speech.sing.param-name.pin": { + "message": "pin", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.sing.param-doc.pin": { + "message": "Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości {{pin0}}.\nJeśli nie chcemy, aby jakikolwiek dźwięk wydobywał się z pinów, możemy użyć {{pin=None}}. Tylko micro:bit V2.", + "description": "Parameter docs" + }, + "speech.sing.param-name.pitch": { + "message": "pitch", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.sing.param-doc.pitch": { + "message": "Liczba reprezentująca wysokość głosu", + "description": "Parameter docs" + }, + "speech.sing.param-name.speed": { + "message": "speed", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.sing.param-doc.speed": { + "message": "Liczba reprezentująca szybkość głosu", + "description": "Parameter docs" + }, + "speech.sing.param-name.throat": { + "message": "throat", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.sing.param-doc.throat": { + "message": "Liczba reprezentująca gardło głosu", + "description": "Parameter docs" + }, + "struct": { + "message": "struct", + "description": "(module name) Pack and unpack primitive data types." + }, + "struct.summary": { + "message": "Pakuj i rozpakowuj prymitywne typy danych.", + "description": "Pack and unpack primitive data types." + }, + "struct.calcsize": { + "message": "calcsize", + "description": "(function name) Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.summary": { + "message": "Uzyskaj liczbę bajtów potrzebnych do przechowywania podanego {{fmt}}.", + "description": "Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) A format string." + }, + "struct.calcsize.param-doc.fmt": { + "message": "Łańcuch formatu.", + "description": "Parameter docs" + }, + "struct.pack": { + "message": "pack", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack.summary": { + "message": "Upakuj wartości zgodnie z łńcuchem formatu.", + "description": "Pack values according to a format string." + }, + "struct.pack.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack.param-doc.*vn": { + "message": "Pozostałe wartości.", + "description": "Parameter docs" + }, + "struct.pack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack.param-doc.fmt": { + "message": "Łańcuch formatu.", + "description": "Parameter docs" + }, + "struct.pack.param-name.v1": { + "message": "v1", + "description": "(parameter name) The first value." + }, + "struct.pack.param-doc.v1": { + "message": "Pierwsza wartość.", + "description": "Parameter docs" + }, + "struct.pack_into": { + "message": "pack into", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack_into.summary": { + "message": "Upakuj wartości zgodnie z łńcuchem formatu.", + "description": "Pack values according to a format string." + }, + "struct.pack_into.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack_into.param-doc.*vn": { + "message": "Pozostałe wartości.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.buffer": { + "message": "buffer", + "description": "(parameter name) The target buffer to write into." + }, + "struct.pack_into.param-doc.buffer": { + "message": "Bufor docelowy do zapisu.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack_into.param-doc.fmt": { + "message": "Łańcuch formatu.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.offset": { + "message": "offset", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.pack_into.param-doc.offset": { + "message": "Przesunięcie do bufora. Wartość ujemna może być liczona od końca bufora.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.v1": { + "message": "w1", + "description": "(parameter name) The first value." + }, + "struct.pack_into.param-doc.v1": { + "message": "Pierwsza wartość.", + "description": "Parameter docs" + }, + "struct.unpack": { + "message": "unpack", + "description": "(function name) Unpack data according to a format string." + }, + "struct.unpack.summary": { + "message": "Rozpakuj dane zgodnie z łańcuchem formatu.", + "description": "Unpack data according to a format string." + }, + "struct.unpack.param-name.data": { + "message": "data", + "description": "(parameter name) The data." + }, + "struct.unpack.param-doc.data": { + "message": "Dane", + "description": "Parameter docs" + }, + "struct.unpack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack.param-doc.fmt": { + "message": "Łańcuch formatu.", + "description": "Parameter docs" + }, + "struct.unpack_from": { + "message": "unpack from", + "description": "(function name) Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.summary": { + "message": "Rozpakuj dane z buforu zgodnie z łańcuchem formatu.", + "description": "Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.param-name.buffer": { + "message": "buffer", + "description": "(parameter name) The source buffer to read from." + }, + "struct.unpack_from.param-doc.buffer": { + "message": "Bufor źródłowy do odczytu.", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack_from.param-doc.fmt": { + "message": "Łańcuch formatu.", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.offset": { + "message": "offset", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.unpack_from.param-doc.offset": { + "message": "Przesunięcie do bufora. Wartość ujemna może być liczona od końca bufora.", + "description": "Parameter docs" + }, + "sys": { + "message": "sys", + "description": "(module name) System specific functions" + }, + "sys.summary": { + "message": "Funkcje specyficzne dla systemu", + "description": "System specific functions" + }, + "sys.exit": { + "message": "exit", + "description": "(function name) Terminate current program with a given exit code." + }, + "sys.exit.summary": { + "message": "Zakończ bieżący program z podanym kodem wyjścia.", + "description": "Terminate current program with a given exit code." + }, + "sys.exit.param-name.retval": { + "message": "retval", + "description": "(parameter name) The exit code or message." + }, + "sys.exit.param-doc.retval": { + "message": "Kod lub wiadomość wyjściowa.", + "description": "Parameter docs" + }, + "sys.print_exception": { + "message": "print exception", + "description": "(function name) Print an exception with a traceback." + }, + "sys.print_exception.summary": { + "message": "Wydrukuj wyjątek ze śledzeniem.", + "description": "Print an exception with a traceback." + }, + "sys.print_exception.param-name.exc": { + "message": "exc", + "description": "(parameter name) The exception to print" + }, + "sys.print_exception.param-doc.exc": { + "message": "Wyjątek do wydrukowania", + "description": "Parameter docs" + }, + "sys.argv": { + "message": "argv", + "description": "(field name) A mutable list of arguments the current program was started with." + }, + "sys.argv.summary": { + "message": "Zmienna lista argumentów, od których uruchomiono bieżący program.", + "description": "A mutable list of arguments the current program was started with." + }, + "sys.byteorder": { + "message": "byteorder", + "description": "(field name) The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.byteorder.summary": { + "message": "Kolejność bajtów systemu ({{\"little\"}} lub {{\"big\"}}).", + "description": "The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.implementation": { + "message": "implementation", + "description": "(field name) Object with information about the current Python implementation." + }, + "sys.implementation.summary": { + "message": "Obiekt z informacjami o bieżącej implementacji Pythona.", + "description": "Object with information about the current Python implementation." + }, + "sys.maxsize": { + "message": "maxsize", + "description": "(field name) \nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.maxsize.summary": { + "message": "\nMaksymalna wartość, jaką może przechowywać natywny typ całkowity na bieżącej platformie,\nlub maksymalna wartość reprezentowana przez typ całkowity MicroPythona, jeśli jest mniejsza\nniż maksymalna wartość platformy (tak jest w przypadku portów MicroPython bez\nwsparcia long int).", + "description": "\nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.modules": { + "message": "modules", + "description": "(field name) Dictionary of loaded modules. " + }, + "sys.modules.summary": { + "message": "Słownik załadowanych modułów. ", + "description": "Dictionary of loaded modules. " + }, + "sys.path": { + "message": "path", + "description": "(field name) A mutable list of directories to search for imported modules." + }, + "sys.path.summary": { + "message": "Zmienna lista katalogów do wyszukiwania importowanych modułów.", + "description": "A mutable list of directories to search for imported modules." + }, + "sys.platform": { + "message": "platform", + "description": "(field name) The platform that MicroPython is running on. " + }, + "sys.platform.summary": { + "message": "Platforma na której działa MicroPython. ", + "description": "The platform that MicroPython is running on. " + }, + "sys.version": { + "message": "version", + "description": "(field name) Python language version that this implementation conforms to, as a string." + }, + "sys.version.summary": { + "message": "Wersja Pythona, z którą ta implementacja jest zgodna, jako łańcuch.", + "description": "Python language version that this implementation conforms to, as a string." + }, + "sys.version_info": { + "message": "version info", + "description": "(field name) Python language version that this implementation conforms to, as a tuple of ints." + }, + "sys.version_info.summary": { + "message": "Wersja Pythona, z którą ta implementacja jest zgodna, jako krotka typu int.", + "description": "Python language version that this implementation conforms to, as a tuple of ints." + }, + "time": { + "message": "time", + "description": "(module name) Measure time and add delays to programs." + }, + "time.summary": { + "message": "Zmierz czas i dodaj opóźnienia do programów.", + "description": "Measure time and add delays to programs." + }, + "time.sleep": { + "message": "sleep", + "description": "(function name) Delay a number of seconds." + }, + "time.sleep.summary": { + "message": "Opóźnij kilka sekund.", + "description": "Delay a number of seconds." + }, + "time.sleep.param-name.seconds": { + "message": "seconds", + "description": "(parameter name) The number of seconds to sleep for.\nUse a floating-point number to sleep for a fractional number of seconds." + }, + "time.sleep.param-doc.seconds": { + "message": "Liczba sekund snu.\nUżyj liczby zmiennopozycyjnej, aby spać przez ułamkową część sekund.", + "description": "Parameter docs" + }, + "time.sleep_ms": { + "message": "sleep ms", + "description": "(function name) Delay for given number of milliseconds." + }, + "time.sleep_ms.summary": { + "message": "Opóźnij o podaną liczbę milisekund.", + "description": "Delay for given number of milliseconds." + }, + "time.sleep_ms.param-name.ms": { + "message": "ms", + "description": "(parameter name) The number of milliseconds delay (>= 0)." + }, + "time.sleep_ms.param-doc.ms": { + "message": "Liczba milisekund opóźnienia (>= 0).", + "description": "Parameter docs" + }, + "time.sleep_us": { + "message": "sleep us", + "description": "(function name) Delay for given number of microseconds." + }, + "time.sleep_us.summary": { + "message": "Opóźnij o podaną liczbę milisekund.", + "description": "Delay for given number of microseconds." + }, + "time.sleep_us.param-name.us": { + "message": "us", + "description": "(parameter name) The number of microseconds delay (>= 0)." + }, + "time.sleep_us.param-doc.us": { + "message": "Liczba milisekund opóźnienia (>= 0).", + "description": "Parameter docs" + }, + "time.ticks_ms": { + "message": "ticks ms", + "description": "(function name) Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_ms.summary": { + "message": "Uzyskaj rosnący licznik milisekundowy z dowolnym punktem odniesienia,\nktóry zawija się po pewnej wartości.", + "description": "Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us": { + "message": "ticks us", + "description": "(function name) Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us.summary": { + "message": "Uzyskaj rosnący licznik milisekundowy z dowolnym punktem odniesienia,\nktóry zawija się po pewnej wartości.", + "description": "Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_add": { + "message": "ticks add", + "description": "(function name) Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.summary": { + "message": "Przesunięcie zaznacza wartość o podaną liczbę, która może być dodatnia lub\nnegatywny.\n.", + "description": "Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.param-name.delta": { + "message": "delta", + "description": "(parameter name) An integer offset" + }, + "time.ticks_add.param-doc.delta": { + "message": "Przesunięcie o liczbę całkowitą", + "description": "Parameter docs" + }, + "time.ticks_add.param-name.ticks": { + "message": "ticks", + "description": "(parameter name) A ticks value" + }, + "time.ticks_add.param-doc.ticks": { + "message": "Wartość ticków", + "description": "Parameter docs" + }, + "time.ticks_diff": { + "message": "ticks diff", + "description": "(function name) Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.summary": { + "message": "Zmierz różnicę ticków między wartościami zwróconymi z\n{{time.ticks_ms()}} lub {{ticks_us()}}, jako wartość ze znakiem, \nktóra może się zawijać.", + "description": "Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.param-name.ticks1": { + "message": "ticks1", + "description": "(parameter name) The value to subtract from" + }, + "time.ticks_diff.param-doc.ticks1": { + "message": "Wartość do odejmowania od", + "description": "Parameter docs" + }, + "time.ticks_diff.param-name.ticks2": { + "message": "ticks2", + "description": "(parameter name) The value to subtract" + }, + "time.ticks_diff.param-doc.ticks2": { + "message": "Wartość do odejmowania", + "description": "Parameter docs" + } +} \ No newline at end of file diff --git a/crowdin/translated/api.zh-cn.json b/crowdin/translated/api.zh-cn.json index fc5b474..a61c505 100644 --- a/crowdin/translated/api.zh-cn.json +++ b/crowdin/translated/api.zh-cn.json @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "微笑", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "微笑的脸部图像。", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "难过", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "读取", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "读取字节。", - "description": "Read bytes." + "message": "读取字节数。", + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "字节数", @@ -3471,6 +3471,14 @@ "message": "要读取的最大字节数。", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "写出", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "写入", "description": "(function name) Write bytes to the bus." diff --git a/crowdin/translated/api.zh-tw.json b/crowdin/translated/api.zh-tw.json index e4da482..4c2577a 100644 --- a/crowdin/translated/api.zh-tw.json +++ b/crowdin/translated/api.zh-tw.json @@ -1441,11 +1441,11 @@ }, "microbit.Image.SMILE": { "message": "微笑", - "description": "(field name) Smiling face image." + "description": "(field name) Smiling mouth image." }, "microbit.Image.SMILE.summary": { "message": "笑臉圖像。", - "description": "Smiling face image." + "description": "Smiling mouth image." }, "microbit.Image.SAD": { "message": "sad", @@ -3457,11 +3457,11 @@ }, "microbit.spi.read": { "message": "read", - "description": "(function name) Read bytes." + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { "message": "讀取位元組。", - "description": "Read bytes." + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { "message": "nbytes", @@ -3471,6 +3471,14 @@ "message": "要讀取的最大位元組數。", "description": "Parameter docs" }, + "microbit.spi.read.param-name.out": { + "message": "out", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "The byte value to write (default 0).", + "description": "Parameter docs" + }, "microbit.spi.write": { "message": "write", "description": "(function name) Write bytes to the bus." diff --git a/lang/ca/typeshed/stdlib/microbit/spi.pyi b/lang/ca/typeshed/stdlib/microbit/spi.pyi index 37ad952..d905f08 100644 --- a/lang/ca/typeshed/stdlib/microbit/spi.pyi +++ b/lang/ca/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: miso pin (per defecte 14)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """Llegeix bytes (llegeix) Example: ``spi.read(64)`` :param nbytes: Nombre màxim de bytes per llegir. +:param out: The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/de/typeshed/stdlib/log.pyi b/lang/de/typeshed/stdlib/log.pyi index 281e68d..4ba6cce 100644 --- a/lang/de/typeshed/stdlib/log.pyi +++ b/lang/de/typeshed/stdlib/log.pyi @@ -9,7 +9,7 @@ MINUTES = 600 HOURS = 36000 """Stunden Zeitstempelformat. (stunden)""" DAYS = 864000 -"""Tage Zeitstempelformat. (tage)""" +"""Tage Zeitstempelformat.""" def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None: """Den Logdatei-Header setzen (Beschriftungen festlegen) @@ -28,7 +28,7 @@ By default the first column contains a timestamp for each row. The time unit can be selected via the timestamp argument. :param *labels: Eine beliebige Anzahl von Positionsargumenten, die jeweils einem Eintrag in der Kopfzeile des Logs entsprechen. -:param timestamp: (Zeitstempel) Wähle die Zeitstempel-Einheit, die automatisch als erste Spalte in jeder Zeile hinzugefügt wird. Der Zeitstempel kann einen der folgenden Werte annehmen: ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` oder ``None``, um den Zeitstempel zu deaktivieren. Der Standardwert ist ``log.SECONDS``.""" +:param timestamp: Wähle die Zeitstempel-Einheit, die automatisch als erste Spalte in jeder Zeile hinzugefügt wird. Der Zeitstempel kann einen der folgenden Werte annehmen: ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` oder ``None``, um den Zeitstempel zu deaktivieren. Der Standardwert ist ``log.SECONDS``.""" ... @overload diff --git a/lang/de/typeshed/stdlib/microbit/__init__.pyi b/lang/de/typeshed/stdlib/microbit/__init__.pyi index eeeff8d..023ebc6 100644 --- a/lang/de/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/de/typeshed/stdlib/microbit/__init__.pyi @@ -37,14 +37,14 @@ When an exception is thrown inside the callback function it deschedules the function. To avoid this you can catch exceptions with ``try/except``. :param callback: Funktion, die in dem angegebenen Intervall aufgerufen wird. Bei Verwendung als Dekorator weglassen. -:param days: (tage) Legt den Tag für die Planung fest. +:param days: Legt den Tag für die Planung fest. :param h: Legt die Uhrzeit für die Planung fest. :param min: Legt die Minute für die Planung fest. :param s: Legt die Sekunde für die Planung fest. :param ms: Legt die Millisekunde für die Planung fest.""" def panic(n: int) -> None: - """In einen Panik-Modus gehen. + """In einen Panik-Modus wechseln. Example: ``panic(127)`` @@ -89,7 +89,7 @@ If they are both integers (i.e ``10``), it will return an integer:: returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) -:param value: (wert) Eine umzurechnende Zahl. +:param value: Eine umzurechnende Zahl. :param from_: Ein Tupel, das den Bereich definiert, aus dem konvertiert werden soll. :param to: Ein Tupel, das den Bereich definiert, in den konvertiert werden soll. :return: The ``value`` converted to the ``to`` range.""" diff --git a/lang/de/typeshed/stdlib/microbit/accelerometer.pyi b/lang/de/typeshed/stdlib/microbit/accelerometer.pyi index a63507d..3274570 100644 --- a/lang/de/typeshed/stdlib/microbit/accelerometer.pyi +++ b/lang/de/typeshed/stdlib/microbit/accelerometer.pyi @@ -2,7 +2,7 @@ from typing import Tuple def get_x() -> int: - """Erhalte die Beschleunigungsmessung in der ``x`` -Achse in Milli-g. (erhalte x) + """Erhalte die Beschleunigungsmessung in der ``x`` -Achse in Milli-g. Example: ``accelerometer.get_x()`` @@ -10,7 +10,7 @@ Example: ``accelerometer.get_x()`` ... def get_y() -> int: - """Erhalte die Beschleunigungsmessung in der ``y`` -Achse in Milli-g. (erhalte y) + """Erhalte die Beschleunigungsmessung in der ``y`` -Achse in Milli-g. Example: ``accelerometer.get_y()`` @@ -18,7 +18,7 @@ Example: ``accelerometer.get_y()`` ... def get_z() -> int: - """Erhalte die Beschleunigungsmessung in der ``z`` -Achse in Milli-g. (erhalte z) + """Erhalte die Beschleunigungsmessung in der ``z`` -Achse in Milli-g. Example: ``accelerometer.get_z()`` @@ -26,7 +26,7 @@ Example: ``accelerometer.get_z()`` ... def get_values() -> Tuple[int, int, int]: - """Erhalten Sie die Beschleunigungsmessungen in allen Achsen auf einmal als Tupel. (Werte erhalten) + """Erhalten Sie die Beschleunigungsmessungen in allen Achsen auf einmal als Tupel. Example: ``x, y, z = accelerometer.get_values()`` @@ -34,7 +34,7 @@ Example: ``x, y, z = accelerometer.get_values()`` ... def get_strength() -> int: - """Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der X-, Y- und Z-Achsen. (erhalte Stärke) + """Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der X-, Y- und Z-Achsen. Example: ``accelerometer.get_strength()`` @@ -82,7 +82,7 @@ represented as strings. :return: ``True`` if the gesture was active since the last call, ``False`` otherwise.""" def get_gestures() -> Tuple[str, ...]: - """Gibt ein Tupel der vergangenen Gesten zurück. (erhalte Gesten) + """Gibt ein Tupel der vergangenen Gesten zurück. Example: ``accelerometer.get_gestures()`` diff --git a/lang/de/typeshed/stdlib/microbit/audio.pyi b/lang/de/typeshed/stdlib/microbit/audio.pyi index 8faf67a..fad5da1 100644 --- a/lang/de/typeshed/stdlib/microbit/audio.pyi +++ b/lang/de/typeshed/stdlib/microbit/audio.pyi @@ -10,7 +10,7 @@ Example: ``audio.play(Sound.GIGGLE)`` :param source: (Quelle) Ein eingebauter ``Sound`` wie ``Sound.GIGGLE``, ein ``SoundEffect`` oder Beispieldaten als Teil eines ``AudioFrame`` Objekts. :param wait: Wenn ``wait`` ``True`` ist, wird diese Funktion blockiert, bis der Klang abgeschlossen ist. :param pin: Ein optionales Argument für den Ausgabepin kann angegeben werden, um die Standardeinstellung von ``pin0``zu überschreiben. Wenn kein Ton wiedergegeben werden soll, kann ``pin=None`` verwendet werden. -:param return_pin: (erhalte Pin) Bestimmt einen Pin, mit dem der externen Lautsprecher anstatt mit Ground verbunden wird. Dies wird bei der **V2** Revision ignoriert.""" +:param return_pin: Bestimmt einen Pin, mit dem der externen Lautsprecher anstatt mit Ground verbunden wird. Dies wird bei der **V2** Revision ignoriert.""" def is_playing() -> bool: """Überprüfen Sie, ob ein Ton abgespielt wird. (spielt gerade) diff --git a/lang/de/typeshed/stdlib/microbit/compass.pyi b/lang/de/typeshed/stdlib/microbit/compass.pyi index 77321dc..6d515d9 100644 --- a/lang/de/typeshed/stdlib/microbit/compass.pyi +++ b/lang/de/typeshed/stdlib/microbit/compass.pyi @@ -24,7 +24,7 @@ Example: ``compass.clear_calibration()``""" ... def get_x() -> int: - """Ermittle die Magnetfeldstärke der ``x``-Achse. (erhalte x) + """Liefert die Magnetfeldstärke der ``x``-Achse. Example: ``compass.get_x()`` @@ -34,7 +34,7 @@ Call ``calibrate`` first or the results will be inaccurate. ... def get_y() -> int: - """Ermittle die Magnetfeldstärke der ``y``-Achse. (erhalte y) + """Liefert die Magnetfeldstärke der ``y``-Achse. Example: ``compass.get_y()`` @@ -44,7 +44,7 @@ Call ``calibrate`` first or the results will be inaccurate. ... def get_z() -> int: - """Ermittle die Magnetfeldstärke der ``z``-Achse. (erhalte z) + """Liefert die Magnetfeldstärke der ``z``-Achse. Example: ``compass.get_z()`` diff --git a/lang/de/typeshed/stdlib/microbit/display.pyi b/lang/de/typeshed/stdlib/microbit/display.pyi index 24a1d82..bd6beb5 100644 --- a/lang/de/typeshed/stdlib/microbit/display.pyi +++ b/lang/de/typeshed/stdlib/microbit/display.pyi @@ -3,7 +3,7 @@ from ..microbit import Image from typing import Union, overload, Iterable def get_pixel(x: int, y: int) -> int: - """Ermittle die Helligkeit der LED auf Spalte ``x`` und Zeile ``y``. (Pixelwerte holen) + """Ermittelt die Helligkeit der LED in Spalte ``x`` und Zeile ``y``. Example: ``display.get_pixel(0, 0)`` @@ -13,17 +13,17 @@ Example: ``display.get_pixel(0, 0)`` ... def set_pixel(x: int, y: int, value: int) -> None: - """Ändere die Helligkeit der LED auf Spalte ``x`` und Zeile ``y``. (Pixelwerte setzen) + """Stellt die Helligkeit der LED in Spalte ``x`` und Zeile ``y`` ein. Example: ``display.set_pixel(0, 0, 9)`` :param x: Die Anzeige-Spalte (0..4) :param y: Die Anzeigezeile (0..4) -:param value: (wert) Die Helligkeit zwischen 0 (aus) und 9 (am hellsten)""" +:param value: Die Helligkeit zwischen 0 (aus) und 9 (am hellsten)""" ... def clear() -> None: - """Setzt die Helligkeit aller LEDs auf 0 (aus). (löschen) + """Setzt die Helligkeit aller LEDs auf 0 (aus). Example: ``display.clear()``""" ... @@ -36,44 +36,44 @@ Example: ``display.show(Image.HEART)`` When ``image`` is an image or a list of images then each image is displayed in turn. If ``image`` is a string or number, each letter or digit is displayed in turn. -:param image: Eine Zeichenkette, Nummer, Bild oder Liste der anzuzeigenden Bilder. -:param delay: (Verzögerung) Jeder Buchstabe, Ziffer oder Bild wird mit ``delay`` Millisekunden zwischen ihnen angezeigt. -:param wait: Wenn ``wait`` ``True``ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden. -:param loop: Wenn ``loop`` ``True``ist, wird sich die Animation für immer wiederholen. -:param clear: (löschen) Wenn ``clear`` ``True``ist, wird die Anzeige ausgeschaltet, nachdem die Sequenz beendet ist. +:param image: Eine Zeichenkette, eine Zahl, ein Bild oder eine Liste von Bildern, die angezeigt werden sollen. +:param delay: Jeder Buchstabe, jede Ziffer oder jedes Bild wird mit einer Verzögerung von ``delay`` Millisekunden angezeigt. +:param wait: Wenn ``wait`` ``True`` ist, wird diese Funktion das Programm so lange anhalten, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund ausgeführt. +:param loop: Wenn ``loop`` ``True`` ist, wird die Animation endlos wiederholt. +:param clear: Wenn ``clear`` ``True`` ist, wird die Anzeige nach Beendigung der Sequenz gelöscht. The ``wait``, ``loop`` and ``clear`` arguments must be specified using their keyword.""" ... def scroll(text: Union[str, float, int], delay: int=150, wait: bool=True, loop: bool=False, monospace: bool=False) -> None: - """Scrollt eine Zahl oder einen Text auf dem LED-Display. (scrollen) + """Scrollt eine Zahl oder einen Text auf dem LED-Display. Example: ``display.scroll('micro:bit')`` -:param text: Der zu wiederzugebende String. Wenn ``text`` eine Ganzzahl oder ein Float ist, wird er zuerst mit ``str()`` in einen String konvertiert. -:param delay: (Verzögerung) Der ``delay`` -Parameter bestimmt, wie schnell der Text scrollt. -:param wait: Wenn ``wait`` ``True``ist, wird diese Funktion blockiert, bis die Animation beendet ist, andernfalls wird die Animation im Hintergrund stattfinden. -:param loop: Wenn ``loop`` ``True``ist, wird sich die Animation für immer wiederholen. -:param monospace: (Monospace) Wenn ``monospace`` ``True``ist, werden alle Zeichen 5 Pixel breit sein. Zwischen den Zeichen gibt es beim scrollen genau 1 leere Pixelspalte. +:param text: Die zu scrollende Zeichenkette. Wenn ``text`` ein Integer oder Float ist, wird der Text vorher mit ``str()`` in einen String umgewandelt. +:param delay: Der Parameter ``delay`` bestimmt, wie schnell der Text gescrollt wird. +:param wait: Wenn ``wait`` ``True`` ist, wird diese Funktion das Programm anhalten, bis die Animation beendet ist, andernfalls läuft die Animation im Hintergrund ab. +:param loop: Wenn ``loop`` ``True`` ist, wird die Animation endlos wiederholt. +:param monospace: Wenn ``monospace`` ``True``ist, werden alle Zeichen 5 Pixel breit sein. Zwischen den Zeichen gibt es beim scrollen genau 1 leere Pixelspalte. The ``wait``, ``loop`` and ``monospace`` arguments must be specified using their keyword.""" ... def on() -> None: - """Schalten Sie das LED-Display ein. (an) + """Das LED-Display einschalten. Example: ``display.on()``""" ... def off() -> None: - """Schalten Sie die LED-Anzeige aus (das Deaktivieren des Displays erlaubt es Ihnen, die GPIO-Pins für andere Zwecke zu verwenden). + """Die LED-Anzeige ausschalten (Deaktivieren des Displays ermöglicht es dir, die GPIO-Pins für andere Zwecke zu verwenden). Example: ``display.off()``""" ... def is_on() -> bool: - """Überprüfen Sie, ob die LED-Anzeige aktiviert ist. (ist an) + """Überprüfung, ob die LED-Anzeige aktiviert ist. Example: ``display.is_on()`` @@ -81,7 +81,7 @@ Example: ``display.is_on()`` ... def read_light_level() -> int: - """Bestimmt die Lichtintensität. (bestimme Licht Intensität) + """Bestimmt die Lichtintensität. Example: ``display.read_light_level()`` diff --git a/lang/de/typeshed/stdlib/microbit/speaker.pyi b/lang/de/typeshed/stdlib/microbit/speaker.pyi index 39adac2..205091c 100644 --- a/lang/de/typeshed/stdlib/microbit/speaker.pyi +++ b/lang/de/typeshed/stdlib/microbit/speaker.pyi @@ -9,7 +9,7 @@ This does not disable sound output to an edge connector pin.""" ... def on() -> None: - """Lautsprecher einschalten. (an) + """Lautsprecher einschalten. Example: ``speaker.on()``""" ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/spi.pyi b/lang/de/typeshed/stdlib/microbit/spi.pyi index fb33f5e..47bde2c 100644 --- a/lang/de/typeshed/stdlib/microbit/spi.pyi +++ b/lang/de/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: miso pin (Voreinstellung 14)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """Bytes lesen. Example: ``spi.read(64)`` :param nbytes: Maximum der zu lesenden Bytes. +:param out: The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/de/typeshed/stdlib/neopixel.pyi b/lang/de/typeshed/stdlib/neopixel.pyi index 07c23c8..9c84fea 100644 --- a/lang/de/typeshed/stdlib/neopixel.pyi +++ b/lang/de/typeshed/stdlib/neopixel.pyi @@ -26,7 +26,7 @@ See `the online docs None: - """Lösche alle Pixel. (löschen) + """Lösche alle Pixel. Example: ``np.clear()``""" ... @@ -76,6 +76,6 @@ Example: ``r, g, b = np[0]`` :return: The colour tuple.""" def __len__(self) -> int: - """Erhalte die Länge des Pixelstreifens. + """Liefert die Länge des Pixelstreifens. Example: ``len(np)``""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/radio.pyi b/lang/de/typeshed/stdlib/radio.pyi index 66f13f2..a75e188 100644 --- a/lang/de/typeshed/stdlib/radio.pyi +++ b/lang/de/typeshed/stdlib/radio.pyi @@ -7,7 +7,7 @@ RATE_2MBIT: int """Konstante zur Angabe eines Durchsatzes von 2 MBit pro Sekunde.""" def on() -> None: - """Schaltet den Funk ein. (an) + """Schaltet den Funk ein. Example: ``radio.on()`` diff --git a/lang/es-es/typeshed/stdlib/log.pyi b/lang/es-es/typeshed/stdlib/log.pyi index 826660c..d416a70 100644 --- a/lang/es-es/typeshed/stdlib/log.pyi +++ b/lang/es-es/typeshed/stdlib/log.pyi @@ -28,7 +28,7 @@ By default the first column contains a timestamp for each row. The time unit can be selected via the timestamp argument. :param *labels: (*Etiquetas) Cualquier número de argumentos posicionales, cada uno correspondiente a una entrada en el encabezado del registro. -:param timestamp: (marca de tiempo) Seleccione la unidad de marca de tiempo que se añadirá automáticamente como la primera columna de cada fila. Los valores de la marca de tiempo pueden ser ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` o ``None`` para desactivar la marca de tiempo. El valor por defecto es ``log.SECONDS``.""" +:param timestamp: (marca de tiempo) Selecciona la unidad de marca de tiempo que se añadirá automáticamente como la primera columna de cada fila. Los valores de la marca de tiempo pueden ser ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` o ``None`` para desactivar la marca de tiempo. El valor por defecto es ``log.SECONDS``.""" ... @overload @@ -46,7 +46,7 @@ to the log with the extra labels. Labels previously specified and not present in a call to this function will be skipped with an empty value in the log row. -:param data_dictionary: (diccionario de datos) Los datos a registrar como un diccionario con una clave para cada cabecera.""" +:param data_dictionary: (diccionario de datos) Los datos que se registrarán como un diccionario con una clave para cada cabecera.""" ... @overload @@ -79,7 +79,7 @@ and “fast” invalidates the data without removing it. ... def set_mirroring(serial: bool): - """Configure la duplicación de la actividad de registro de datos en la salida en serie. (configurar replicación) + """Configura la duplicación de la actividad de registro de datos en la salida serie. (configurar replicación) Example: ``log.set_mirroring(True)`` diff --git a/lang/es-es/typeshed/stdlib/microbit/__init__.pyi b/lang/es-es/typeshed/stdlib/microbit/__init__.pyi index d0c8207..af9a99d 100644 --- a/lang/es-es/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/__init__.pyi @@ -12,7 +12,7 @@ from . import spi as spi from . import uart as uart def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: - """Programe para ejecutar una función en el intervalo especificado por los argumentos de tiempo **V2 solamente**. (ejecutar cada) + """Programa la ejecución de una función en el intervalo especificado por los argumentos de tiempo **Sólo V2**. (ejecutar cada) Example: ``run_every(my_logging, min=5)`` @@ -36,12 +36,12 @@ So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. When an exception is thrown inside the callback function it deschedules the function. To avoid this you can catch exceptions with ``try/except``. -:param callback: Función para llamar al intervalo proporcionado. Omitir cuando se utiliza como decorador. -:param days: (días) Establece la marca del día para la programación. -:param h: Establece la marca de hora para la programación. -:param min: Establece la marca de minuto para la programación. -:param s: Establece la segunda marca para la programación. -:param ms: Establece la marca de milisegundos para la programación.""" +:param callback: Función a llamar en el intervalo proporcionado. Omitir cuando se utiliza como un decorador. +:param days: (días) Configura la marca del día para la programación. +:param h: Configura la marca de la hora para la programación. +:param min: Configura la marca de los minutos para la programación. +:param s: Configura la segunda marca para la programación. +:param ms: Configura la marca de los milisegundos para la programación.""" def panic(n: int) -> None: """Entra en modo pánico (pánico) diff --git a/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi b/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi index 6941721..3d591b4 100644 --- a/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/accelerometer.pyi @@ -34,7 +34,7 @@ Example: ``x, y, z = accelerometer.get_values()`` ... def get_strength() -> int: - """Obtener la medición de aceleración de todos los ejes combinados, como un entero positivo. Esta es la suma de Pitagórica de los ejes X, Y y Z. (obtener fuerza) + """Obtiene la medida de la aceleración de todos los ejes combinados, como un entero positivo. Es la suma Pitagórica de los ejes X, Y y Z. (obtener fuerza) Example: ``accelerometer.get_strength()`` @@ -96,7 +96,7 @@ gestures can be detected using a loop with a small :func:`microbit.sleep` delay. ... def set_range(value: int) -> None: - """Establecer el rango de sensibilidad acelerómetro, en g (gravedad estándar), a los valores más cercanos soportados por el hardware, así que se redondea a ``2``, ``4``o ``8`` g. (establecer rango) + """Configura el rango de sensibilidad del acelerómetro, en g (gravedad estándar), a los valores más cercanos soportados por el hardware, por lo que redondea a ``2``, ``4``, u ``8`` g. (configurar rango) Example: ``accelerometer.set_range(8)`` diff --git a/lang/es-es/typeshed/stdlib/microbit/audio.pyi b/lang/es-es/typeshed/stdlib/microbit/audio.pyi index 7386050..90bc14f 100644 --- a/lang/es-es/typeshed/stdlib/microbit/audio.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/audio.pyi @@ -3,7 +3,7 @@ from ..microbit import MicroBitDigitalPin, Sound, pin0 from typing import ClassVar, Iterable, Union def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: - """Reproducir un sonido, un efecto de sonido o marcos de audio personalizados. (reproducir) + """Reproduce un sonido integrado, un efecto de sonido o marcos de audio personalizados. (reproducir) Example: ``audio.play(Sound.GIGGLE)`` @@ -27,11 +27,11 @@ Example: ``audio.stop()``""" ... class SoundEffect: - """Un efecto de sonido, compuesto por un conjunto de parámetros configurados a través del constructor o atributos. (efecto de sonido)""" + """Un efecto de sonido, compuesto por un conjunto de parámetros configurados a través del constructor o atributos. (efectosonido)""" WAVEFORM_SINE: ClassVar[int] - """Opción de onda sinusoidal utilizada para el parámetro ``waveform``. (forma de onda sinusoidal)""" + """Opción de onda senoidal utilizada para el parámetro ``waveform``. (forma de onda senoidal)""" WAVEFORM_SAWTOOTH: ClassVar[int] - """Opción de onda con diente de sierra usada para el parámetro ``waveform``. (diente de sierra de forma de onda)""" + """Opción de onda con diente de sierra usada para el parámetro ``waveform``. (forma de onda diente de sierra)""" WAVEFORM_TRIANGLE: ClassVar[int] """Opción de onda triangular usada para el parámetro ``waveform``. (forma de onda triangular)""" WAVEFORM_SQUARE: ClassVar[int] @@ -47,7 +47,7 @@ class SoundEffect: FX_NONE: ClassVar[int] """Ninguna opción de efecto usada para el parámetro ``fx``. (fx ninguno)""" FX_TREMOLO: ClassVar[int] - """Opción de efecto Trémolo usada para el parámetro ``fx``.""" + """Opción de efecto Trémolo usada para el parámetro ``fx``. (fx trémolo)""" FX_VIBRATO: ClassVar[int] """Opción de efecto vibrato utilizada para el parámetro ``fx``.""" FX_WARBLE: ClassVar[int] @@ -70,7 +70,7 @@ class SoundEffect: """El tipo de curva de interpolación entre las frecuencias de inicio y final, diferentes formas de onda tienen diferentes tasas de cambio en la frecuencia. Uno de los siguientes valores: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG`` (forma)""" def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): - """Crear un nuevo efecto de sonido. + """Crea un nuevo efecto de sonido. Example: ``my_effect = SoundEffect(duration=1000)`` @@ -89,7 +89,7 @@ and then change its attributes ``my_effect.duration = 500``. :param shape: (forma) El tipo de curva de interpolación entre las frecuencias de inicio y final, diferentes formas de onda tienen diferentes tasas de cambio en la frecuencia. Uno de los siguientes valores: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" def copy(self) -> SoundEffect: - """Crear una copia de este ``SoundEffect``. (copiar) + """Crea una copia de este ``SoundEffect``. (copiar) Example: ``sound_2 = sound_1.copy()`` @@ -108,7 +108,7 @@ Example:: frame[i] = 252 - i * 8""" def copyfrom(self, other: AudioFrame) -> None: - """Sobrescribir los datos en este ``AudioFrame`` con los datos de otra instancia de ``AudioFrame``. (copiar forma) + """Sobrescribe los datos de este ``AudioFrame`` con los datos de otra instancia ``AudioFrame``. (copiadesde) Example: ``my_frame.copyfrom(source_frame)`` diff --git a/lang/es-es/typeshed/stdlib/microbit/spi.pyi b/lang/es-es/typeshed/stdlib/microbit/spi.pyi index ad3719f..2c9582d 100644 --- a/lang/es-es/typeshed/stdlib/microbit/spi.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: pin MISO (por defecto, 14)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """Lee bytes. (leer) Example: ``spi.read(64)`` :param nbytes: Número máximo de bytes a leer. +:param out: (a) The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/es-es/typeshed/stdlib/microbit/uart.pyi b/lang/es-es/typeshed/stdlib/microbit/uart.pyi index 3de8849..fc9bd04 100644 --- a/lang/es-es/typeshed/stdlib/microbit/uart.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/uart.pyi @@ -29,7 +29,7 @@ For more details see `the online documentation bool: - """Comprueba si hay algún dato esperando. (algún) + """Comprueba si hay datos en espera. (algún) Example: ``uart.any()`` diff --git a/lang/es-es/typeshed/stdlib/neopixel.pyi b/lang/es-es/typeshed/stdlib/neopixel.pyi index 42555b0..03d4025 100644 --- a/lang/es-es/typeshed/stdlib/neopixel.pyi +++ b/lang/es-es/typeshed/stdlib/neopixel.pyi @@ -22,7 +22,7 @@ See `the online docs None: diff --git a/lang/fr/typeshed/stdlib/microbit/spi.pyi b/lang/fr/typeshed/stdlib/microbit/spi.pyi index 7f96bf1..08c0860 100644 --- a/lang/fr/typeshed/stdlib/microbit/spi.pyi +++ b/lang/fr/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: Broche miso (14 par défaut)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """Lire des octets. Example: ``spi.read(64)`` :param nbytes: Nombre maximal d'octets à lire. +:param out: The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/ja/typeshed/stdlib/microbit/spi.pyi b/lang/ja/typeshed/stdlib/microbit/spi.pyi index 2c42639..3fd049c 100644 --- a/lang/ja/typeshed/stdlib/microbit/spi.pyi +++ b/lang/ja/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: miso 端子(デフォルトは 14)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """バイト列を読み取ります。 Example: ``spi.read(64)`` :param nbytes: 読み取る最大バイト数。 +:param out: The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/ko/typeshed/stdlib/log.pyi b/lang/ko/typeshed/stdlib/log.pyi index 0a47d8b..3da3957 100644 --- a/lang/ko/typeshed/stdlib/log.pyi +++ b/lang/ko/typeshed/stdlib/log.pyi @@ -85,5 +85,5 @@ Example: ``log.set_mirroring(True)`` Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. -:param serial: ``True`` enables mirroring data to the serial output.""" +:param serial: ``True``로 설정할 경우 시리얼 출력 인터페이스에 데이터를 미러링하는 것이 허용됩니다.""" ... \ No newline at end of file diff --git a/lang/ko/typeshed/stdlib/microbit/__init__.pyi b/lang/ko/typeshed/stdlib/microbit/__init__.pyi index 8480624..1c64b85 100644 --- a/lang/ko/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/ko/typeshed/stdlib/microbit/__init__.pyi @@ -12,7 +12,7 @@ from . import spi as spi from . import uart as uart def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: - """Schedule to run a function at the interval specified by the time arguments **V2 only**. + """매개 변수로 주어진 일정한 시간(밀리초, ms)마다 특정 함수를 호출합니다. **micro:bit V2 전용** Example: ``run_every(my_logging, min=5)`` @@ -36,12 +36,12 @@ So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. When an exception is thrown inside the callback function it deschedules the function. To avoid this you can catch exceptions with ``try/except``. -:param callback: Function to call at the provided interval. Omit when using as a decorator. -:param days: Sets the day mark for the scheduling. -:param h: Sets the hour mark for the scheduling. -:param min: Sets the minute mark for the scheduling. -:param s: Sets the second mark for the scheduling. -:param ms: Sets the millisecond mark for the scheduling.""" +:param callback: 주어진 시간이 되었을 때 호출할 함수. 데코레이터(장식자)로 사용할 때 호출. +:param days: 함수 호출 반복 시간의 날 단위를 정합니다. +:param h: 함수 호출 반복 시간의 시간 단위를 정합니다. +:param min: 함수 호출 반복 시간의 분 단위를 정합니다. +:param s: 함수 호출 반복 시간의 초 단위를 정합니다. +:param ms: 함수 호출 반복 시간의 밀리초 단위를 정합니다.""" def panic(n: int) -> None: """패닉 모드를 활성화합니다. @@ -70,7 +70,7 @@ floating point number. temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) :param value: A number to convert. -:param from_: A tuple to define the range to convert from. +:param from_: 변환할 범위를 정의할 튜플 값 :param to: A tuple to define the range to convert to. :return: The ``value`` converted to the ``to`` range.""" @@ -90,7 +90,7 @@ If they are both integers (i.e ``10``), it will return an integer:: returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) :param value: A number to convert. -:param from_: A tuple to define the range to convert from. +:param from_: 변환할 범위를 정의할 튜플 값 :param to: A tuple to define the range to convert to. :return: The ``value`` converted to the ``to`` range.""" diff --git a/lang/ko/typeshed/stdlib/microbit/spi.pyi b/lang/ko/typeshed/stdlib/microbit/spi.pyi index f01f6e9..192f1a2 100644 --- a/lang/ko/typeshed/stdlib/microbit/spi.pyi +++ b/lang/ko/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: miso 핀(기본값 14)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """바이트를 읽습니다. Example: ``spi.read(64)`` :param nbytes: 읽을 바이트의 최대 수입니다. +:param out: The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/lol/typeshed/stdlib/VERSIONS b/lang/lol/typeshed/stdlib/VERSIONS new file mode 100644 index 0000000..67b710f --- /dev/null +++ b/lang/lol/typeshed/stdlib/VERSIONS @@ -0,0 +1,50 @@ +# The structure of this file is as follows: +# - Blank lines and comments starting with `#` are ignored. +# - Lines contain the name of a module, followed by a colon, +# a space, and a version range (for example: `symbol: 2.7-3.9`). +# +# Version ranges may be of the form "X.Y-A.B" or "X.Y-". The +# first form means that a module was introduced in version X.Y and last +# available in version A.B. The second form means that the module was +# introduced in version X.Y and is still available in the latest +# version of Python. +# +# If a submodule is not listed separately, it has the same lifetime as +# its parent module. +# +# Python versions before 2.7 are ignored, so any module that was already +# present in 2.7 will have "2.7" as its minimum version. Version ranges +# for unsupported versions of Python 3 (currently 3.5 and lower) are +# generally accurate but we do not guarantee their correctness. + +antigravity: 3.0- +array: 3.0- +audio: 3.0- +builtins: 3.0- +errno: 3.0- +gc: 3.0- +love: 3.0- +machine: 3.0- +math: 3.0- +microbit: 3.0- +micropython: 3.0- +music: 3.0- +neopixel: 3.0- +os: 3.0- +radio: 3.0- +random: 3.0- +speech: 3.0- +struct: 3.0- +sys: 3.0- +this: 3.0- +time: 3.0- +typing_extensions: 3.0- +typing: 3.0- +uarray: 3.0- +ucollections: 3.0- +uerrno: 3.0- +uos: 3.0- +urandom: 3.0- +ustruct: 3.0- +usys: 3.0- +utime: 3.0- \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/_typeshed/__init__.pyi b/lang/lol/typeshed/stdlib/_typeshed/__init__.pyi new file mode 100644 index 0000000..7bf6e72 --- /dev/null +++ b/lang/lol/typeshed/stdlib/_typeshed/__init__.pyi @@ -0,0 +1,168 @@ +# Utility types for typeshed +# +# See the README.md file in this directory for more information. + +import array +import sys +from os import PathLike +from typing import AbstractSet, Any, Container, Iterable, Protocol, Tuple, TypeVar, Union +from typing_extensions import Literal, final + +_KT = TypeVar("_KT") +_KT_co = TypeVar("_KT_co", covariant=True) +_KT_contra = TypeVar("_KT_contra", contravariant=True) +_VT = TypeVar("_VT") +_VT_co = TypeVar("_VT_co", covariant=True) +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) + +# Use for "self" annotations: +# def __enter__(self: Self) -> Self: ... +Self = TypeVar("Self") # noqa Y001 + +# stable +class IdentityFunction(Protocol): + def __call__(self, __x: _T) -> _T: ... + +class SupportsLessThan(Protocol): + def __lt__(self, __other: Any) -> bool: ... + +SupportsLessThanT = TypeVar("SupportsLessThanT", bound=SupportsLessThan) # noqa: Y001 + +class SupportsDivMod(Protocol[_T_contra, _T_co]): + def __divmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsRDivMod(Protocol[_T_contra, _T_co]): + def __rdivmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsLenAndGetItem(Protocol[_T_co]): + def __len__(self) -> int: ... + def __getitem__(self, __k: int) -> _T_co: ... + +# Mapping-like protocols + +# stable +class SupportsItems(Protocol[_KT_co, _VT_co]): + def items(self) -> AbstractSet[Tuple[_KT_co, _VT_co]]: ... + +# stable +class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]): + def keys(self) -> Iterable[_KT]: ... + def __getitem__(self, __k: _KT) -> _VT_co: ... + +# stable +class SupportsGetItem(Container[_KT_contra], Protocol[_KT_contra, _VT_co]): + def __getitem__(self, __k: _KT_contra) -> _VT_co: ... + +# stable +class SupportsItemAccess(SupportsGetItem[_KT_contra, _VT], Protocol[_KT_contra, _VT]): + def __setitem__(self, __k: _KT_contra, __v: _VT) -> None: ... + def __delitem__(self, __v: _KT_contra) -> None: ... + +# These aliases are simple strings in Python 2. +StrPath = Union[str, PathLike[str]] # stable +BytesPath = Union[bytes, PathLike[bytes]] # stable +StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable + +OpenTextModeUpdating = Literal[ + "r+", + "+r", + "rt+", + "r+t", + "+rt", + "tr+", + "t+r", + "+tr", + "w+", + "+w", + "wt+", + "w+t", + "+wt", + "tw+", + "t+w", + "+tw", + "a+", + "+a", + "at+", + "a+t", + "+at", + "ta+", + "t+a", + "+ta", + "x+", + "+x", + "xt+", + "x+t", + "+xt", + "tx+", + "t+x", + "+tx", +] +OpenTextModeWriting = Literal["w", "wt", "tw", "a", "at", "ta", "x", "xt", "tx"] +OpenTextModeReading = Literal["r", "rt", "tr", "U", "rU", "Ur", "rtU", "rUt", "Urt", "trU", "tUr", "Utr"] +OpenTextMode = Union[OpenTextModeUpdating, OpenTextModeWriting, OpenTextModeReading] +OpenBinaryModeUpdating = Literal[ + "rb+", + "r+b", + "+rb", + "br+", + "b+r", + "+br", + "wb+", + "w+b", + "+wb", + "bw+", + "b+w", + "+bw", + "ab+", + "a+b", + "+ab", + "ba+", + "b+a", + "+ba", + "xb+", + "x+b", + "+xb", + "bx+", + "b+x", + "+bx", +] +OpenBinaryModeWriting = Literal["wb", "bw", "ab", "ba", "xb", "bx"] +OpenBinaryModeReading = Literal["rb", "br", "rbU", "rUb", "Urb", "brU", "bUr", "Ubr"] +OpenBinaryMode = Union[OpenBinaryModeUpdating, OpenBinaryModeReading, OpenBinaryModeWriting] + +# stable +class HasFileno(Protocol): + def fileno(self) -> int: ... + +FileDescriptor = int # stable +FileDescriptorLike = Union[int, HasFileno] # stable + +# stable +class SupportsRead(Protocol[_T_co]): + def read(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsReadline(Protocol[_T_co]): + def readline(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsNoArgReadline(Protocol[_T_co]): + def readline(self) -> _T_co: ... + +# stable +class SupportsWrite(Protocol[_T_contra]): + def write(self, __s: _T_contra) -> Any: ... + +ReadableBuffer = Union[bytes, bytearray, memoryview, array.array[Any]] # stable +WriteableBuffer = Union[bytearray, memoryview, array.array[Any]] # stable + +# stable +if sys.version_info >= (3, 10): + from types import NoneType as NoneType +else: + # Used by type checkers for checks involving None (does not exist at runtime) + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... diff --git a/lang/lol/typeshed/stdlib/abc.pyi b/lang/lol/typeshed/stdlib/abc.pyi new file mode 100644 index 0000000..18bb090 --- /dev/null +++ b/lang/lol/typeshed/stdlib/abc.pyi @@ -0,0 +1,28 @@ +from _typeshed import SupportsWrite +from typing import Any, Callable, Tuple, Type, TypeVar + +_T = TypeVar("_T") +_FuncT = TypeVar("_FuncT", bound=Callable[..., Any]) + +# These definitions have special processing in mypy +class ABCMeta(type): + __abstractmethods__: frozenset[str] + def __init__( + self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any] + ) -> None: ... + def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ... + def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ... + def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ... + def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ... + +def abstractmethod(funcobj: _FuncT) -> _FuncT: ... + +class abstractproperty(property): ... + +# These two are deprecated and not supported by mypy +def abstractstaticmethod(callable: _FuncT) -> _FuncT: ... +def abstractclassmethod(callable: _FuncT) -> _FuncT: ... + +class ABC(metaclass=ABCMeta): ... + +def get_cache_token() -> object: ... diff --git a/lang/lol/typeshed/stdlib/antigravity.pyi b/lang/lol/typeshed/stdlib/antigravity.pyi new file mode 100644 index 0000000..e69de29 diff --git a/lang/lol/typeshed/stdlib/array.pyi b/lang/lol/typeshed/stdlib/array.pyi new file mode 100644 index 0000000..1e4e630 --- /dev/null +++ b/lang/lol/typeshed/stdlib/array.pyi @@ -0,0 +1,42 @@ +from typing import Generic, Iterable, MutableSequence, TypeVar, Union, overload +from typing_extensions import Literal + +_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"] +_FloatTypeCode = Literal["f", "d"] +_TypeCode = Union[_IntTypeCode, _FloatTypeCode] + +_T = TypeVar("_T", int, float) + +class array(MutableSequence[_T], Generic[_T]): + @overload + def __init__( + self: array[int], + typecode: _IntTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self: array[float], + typecode: _FloatTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self, typecode: str, __initializer: Union[bytes, Iterable[_T]] = ... + ) -> None: ... + def append(self, __v: _T) -> None: ... + def decode(self) -> str: ... + def extend(self, __bb: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> _T: ... + @overload + def __getitem__(self, s: slice) -> array[_T]: ... + @overload # type: ignore # Overrides MutableSequence + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: array[_T]) -> None: ... + def __add__(self, x: array[_T]) -> array[_T]: ... + def __iadd__(self, x: array[_T]) -> array[_T]: ... # type: ignore # Overrides MutableSequence + +ArrayType = array diff --git a/lang/lol/typeshed/stdlib/audio.pyi b/lang/lol/typeshed/stdlib/audio.pyi new file mode 100644 index 0000000..b1d39c7 --- /dev/null +++ b/lang/lol/typeshed/stdlib/audio.pyi @@ -0,0 +1,11 @@ +"""Play sounds using the micro:bit (import ``audio`` for V1 compatibility). +""" + +# Re-export for V1 compatibility. +from .microbit.audio import ( + is_playing as is_playing, + play as play, + stop as stop, + AudioFrame as AudioFrame, + SoundEffect as SoundEffect, +) diff --git a/lang/lol/typeshed/stdlib/builtins.pyi b/lang/lol/typeshed/stdlib/builtins.pyi new file mode 100644 index 0000000..8b7dfb9 --- /dev/null +++ b/lang/lol/typeshed/stdlib/builtins.pyi @@ -0,0 +1,1334 @@ +import sys +import types +from _typeshed import ( + OpenBinaryMode, + OpenTextMode, + ReadableBuffer, + Self, + StrOrBytesPath, + SupportsDivMod, + SupportsKeysAndGetItem, + SupportsLenAndGetItem, + SupportsLessThan, + SupportsLessThanT, + SupportsRDivMod, + SupportsWrite, +) +from types import CodeType, TracebackType +from typing import ( + IO, + AbstractSet, + Any, + AsyncIterable, + AsyncIterator, + BinaryIO, + ByteString, + Callable, + FrozenSet, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + MutableMapping, + MutableSequence, + MutableSet, + NoReturn, + Protocol, + Reversible, + Sequence, + Set, + Sized, + SupportsAbs, + SupportsBytes, + SupportsComplex, + SupportsFloat, + SupportsInt, + SupportsRound, + TextIO, + Tuple, + Type, + TypeVar, + Union, + ValuesView, + overload, +) +from typing_extensions import Literal, SupportsIndex, final + +if sys.version_info >= (3, 9): + from types import GenericAlias + +class _SupportsTrunc(Protocol): + def __trunc__(self) -> int: ... + +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") +_S = TypeVar("_S") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T3 = TypeVar("_T3") +_T4 = TypeVar("_T4") +_T5 = TypeVar("_T5") +_TT = TypeVar("_TT", bound="type") +_TBE = TypeVar("_TBE", bound="BaseException") + +class object: + __doc__: str | None + __dict__: dict[str, Any] + __slots__: str | Iterable[str] + __module__: str + __annotations__: dict[str, Any] + @property + def __class__(self: _T) -> Type[_T]: ... + # Ignore errors about type mismatch between property getter and setter + @__class__.setter + def __class__(self, __type: Type[object]) -> None: ... # type: ignore # noqa: F811 + def __init__(self) -> None: ... + def __new__(cls: Type[_T]) -> _T: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __eq__(self, o: object) -> bool: ... + def __ne__(self, o: object) -> bool: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + def __format__(self, format_spec: str) -> str: ... + def __getattribute__(self, name: str) -> Any: ... + def __delattr__(self, name: str) -> None: ... + def __sizeof__(self) -> int: ... + def __reduce__(self) -> str | Tuple[Any, ...]: ... + if sys.version_info >= (3, 8): + def __reduce_ex__(self, protocol: SupportsIndex) -> str | Tuple[Any, ...]: ... + else: + def __reduce_ex__(self, protocol: int) -> str | Tuple[Any, ...]: ... + def __dir__(self) -> Iterable[str]: ... + def __init_subclass__(cls) -> None: ... + +class staticmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class classmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class type(object): + __base__: type + __bases__: Tuple[type, ...] + __basicsize__: int + __dict__: dict[str, Any] + __dictoffset__: int + __flags__: int + __itemsize__: int + __module__: str + __name__: str + __qualname__: str + __text_signature__: str | None + __weakrefoffset__: int + @overload + def __init__(self, o: object) -> None: ... + @overload + def __init__( + self, name: str, bases: Tuple[type, ...], dict: dict[str, Any], **kwds: Any + ) -> None: ... + @overload + def __new__(cls, o: object) -> type: ... + @overload + def __new__( + cls: Type[_TT], + name: str, + bases: Tuple[type, ...], + namespace: dict[str, Any], + **kwds: Any, + ) -> _TT: ... + def __call__(self, *args: Any, **kwds: Any) -> Any: ... + def __subclasses__(self: _TT) -> list[_TT]: ... + def __instancecheck__(self, instance: Any) -> bool: ... + def __subclasscheck__(self, subclass: type) -> bool: ... + @classmethod + def __prepare__( + metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any + ) -> Mapping[str, Any]: ... + if sys.version_info >= (3, 10): + def __or__(self, t: Any) -> types.UnionType: ... + def __ror__(self, t: Any) -> types.UnionType: ... + +class super(object): + @overload + def __init__(self, t: Any, obj: Any) -> None: ... + @overload + def __init__(self, t: Any) -> None: ... + @overload + def __init__(self) -> None: ... + +class int: + @overload + def __new__( + cls: Type[_T], + x: str | bytes | SupportsInt | SupportsIndex | _SupportsTrunc = ..., + ) -> _T: ... + @overload + def __new__( + cls: Type[_T], x: str | bytes | bytearray, base: SupportsIndex + ) -> _T: ... + def to_bytes( + self, + length: SupportsIndex, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> bytes: ... + @classmethod + def from_bytes( + cls, + bytes: Iterable[SupportsIndex] | SupportsBytes, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> int: ... # TODO buffer object argument + def __add__(self, x: int) -> int: ... + def __sub__(self, x: int) -> int: ... + def __mul__(self, x: int) -> int: ... + def __floordiv__(self, x: int) -> int: ... + def __truediv__(self, x: int) -> float: ... + def __mod__(self, x: int) -> int: ... + def __divmod__(self, x: int) -> Tuple[int, int]: ... + def __radd__(self, x: int) -> int: ... + def __rsub__(self, x: int) -> int: ... + def __rmul__(self, x: int) -> int: ... + def __rfloordiv__(self, x: int) -> int: ... + def __rtruediv__(self, x: int) -> float: ... + def __rmod__(self, x: int) -> int: ... + def __rdivmod__(self, x: int) -> Tuple[int, int]: ... + @overload + def __pow__(self, __x: Literal[2], __modulo: int | None = ...) -> int: ... + @overload + def __pow__( + self, __x: int, __modulo: int | None = ... + ) -> Any: ... # Return type can be int or float, depending on x. + def __rpow__(self, x: int, mod: int | None = ...) -> Any: ... + def __and__(self, n: int) -> int: ... + def __or__(self, n: int) -> int: ... + def __xor__(self, n: int) -> int: ... + def __lshift__(self, n: int) -> int: ... + def __rshift__(self, n: int) -> int: ... + def __rand__(self, n: int) -> int: ... + def __ror__(self, n: int) -> int: ... + def __rxor__(self, n: int) -> int: ... + def __rlshift__(self, n: int) -> int: ... + def __rrshift__(self, n: int) -> int: ... + def __neg__(self) -> int: ... + def __pos__(self) -> int: ... + def __invert__(self) -> int: ... + def __trunc__(self) -> int: ... + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + def __round__(self, ndigits: SupportsIndex = ...) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: int) -> bool: ... + def __le__(self, x: int) -> bool: ... + def __gt__(self, x: int) -> bool: ... + def __ge__(self, x: int) -> bool: ... + def __str__(self) -> str: ... + def __float__(self) -> float: ... + def __int__(self) -> int: ... + def __abs__(self) -> int: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + def __index__(self) -> int: ... + +class float: + def __new__( + cls: Type[_T], x: SupportsFloat | SupportsIndex | str | bytes | bytearray = ... + ) -> _T: ... + def __add__(self, x: float) -> float: ... + def __sub__(self, x: float) -> float: ... + def __mul__(self, x: float) -> float: ... + def __floordiv__(self, x: float) -> float: ... + def __truediv__(self, x: float) -> float: ... + def __mod__(self, x: float) -> float: ... + def __divmod__(self, x: float) -> Tuple[float, float]: ... + def __pow__( + self, x: float, mod: None = ... + ) -> float: ... # In Python 3, returns complex if self is negative and x is not whole + def __radd__(self, x: float) -> float: ... + def __rsub__(self, x: float) -> float: ... + def __rmul__(self, x: float) -> float: ... + def __rfloordiv__(self, x: float) -> float: ... + def __rtruediv__(self, x: float) -> float: ... + def __rmod__(self, x: float) -> float: ... + def __rdivmod__(self, x: float) -> Tuple[float, float]: ... + def __rpow__(self, x: float, mod: None = ...) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... + def __trunc__(self) -> int: ... + if sys.version_info >= (3, 9): + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + @overload + def __round__(self, ndigits: None = ...) -> int: ... + @overload + def __round__(self, ndigits: SupportsIndex) -> float: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: float) -> bool: ... + def __le__(self, x: float) -> bool: ... + def __gt__(self, x: float) -> bool: ... + def __ge__(self, x: float) -> bool: ... + def __neg__(self) -> float: ... + def __pos__(self) -> float: ... + def __str__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class complex: + @overload + def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], real: str | SupportsComplex | SupportsIndex | complex + ) -> _T: ... + @property + def real(self) -> float: ... + @property + def imag(self) -> float: ... + def __add__(self, x: complex) -> complex: ... + def __sub__(self, x: complex) -> complex: ... + def __mul__(self, x: complex) -> complex: ... + def __pow__(self, x: complex, mod: None = ...) -> complex: ... + def __truediv__(self, x: complex) -> complex: ... + def __radd__(self, x: complex) -> complex: ... + def __rsub__(self, x: complex) -> complex: ... + def __rmul__(self, x: complex) -> complex: ... + def __rpow__(self, x: complex, mod: None = ...) -> complex: ... + def __rtruediv__(self, x: complex) -> complex: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __neg__(self) -> complex: ... + def __pos__(self) -> complex: ... + def __str__(self) -> str: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class str(Sequence[str]): + @overload + def __new__(cls: Type[_T], o: object = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], o: bytes, encoding: str = ..., errors: str = ... + ) -> _T: ... + def count( + self, + x: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ... + def endswith( + self, + __suffix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def format(self, *args: object, **kwargs: object) -> str: ... + def index( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable: Iterable[str]) -> str: ... + def lower(self) -> str: ... + def lstrip(self, __chars: str | None = ...) -> str: ... + def replace(self, __old: str, __new: str, __count: SupportsIndex = ...) -> str: ... + def rfind( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def rstrip(self, __chars: str | None = ...) -> str: ... + def split( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def startswith( + self, + __prefix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __chars: str | None = ...) -> str: ... + def upper(self) -> str: ... + def __add__(self, s: str) -> str: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: str) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ge__(self, x: str) -> bool: ... + def __getitem__(self, i: int | slice) -> str: ... + def __gt__(self, x: str) -> bool: ... + def __hash__(self) -> int: ... + def __iter__(self) -> Iterator[str]: ... + def __le__(self, x: str) -> bool: ... + def __len__(self) -> int: ... + def __lt__(self, x: str) -> bool: ... + def __mod__(self, x: Any) -> str: ... + def __mul__(self, n: SupportsIndex) -> str: ... + def __ne__(self, x: object) -> bool: ... + def __repr__(self) -> str: ... + def __rmul__(self, n: SupportsIndex) -> str: ... + def __str__(self) -> str: ... + def __getnewargs__(self) -> Tuple[str]: ... + +class bytes(ByteString): + @overload + def __new__(cls: Type[_T], ints: Iterable[SupportsIndex]) -> _T: ... + @overload + def __new__(cls: Type[_T], string: str, encoding: str, errors: str = ...) -> _T: ... + @overload + def __new__(cls: Type[_T], length: SupportsIndex) -> _T: ... + @overload + def __new__(cls: Type[_T]) -> _T: ... + @overload + def __new__(cls: Type[_T], o: SupportsBytes) -> _T: ... + def count( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def endswith( + self, + __suffix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def index( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable_of_bytes: Iterable[ByteString | memoryview]) -> bytes: ... + def lower(self) -> bytes: ... + def lstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def replace( + self, __old: bytes, __new: bytes, __count: SupportsIndex = ... + ) -> bytes: ... + def rfind( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def rstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def split( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def startswith( + self, + __prefix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __bytes: bytes | None = ...) -> bytes: ... + def upper(self) -> bytes: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytes: ... + def __add__(self, s: bytes) -> bytes: ... + def __mul__(self, n: SupportsIndex) -> bytes: ... + def __rmul__(self, n: SupportsIndex) -> bytes: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + def __getnewargs__(self) -> Tuple[bytes]: ... + +class bytearray: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, ints: Iterable[SupportsIndex]) -> None: ... + @overload + def __init__(self, string: str, encoding: str, errors: str = ...) -> None: ... + @overload + def __init__(self, length: SupportsIndex) -> None: ... + def append(self, __item: SupportsIndex) -> None: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def extend(self, __iterable_of_ints: Iterable[SupportsIndex]) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytearray: ... + @overload + def __setitem__(self, i: SupportsIndex, x: SupportsIndex) -> None: ... + @overload + def __setitem__(self, s: slice, x: Iterable[SupportsIndex] | bytes) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, s: bytes) -> bytearray: ... + def __iadd__(self, s: Iterable[int]) -> bytearray: ... + def __mul__(self, n: SupportsIndex) -> bytearray: ... + def __rmul__(self, n: SupportsIndex) -> bytearray: ... + def __imul__(self, n: SupportsIndex) -> bytearray: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + +class memoryview(Sized, Sequence[int]): + def __init__(self, obj: ReadableBuffer) -> None: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> memoryview: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + def __len__(self) -> int: ... + @overload + def __setitem__(self, s: slice, o: bytes) -> None: ... + @overload + def __setitem__(self, i: SupportsIndex, o: SupportsIndex) -> None: ... + +@final +class bool(int): + def __new__(cls: Type[_T], __o: object = ...) -> _T: ... + @overload + def __and__(self, x: bool) -> bool: ... + @overload + def __and__(self, x: int) -> int: ... + @overload + def __or__(self, x: bool) -> bool: ... + @overload + def __or__(self, x: int) -> int: ... + @overload + def __xor__(self, x: bool) -> bool: ... + @overload + def __xor__(self, x: int) -> int: ... + @overload + def __rand__(self, x: bool) -> bool: ... + @overload + def __rand__(self, x: int) -> int: ... + @overload + def __ror__(self, x: bool) -> bool: ... + @overload + def __ror__(self, x: int) -> int: ... + @overload + def __rxor__(self, x: bool) -> bool: ... + @overload + def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + +class slice(object): + start: Any + step: Any + stop: Any + __hash__: None # type: ignore + def indices(self, len: SupportsIndex) -> Tuple[int, int, int]: ... + +class tuple(Sequence[_T_co], Generic[_T_co]): + def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ... + def __len__(self) -> int: ... + def __contains__(self, x: object) -> bool: ... + @overload + def __getitem__(self, x: int) -> _T_co: ... + @overload + def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __le__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ... + @overload + def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ... + @overload + def __add__(self, x: Tuple[_T, ...]) -> Tuple[_T_co | _T, ...]: ... + def __mul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def __rmul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def count(self, __value: Any) -> int: ... + def index( + self, __value: Any, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + +# Can we remove this? +class function: + # TODO not defined in builtins! + __name__: str + __module__: str + __code__: CodeType + __qualname__: str + __annotations__: dict[str, Any] + +class frozenset(AbstractSet[_T_co], Generic[_T_co]): + @overload + def __new__(cls: type[Self]) -> Self: ... + @overload + def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ... + def copy(self) -> FrozenSet[_T_co]: ... + def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def isdisjoint(self, s: Iterable[_T_co]) -> bool: ... + def issubset(self, s: Iterable[object]) -> bool: ... + def issuperset(self, s: Iterable[object]) -> bool: ... + def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class list(MutableSequence[_T], Generic[_T]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, iterable: Iterable[_T]) -> None: ... + def clear(self) -> None: ... + def copy(self) -> list[_T]: ... + def append(self, __object: _T) -> None: ... + def extend(self, __iterable: Iterable[_T]) -> None: ... + def pop(self, __index: SupportsIndex = ...) -> _T: ... + def index( + self, __value: _T, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + def count(self, __value: _T) -> int: ... + def insert(self, __index: SupportsIndex, __object: _T) -> None: ... + def remove(self, __value: _T) -> None: ... + def reverse(self) -> None: ... + @overload + def sort( + self: list[SupportsLessThanT], *, key: None = ..., reverse: bool = ... + ) -> None: ... + @overload + def sort( + self, *, key: Callable[[_T], SupportsLessThan], reverse: bool = ... + ) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> _T: ... + @overload + def __getitem__(self, s: slice) -> list[_T]: ... + @overload + def __setitem__(self, i: SupportsIndex, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, x: list[_T]) -> list[_T]: ... + def __iadd__(self: _S, x: Iterable[_T]) -> _S: ... + def __mul__(self, n: SupportsIndex) -> list[_T]: ... + def __rmul__(self, n: SupportsIndex) -> list[_T]: ... + def __imul__(self: _S, n: SupportsIndex) -> _S: ... + def __contains__(self, o: object) -> bool: ... + def __reversed__(self) -> Iterator[_T]: ... + def __gt__(self, x: list[_T]) -> bool: ... + def __ge__(self, x: list[_T]) -> bool: ... + def __lt__(self, x: list[_T]) -> bool: ... + def __le__(self, x: list[_T]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): + @overload + def __init__(self: dict[_KT, _VT]) -> None: ... + @overload + def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ... + @overload + def __init__( + self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT + ) -> None: ... + @overload + def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ... + def clear(self) -> None: ... + def copy(self) -> dict[_KT, _VT]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ... + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT]: ... + def items(self) -> ItemsView[_KT, _VT]: ... + @classmethod + @overload + def fromkeys( + cls, __iterable: Iterable[_T], __value: None = ... + ) -> dict[_T, Any | None]: ... + @classmethod + @overload + def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ... + def __len__(self) -> int: ... + def __getitem__(self, k: _KT) -> _VT: ... + def __setitem__(self, k: _KT, v: _VT) -> None: ... + def __delitem__(self, v: _KT) -> None: ... + def __iter__(self) -> Iterator[_KT]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __or__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ror__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ior__(self, __value: Mapping[_KT, _VT]) -> dict[_KT, _VT]: ... # type: ignore + +class set(MutableSet[_T], Generic[_T]): + def __init__(self, iterable: Iterable[_T] = ...) -> None: ... + def add(self, element: _T) -> None: ... + def clear(self) -> None: ... + def copy(self) -> Set[_T]: ... + def difference(self, *s: Iterable[Any]) -> Set[_T]: ... + def difference_update(self, *s: Iterable[Any]) -> None: ... + def discard(self, element: _T) -> None: ... + def intersection(self, *s: Iterable[Any]) -> Set[_T]: ... + def intersection_update(self, *s: Iterable[Any]) -> None: ... + def isdisjoint(self, s: Iterable[Any]) -> bool: ... + def issubset(self, s: Iterable[Any]) -> bool: ... + def issuperset(self, s: Iterable[Any]) -> bool: ... + def pop(self) -> _T: ... + def remove(self, element: _T) -> None: ... + def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ... + def symmetric_difference_update(self, s: Iterable[_T]) -> None: ... + def union(self, *s: Iterable[_T]) -> Set[_T]: ... + def update(self, *s: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __or__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ior__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __sub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __isub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __xor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ixor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): + def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ... + def __iter__(self) -> Iterator[Tuple[int, _T]]: ... + def __next__(self) -> Tuple[int, _T]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class range(Sequence[int]): + start: int + stop: int + step: int + @overload + def __init__(self, stop: SupportsIndex) -> None: ... + @overload + def __init__( + self, start: SupportsIndex, stop: SupportsIndex, step: SupportsIndex = ... + ) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> range: ... + def __repr__(self) -> str: ... + def __reversed__(self) -> Iterator[int]: ... + +class property(object): + fget: Callable[[Any], Any] | None + fset: Callable[[Any, Any], None] | None + fdel: Callable[[Any], None] | None + def __init__( + self, + fget: Callable[[Any], Any] | None = ..., + fset: Callable[[Any, Any], None] | None = ..., + fdel: Callable[[Any], None] | None = ..., + doc: str | None = ..., + ) -> None: ... + def getter(self, fget: Callable[[Any], Any]) -> property: ... + def setter(self, fset: Callable[[Any, Any], None]) -> property: ... + def deleter(self, fdel: Callable[[Any], None]) -> property: ... + def __get__(self, obj: Any, type: type | None = ...) -> Any: ... + def __set__(self, obj: Any, value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +class _NotImplementedType(Any): # type: ignore + # A little weird, but typing the __call__ as NotImplemented makes the error message + # for NotImplemented() much better + __call__: NotImplemented # type: ignore + +NotImplemented: _NotImplementedType + +def abs(__x: SupportsAbs[_T]) -> _T: ... +def all(__iterable: Iterable[object]) -> bool: ... +def any(__iterable: Iterable[object]) -> bool: ... +def bin(__number: int | SupportsIndex) -> str: ... + +if sys.version_info >= (3, 7): + def breakpoint(*args: Any, **kws: Any) -> None: ... + +def callable(__obj: object) -> bool: ... +def chr(__i: int) -> str: ... + +# We define this here instead of using os.PathLike to avoid import cycle issues. +# See https://github.com/python/typeshed/pull/991#issuecomment-288160993 +_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True) + +class _PathLike(Protocol[_AnyStr_co]): + def __fspath__(self) -> _AnyStr_co: ... + +if sys.version_info >= (3, 10): + def aiter(__iterable: AsyncIterable[_T]) -> AsyncIterator[_T]: ... + @overload + async def anext(__i: AsyncIterator[_T]) -> _T: ... + @overload + async def anext(__i: AsyncIterator[_T], default: _VT) -> _T | _VT: ... + +def delattr(__obj: Any, __name: str) -> None: ... +def dir(__o: object = ...) -> list[str]: ... +@overload +def divmod(__x: SupportsDivMod[_T_contra, _T_co], __y: _T_contra) -> _T_co: ... +@overload +def divmod(__x: _T_contra, __y: SupportsRDivMod[_T_contra, _T_co]) -> _T_co: ... +def eval( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... +def exec( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... + +class filter(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __function: None, __iterable: Iterable[_T | None]) -> None: ... + @overload + def __init__( + self, __function: Callable[[_T], Any], __iterable: Iterable[_T] + ) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +@overload +def getattr(__o: object, name: str) -> Any: ... + +# While technically covered by the last overload, spelling out the types for None and bool +# help mypy out in some tricky situations involving type context (aka bidirectional inference) +@overload +def getattr(__o: object, name: str, __default: None) -> Any | None: ... +@overload +def getattr(__o: object, name: str, __default: bool) -> Any | bool: ... +@overload +def getattr(__o: object, name: str, __default: _T) -> Any | _T: ... +def globals() -> dict[str, Any]: ... +def hasattr(__obj: object, __name: str) -> bool: ... +def hash(__obj: object) -> int: ... +def help(*args: Any, **kwds: Any) -> None: ... +def hex(__number: int | SupportsIndex) -> str: ... +def id(__obj: object) -> int: ... +def input(__prompt: Any = ...) -> str: ... +@overload +def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T | None], __sentinel: None) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ... + +if sys.version_info >= (3, 10): + def isinstance( + __obj: object, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + def issubclass( + __cls: type, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + +else: + def isinstance( + __obj: object, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + def issubclass( + __cls: type, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + +def len(__obj: Sized) -> int: ... +def locals() -> dict[str, Any]: ... + +class map(Iterator[_S], Generic[_S]): + @overload + def __init__(self, __func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[..., _S], + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> None: ... + def __iter__(self) -> Iterator[_S]: ... + def __next__(self) -> _S: ... + +@overload +def max( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def max( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def max(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def max( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def min( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def min( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def min(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def min( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def next(__i: Iterator[_T]) -> _T: ... +@overload +def next(__i: Iterator[_T], default: _VT) -> _T | _VT: ... +def oct(__number: int | SupportsIndex) -> str: ... + +_OpenFile = Union[StrOrBytesPath, int] +_Opener = Callable[[str, int], int] + +# Text mode: always returns a TextIOWrapper +@overload +def open( + file: _OpenFile, + mode: OpenTextMode = ..., + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> TextIO: ... + +# Unbuffered binary mode: returns a FileIO +@overload +def open( + file: _OpenFile, + mode: OpenBinaryMode, + buffering: int = ..., + encoding: None = ..., + errors: None = ..., + newline: None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> BinaryIO: ... + +# Fallback if mode is not specified +@overload +def open( + file: _OpenFile, + mode: str, + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> IO[Any]: ... +def ord(__c: str | bytes) -> int: ... +def print( + *values: object, + sep: str | None = ..., + end: str | None = ..., + file: SupportsWrite[str] | None = ..., + flush: bool = ..., +) -> None: ... + +_E = TypeVar("_E", contravariant=True) +_M = TypeVar("_M", contravariant=True) + +class _SupportsPow2(Protocol[_E, _T_co]): + def __pow__(self, __other: _E) -> _T_co: ... + +class _SupportsPow3(Protocol[_E, _M, _T_co]): + def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ... + +if sys.version_info >= (3, 8): + @overload + def pow( + base: int, exp: int, mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(base: int, exp: int, mod: int) -> int: ... + @overload + def pow(base: float, exp: float, mod: None = ...) -> float: ... + @overload + def pow(base: _SupportsPow2[_E, _T_co], exp: _E) -> _T_co: ... + @overload + def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ... + +else: + @overload + def pow( + __base: int, __exp: int, __mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(__base: int, __exp: int, __mod: int) -> int: ... + @overload + def pow(__base: float, __exp: float, __mod: None = ...) -> float: ... + @overload + def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ... + @overload + def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ... + +class reversed(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __sequence: Reversible[_T]) -> None: ... + @overload + def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +def repr(__obj: object) -> str: ... +@overload +def round(number: SupportsRound[Any]) -> int: ... +@overload +def round(number: SupportsRound[Any], ndigits: None) -> int: ... +@overload +def round(number: SupportsRound[_T], ndigits: SupportsIndex) -> _T: ... +def setattr(__obj: object, __name: str, __value: Any) -> None: ... +@overload +def sorted( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., reverse: bool = ... +) -> list[SupportsLessThanT]: ... +@overload +def sorted( + __iterable: Iterable[_T], + *, + key: Callable[[_T], SupportsLessThan], + reverse: bool = ..., +) -> list[_T]: ... + +if sys.version_info >= (3, 8): + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], start: _S) -> _T | _S: ... + +else: + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], __start: _S) -> _T | _S: ... + +class zip(Iterator[_T_co], Generic[_T_co]): + @overload + def __new__(cls, __iter1: Iterable[_T1]) -> zip[Tuple[_T1]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2] + ) -> zip[Tuple[_T1, _T2]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3] + ) -> zip[Tuple[_T1, _T2, _T3]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> zip[Tuple[_T1, _T2, _T3, _T4]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> zip[Tuple[Any, ...]]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __next__(self) -> _T_co: ... + +def __import__( + name: str, + globals: Mapping[str, Any] | None = ..., + locals: Mapping[str, Any] | None = ..., + fromlist: Sequence[str] = ..., + level: int = ..., +) -> Any: ... + +# Actually the type of Ellipsis is , but since it's +# not exposed anywhere under that name, we make it private here. +class ellipsis: ... + +Ellipsis: ellipsis + +class BaseException(object): + args: Tuple[Any, ...] + __cause__: BaseException | None + __context__: BaseException | None + __suppress_context__: bool + __traceback__: TracebackType | None + def __init__(self, *args: object) -> None: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def with_traceback(self: _TBE, tb: TracebackType | None) -> _TBE: ... + +class GeneratorExit(BaseException): ... +class KeyboardInterrupt(BaseException): ... + +class SystemExit(BaseException): + code: int + +class Exception(BaseException): ... + +class StopIteration(Exception): + value: Any + +_StandardError = Exception + +class OSError(Exception): + errno: int + strerror: str + # filename, filename2 are actually str | bytes | None + filename: Any + filename2: Any + if sys.platform == "win32": + winerror: int + +if sys.platform == "win32": + WindowsError = OSError + +class ArithmeticError(_StandardError): ... +class AssertionError(_StandardError): ... + +class AttributeError(_StandardError): + if sys.version_info >= (3, 10): + name: str + obj: object + +class EOFError(_StandardError): ... + +class ImportError(_StandardError): + def __init__( + self, *args: object, name: str | None = ..., path: str | None = ... + ) -> None: ... + name: str | None + path: str | None + msg: str # undocumented + +class LookupError(_StandardError): ... +class MemoryError(_StandardError): ... + +class NameError(_StandardError): + if sys.version_info >= (3, 10): + name: str + +class RuntimeError(_StandardError): ... + +class StopAsyncIteration(Exception): + value: Any + +class SyntaxError(_StandardError): + msg: str + lineno: int | None + offset: int | None + text: str | None + filename: str | None + if sys.version_info >= (3, 10): + end_lineno: int | None + end_offset: int | None + +class TypeError(_StandardError): ... +class ValueError(_StandardError): ... +class FloatingPointError(ArithmeticError): ... +class OverflowError(ArithmeticError): ... +class ZeroDivisionError(ArithmeticError): ... +class IndexError(LookupError): ... +class KeyError(LookupError): ... +class NotImplementedError(RuntimeError): ... +class IndentationError(SyntaxError): ... +class TabError(IndentationError): ... diff --git a/lang/lol/typeshed/stdlib/collections/__init__.pyi b/lang/lol/typeshed/stdlib/collections/__init__.pyi new file mode 100644 index 0000000..8815a4b --- /dev/null +++ b/lang/lol/typeshed/stdlib/collections/__init__.pyi @@ -0,0 +1,60 @@ +import sys +from typing import ( + Any, + Dict, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Optional, + Reversible, + Tuple, + Type, + TypeVar, + Union, + ValuesView, +) + +_S = TypeVar("_S") +_T = TypeVar("_T") +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") + +if sys.version_info >= (3, 7): + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + rename: bool = ..., + module: Optional[str] = ..., + defaults: Optional[Iterable[Any]] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +else: + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + verbose: bool = ..., + rename: bool = ..., + module: Optional[str] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +class _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]): + def __reversed__(self) -> Iterator[_KT]: ... + +class _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]): + def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ... + +class _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]): + def __reversed__(self) -> Iterator[_VT]: ... + +class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]): + def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ... + def move_to_end(self, key: _KT, last: bool = ...) -> None: ... + def copy(self: _S) -> _S: ... + def __reversed__(self) -> Iterator[_KT]: ... + def keys(self) -> _OrderedDictKeysView[_KT]: ... + def items(self) -> _OrderedDictItemsView[_KT, _VT]: ... + def values(self) -> _OrderedDictValuesView[_VT]: ... diff --git a/lang/lol/typeshed/stdlib/errno.pyi b/lang/lol/typeshed/stdlib/errno.pyi new file mode 100644 index 0000000..6ff1c70 --- /dev/null +++ b/lang/lol/typeshed/stdlib/errno.pyi @@ -0,0 +1,26 @@ +from typing import Mapping + +errorcode: Mapping[int, str] + +EACCES: int +EADDRINUSE: int +EAGAIN: int +EALREADY: int +EBADF: int +ECONNABORTED: int +ECONNREFUSED: int +ECONNRESET: int +EEXIST: int +EHOSTUNREACH: int +EINPROGRESS: int +EINVAL: int +EIO: int +EISDIR: int +ENOBUFS: int +ENODEV: int +ENOENT: int +ENOMEM: int +ENOTCONN: int +EOPNOTSUPP: int +EPERM: int +ETIMEDOUT: int diff --git a/lang/lol/typeshed/stdlib/gc.pyi b/lang/lol/typeshed/stdlib/gc.pyi new file mode 100644 index 0000000..d91bd02 --- /dev/null +++ b/lang/lol/typeshed/stdlib/gc.pyi @@ -0,0 +1,68 @@ +"""crwdns328732:0crwdne328732:0 (crwdns328730:0crwdne328730:0)""" +from typing import overload + +def enable() -> None: + """crwdns328736:0crwdne328736:0 (crwdns328734:0crwdne328734:0)""" + ... + +def disable() -> None: + """crwdns328740:0crwdne328740:0 (crwdns328738:0crwdne328738:0) + +Heap memory can still be allocated, +and garbage collection can still be initiated manually using ``gc.collect``.""" + +def collect() -> None: + """crwdns328744:0crwdne328744:0 (crwdns328742:0crwdne328742:0)""" + ... + +def mem_alloc() -> int: + """crwdns328748:0crwdne328748:0 (crwdns328746:0crwdne328746:0) + +:return: The number of bytes allocated. + +This function is MicroPython extension.""" + ... + +def mem_free() -> int: + """crwdns328752:0crwdne328752:0 (crwdns328750:0crwdne328750:0) + +:return: The number of bytes free. + +This function is MicroPython extension.""" + ... + +@overload +def threshold() -> int: + """crwdns328756:0crwdne328756:0 (crwdns328754:0crwdne328754:0) + +:return: The GC allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different.""" + ... + +@overload +def threshold(amount: int) -> None: + """crwdns328760:0crwdne328760:0 (crwdns328758:0crwdne328758:0) + +Normally, a collection is triggered only when a new allocation +cannot be satisfied, i.e. on an out-of-memory (OOM) condition. +If this function is called, in addition to OOM, a collection +will be triggered each time after ``amount`` bytes have been +allocated (in total, since the previous time such an amount of bytes +have been allocated). ``amount`` is usually specified as less than the +full heap size, with the intention to trigger a collection earlier than when the +heap becomes exhausted, and in the hope that an early collection will prevent +excessive memory fragmentation. This is a heuristic measure, the effect +of which will vary from application to application, as well as +the optimal value of the ``amount`` parameter. + +A value of -1 means a disabled allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different. + +:param amount: (crwdns328762:0crwdne328762:0) crwdns328764:0crwdne328764:0""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/log.pyi b/lang/lol/typeshed/stdlib/log.pyi new file mode 100644 index 0000000..725cc6e --- /dev/null +++ b/lang/lol/typeshed/stdlib/log.pyi @@ -0,0 +1,89 @@ +"""crwdns328768:0crwdne328768:0 (crwdns328766:0crwdne328766:0)""" +from typing import Literal, Mapping, Optional, Union, overload +MILLISECONDS = 1 +"""crwdns328772:0crwdne328772:0 (crwdns328770:0crwdne328770:0)""" +SECONDS = 10 +"""crwdns328776:0crwdne328776:0 (crwdns328774:0crwdne328774:0)""" +MINUTES = 600 +"""crwdns328780:0crwdne328780:0 (crwdns328778:0crwdne328778:0)""" +HOURS = 36000 +"""crwdns328784:0crwdne328784:0 (crwdns328782:0crwdne328782:0)""" +DAYS = 864000 +"""crwdns328788:0crwdne328788:0 (crwdns328786:0crwdne328786:0)""" + +def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None: + """crwdns328792:0crwdne328792:0 (crwdns328790:0crwdne328790:0) + +Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)`` + +Ideally this function should be called a single time, before any data is +logged, to configure the data table header once. + +If a log file already exists when the program starts, or if this function +is called multiple times, it will check the labels already defined in the +log file. If this function call contains any new labels not already +present, it will generate a new header row with the additional columns. + +By default the first column contains a timestamp for each row. The time +unit can be selected via the timestamp argument. + +:param *labels: (crwdns335772:0crwdne335772:0) crwdns335774:0crwdne335774:0 +:param timestamp: (crwdns328798:0crwdne328798:0) crwdns335776:0``log.MILLISECONDS``crwdnd335776:0``log.SECONDS``crwdnd335776:0``log.MINUTES``crwdnd335776:0``log.HOURS``crwdnd335776:0``log.DAYS``crwdnd335776:0``None``crwdnd335776:0``log.SECONDS``crwdne335776:0""" + ... + +@overload +def add(data_dictionary: Optional[Mapping[str, Union[str, int, float]]]) -> None: + """crwdns328804:0crwdne328804:0 (crwdns328802:0crwdne328802:0) + +Example: ``log.add({ 'temp': temperature() })`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row. + +:param data_dictionary: (crwdns335778:0crwdne335778:0) crwdns335780:0crwdne335780:0""" + ... + +@overload +def add(**kwargs: Union[str, int, float]) -> None: + """crwdns328812:0crwdne328812:0 (crwdns328810:0crwdne328810:0) + +Example: ``log.add(temp=temperature())`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row.""" + ... + +def delete(full=False): + """crwdns328816:0crwdne328816:0 (crwdns328814:0crwdne328814:0) + +Example: ``log.delete()`` + +To add the log headers again the ``set_labels`` function should to be called after this function. + +There are two erase modes; “full” completely removes the data from the physical storage, +and “fast” invalidates the data without removing it. + +:param full: (crwdns328818:0crwdne328818:0) crwdns335782:0``True``crwdnd335782:0``False``crwdne335782:0""" + ... + +def set_mirroring(serial: bool): + """crwdns335784:0crwdne335784:0 (crwdns328822:0crwdne328822:0) + +Example: ``log.set_mirroring(True)`` + +Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. + +:param serial: (crwdns328826:0crwdne328826:0) crwdns335786:0``True``crwdne335786:0""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/love.pyi b/lang/lol/typeshed/stdlib/love.pyi new file mode 100644 index 0000000..9018624 --- /dev/null +++ b/lang/lol/typeshed/stdlib/love.pyi @@ -0,0 +1 @@ +def badaboom() -> None: ... diff --git a/lang/lol/typeshed/stdlib/machine.pyi b/lang/lol/typeshed/stdlib/machine.pyi new file mode 100644 index 0000000..6dd178c --- /dev/null +++ b/lang/lol/typeshed/stdlib/machine.pyi @@ -0,0 +1,84 @@ +"""crwdns328832:0crwdne328832:0 (crwdns328830:0crwdne328830:0)""" +from typing import Any +from .microbit import MicroBitDigitalPin + +def unique_id() -> bytes: + """crwdns328836:0crwdne328836:0 (crwdns328834:0crwdne328834:0) + +Example: ``machine.unique_id()`` + +:return: An identifier that varies from one board instance to another.""" + ... + +def reset() -> None: + """crwdns328840:0crwdne328840:0 (crwdns328838:0crwdne328838:0) + +Example: ``machine.reset()``""" + ... + +def freq() -> int: + """crwdns328844:0crwdne328844:0 (crwdns328842:0crwdne328842:0) + +Example: ``machine.freq()`` + +:return: The CPU frequency.""" + ... + +def disable_irq() -> Any: + """crwdns328848:0crwdne328848:0 (crwdns328846:0crwdne328846:0) + +Example: ``interrupt_state = machine.disable_irq()`` + +:return: the previous IRQ state which should be considered an opaque value + +The return value should be passed to the ``enable_irq`` function to restore +interrupts to their original state.""" + ... + +def enable_irq(state: Any) -> None: + """crwdns328852:0crwdne328852:0 (crwdns328850:0crwdne328850:0) + +Example: ``machine.enable_irq(interrupt_state)`` + +:param state: (crwdns328854:0crwdne328854:0) crwdns328856:0``disable_irq``crwdne328856:0""" + ... + +def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int: + """crwdns328860:0crwdne328860:0 (crwdns328858:0crwdne328858:0) + +Example: ``time_pulse_us(pin0, 1)`` + +If the current input value of the pin is different to ``pulse_level``, the +function first waits until the pin input becomes equal to +``pulse_level``, then times the duration that the pin is equal to +``pulse_level``. If the pin is already equal to ``pulse_level`` then timing +starts straight away. + +:param pin: (crwdns328862:0crwdne328862:0) crwdns328864:0crwdne328864:0 +:param pulse_level: (crwdns328866:0crwdne328866:0) crwdns328868:0crwdne328868:0 +:param timeout_us: (crwdns328870:0crwdne328870:0) crwdns328872:0crwdne328872:0 +:return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end""" + ... + +class mem: + """crwdns328876:0``mem8``crwdnd328876:0``mem16``crwdnd328876:0``mem32``crwdne328876:0 (crwdns328874:0crwdne328874:0)""" + + def __getitem__(self, address: int) -> int: + """crwdns328880:0crwdne328880:0 (crwdns328878:0crwdne328878:0) + +:param address: (crwdns328882:0crwdne328882:0) crwdns328884:0crwdne328884:0 +:return: The value at that address as an integer.""" + ... + + def __setitem__(self, address: int, value: int) -> None: + """crwdns328888:0crwdne328888:0 (crwdns328886:0crwdne328886:0) + +:param address: (crwdns328890:0crwdne328890:0) crwdns328892:0crwdne328892:0 +:param value: (crwdns328894:0crwdne328894:0) crwdns328896:0crwdne328896:0""" + ... +mem8: mem +"""crwdns328900:0crwdne328900:0 (crwdns328898:0crwdne328898:0)""" +mem16: mem +"""crwdns328904:0crwdne328904:0 (crwdns328902:0crwdne328902:0)""" +mem32: mem +"""crwdns328908:0crwdne328908:0 (crwdns328906:0crwdne328906:0)""" \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/math.pyi b/lang/lol/typeshed/stdlib/math.pyi new file mode 100644 index 0000000..9373c19 --- /dev/null +++ b/lang/lol/typeshed/stdlib/math.pyi @@ -0,0 +1,246 @@ +"""crwdns328912:0crwdne328912:0 (crwdns328910:0crwdne328910:0)""" +from typing import Tuple + +def acos(x: float) -> float: + """crwdns328916:0crwdne328916:0 (crwdns328914:0crwdne328914:0) + +Example: ``math.acos(1)`` + +:param x: (crwdns328918:0crwdne328918:0) crwdns328920:0crwdne328920:0 +:return: The inverse cosine of ``x``""" + ... + +def asin(x: float) -> float: + """crwdns328924:0crwdne328924:0 (crwdns328922:0crwdne328922:0) + +Example: ``math.asin(0)`` + +:param x: (crwdns328926:0crwdne328926:0) crwdns328928:0crwdne328928:0 +:return: The inverse sine of ``x``""" + ... + +def atan(x: float) -> float: + """crwdns328932:0crwdne328932:0 (crwdns328930:0crwdne328930:0) + +Example: ``math.atan(0)`` + +:param x: (crwdns328934:0crwdne328934:0) crwdns328936:0crwdne328936:0 +:return: The inverse tangent of ``x``""" + ... + +def atan2(y: float, x: float) -> float: + """crwdns328940:0``y/x``crwdne328940:0 (crwdns328938:0crwdne328938:0) + +Example: ``math.atan2(0, -1)`` + +:param y: (crwdns328942:0crwdne328942:0) crwdns328944:0crwdne328944:0 +:param x: (crwdns328942:0crwdne328942:0) crwdns328944:0crwdne328944:0 +:return: The principal value of the inverse tangent of ``y/x``""" + ... + +def ceil(x: float) -> float: + """crwdns328952:0crwdne328952:0 (crwdns328950:0crwdne328950:0) + +Example: ``math.ceil(0.1)`` + +:param x: (crwdns328954:0crwdne328954:0) crwdns328956:0crwdne328956:0 +:return: ``x`` rounded towards positive infinity.""" + ... + +def copysign(x: float, y: float) -> float: + """crwdns328960:0``x``crwdnd328960:0``y``crwdne328960:0 (crwdns328958:0crwdne328958:0) + +Example: ``math.copysign(1, -1)`` + +:param x: (crwdns328962:0crwdne328962:0) crwdns328964:0crwdne328964:0 +:param y: (crwdns328966:0crwdne328966:0) crwdns328968:0crwdne328968:0 +:return: ``x`` with the sign of ``y``""" + ... + +def cos(x: float) -> float: + """crwdns328972:0``x``crwdne328972:0 (crwdns328970:0crwdne328970:0) + +Example: ``math.cos(0)`` + +:param x: (crwdns328974:0crwdne328974:0) crwdns328976:0crwdne328976:0 +:return: The cosine of ``x``""" + ... + +def degrees(x: float) -> float: + """crwdns328980:0crwdne328980:0 (crwdns328978:0crwdne328978:0) + +Example: ``math.degrees(2 * math.pi)`` + +:param x: (crwdns328982:0crwdne328982:0) crwdns328984:0crwdne328984:0 +:return: The value converted to degrees""" + ... + +def exp(x: float) -> float: + """crwdns328988:0``x``crwdne328988:0 (crwdns328986:0crwdne328986:0) + +Example: ``math.exp(1)`` + +:param x: (crwdns328990:0crwdne328990:0) crwdns328992:0crwdne328992:0 +:return: The exponential of ``x``.""" + ... + +def fabs(x: float) -> float: + """crwdns328996:0``x``crwdne328996:0 (crwdns328994:0crwdne328994:0) + +Example: ``math.fabs(-0.1)`` + +:param x: (crwdns328998:0crwdne328998:0) crwdns329000:0crwdne329000:0 +:return: The absolute value of ``x``""" + ... + +def floor(x: float) -> int: + """crwdns329004:0crwdne329004:0 (crwdns329002:0crwdne329002:0) + +Example: ``math.floor(0.9)`` + +:param x: (crwdns329006:0crwdne329006:0) crwdns329008:0crwdne329008:0 +:return: ``x`` rounded towards negative infinity.""" + ... + +def fmod(x: float, y: float) -> float: + """crwdns329012:0``x/y``crwdne329012:0 (crwdns329010:0crwdne329010:0) + +Example: ``math.fmod(10, 3)`` + +:param x: (crwdns329014:0crwdne329014:0) crwdns329016:0crwdne329016:0 +:param y: (crwdns329018:0crwdne329018:0) crwdns329020:0crwdne329020:0""" + ... + +def frexp(x: float) -> Tuple[float, int]: + """crwdns329024:0crwdne329024:0 (crwdns329022:0crwdne329022:0) + +Example: ``mantissa, exponent = math.frexp(2)`` + +The returned value is the tuple ``(m, e)`` such that ``x == m * 2**e`` +exactly. If ``x == 0`` then the function returns ``(0.0, 0)``, otherwise +the relation ``0.5 <= abs(m) < 1`` holds. + +:param x: (crwdns329026:0crwdne329026:0) crwdns329028:0crwdne329028:0 +:return: A tuple of length two containing its mantissa then exponent""" + ... + +def isfinite(x: float) -> bool: + """crwdns329032:0crwdne329032:0 (crwdns329030:0crwdne329030:0) + +Example: ``math.isfinite(float('inf'))`` + +:param x: (crwdns329034:0crwdne329034:0) crwdns329036:0crwdne329036:0 +:return: ``True`` if ``x`` is finite, ``False`` otherwise.""" + ... + +def isinf(x: float) -> bool: + """crwdns329040:0crwdne329040:0 (crwdns329038:0crwdne329038:0) + +Example: ``math.isinf(float('-inf'))`` + +:param x: (crwdns329042:0crwdne329042:0) crwdns329044:0crwdne329044:0 +:return: ``True`` if ``x`` is infinite, ``False`` otherwise.""" + ... + +def isnan(x: float) -> bool: + """crwdns329048:0crwdne329048:0 (crwdns329046:0crwdne329046:0) + +Example: ``math.isnan(float('nan'))`` + +:param x: (crwdns329050:0crwdne329050:0) crwdns329052:0crwdne329052:0 +:return: ``True`` if ``x`` is not-a-number (NaN), ``False`` otherwise.""" + ... + +def ldexp(x: float, exp: int) -> float: + """crwdns329056:0crwdne329056:0 (crwdns329054:0crwdne329054:0) + +Example: ``math.ldexp(0.5, 2)`` + +:param x: (crwdns329062:0crwdne329062:0) crwdns329064:0crwdne329064:0 +:param exp: (crwdns329058:0crwdne329058:0) crwdns329060:0crwdne329060:0 +:return: ``x * (2**exp)``""" + ... + +def log(x: float, base: float=e) -> float: + """crwdns329068:0``x``crwdne329068:0 (crwdns329066:0crwdne329066:0) + +Example: ``math.log(math.e)`` + +With one argument, return the natural logarithm of x (to base e). + +With two arguments, return the logarithm of x to the given base, calculated as ``log(x)/log(base)``. + +:param x: (crwdns329074:0crwdne329074:0) crwdns329076:0crwdne329076:0 +:param base: (crwdns329070:0crwdne329070:0) crwdns329072:0crwdne329072:0 +:return: The natural logarithm of ``x``""" + ... + +def modf(x: float) -> Tuple[float, float]: + """crwdns329080:0``x``crwdne329080:0 (crwdns329078:0crwdne329078:0) + +Example: ``fractional, integral = math.modf(1.5)`` + +:param x: (crwdns329082:0crwdne329082:0) crwdns329084:0crwdne329084:0 +:return: A tuple of two floats representing the fractional then integral parts of ``x``. + +Both the fractional and integral values have the same sign as ``x``.""" + ... + +def pow(x: float, y: float) -> float: + """crwdns329088:0``x``crwdnd329088:0``y``crwdne329088:0 (crwdns329086:0crwdne329086:0) + +Example: ``math.pow(4, 0.5)`` + +:param x: (crwdns329090:0crwdne329090:0) crwdns329092:0crwdne329092:0 +:param y: (crwdns329094:0crwdne329094:0) crwdns329096:0crwdne329096:0 +:return: ``x`` to the power of ``y``""" + ... + +def radians(x: float) -> float: + """crwdns329100:0crwdne329100:0 (crwdns329098:0crwdne329098:0) + +Example: ``math.radians(360)`` + +:param x: (crwdns329102:0crwdne329102:0) crwdns329104:0crwdne329104:0 +:return: The value converted to radians""" + ... + +def sin(x: float) -> float: + """crwdns329108:0``x``crwdne329108:0 (crwdns329106:0crwdne329106:0) + +Example: ``math.sin(math.pi/2)`` + +:param x: (crwdns329110:0crwdne329110:0) crwdns329112:0crwdne329112:0 +:return: The sine of ``x``""" + ... + +def sqrt(x: float) -> float: + """crwdns329116:0``x``crwdne329116:0 (crwdns329114:0crwdne329114:0) + +Example: ``math.sqrt(4)`` + +:param x: (crwdns329118:0crwdne329118:0) crwdns329120:0crwdne329120:0 +:return: The square root of ``x``""" + ... + +def tan(x: float) -> float: + """crwdns329124:0``x``crwdne329124:0 (crwdns329122:0crwdne329122:0) + +Example: ``math.tan(0)`` + +:param x: (crwdns329126:0crwdne329126:0) crwdns329128:0crwdne329128:0 +:return: The tangent of ``x``.""" + ... + +def trunc(x: float) -> int: + """crwdns329132:0crwdne329132:0 (crwdns329130:0crwdne329130:0) + +Example: ``math.trunc(-0.9)`` + +:param x: (crwdns329134:0crwdne329134:0) crwdns329136:0crwdne329136:0 +:return: ``x`` rounded towards zero.""" + ... +e: float +"""crwdns329140:0crwdne329140:0 (crwdns329138:0crwdne329138:0)""" +pi: float +"""crwdns329144:0crwdne329144:0 (crwdns329142:0crwdne329142:0)""" \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/__init__.pyi b/lang/lol/typeshed/stdlib/microbit/__init__.pyi new file mode 100644 index 0000000..f0c5493 --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/__init__.pyi @@ -0,0 +1,706 @@ +"""crwdns329148:0crwdne329148:0 (crwdns329146:0crwdne329146:0)""" +from typing import Any, Callable, List, Optional, Tuple, Union, overload +from _typeshed import ReadableBuffer +from . import accelerometer as accelerometer +from . import audio as audio +from . import compass as compass +from . import display as display +from . import i2c as i2c +from . import microphone as microphone +from . import speaker as speaker +from . import spi as spi +from . import uart as uart + +def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: + """crwdns335788:0crwdne335788:0 (crwdns329150:0crwdne329150:0) + +Example: ``run_every(my_logging, min=5)`` + +``run_every`` can be used in two ways: + +As a Decorator - placed on top of the function to schedule. For example:: + + @run_every(h=1, min=20, s=30, ms=50) + def my_function(): + # Do something here + +As a Function - passing the callback as a positional argument. For example:: + + def my_function(): + # Do something here + run_every(my_function, s=30) + +Each argument corresponds to a different time unit and they are additive. +So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. + +When an exception is thrown inside the callback function it deschedules the +function. To avoid this you can catch exceptions with ``try/except``. + +:param callback: (crwdns329154:0crwdne329154:0) crwdns335790:0crwdne335790:0 +:param days: (crwdns329158:0crwdne329158:0) crwdns335792:0crwdne335792:0 +:param h: (crwdns329162:0crwdne329162:0) crwdns335794:0crwdne335794:0 +:param min: (crwdns329166:0crwdne329166:0) crwdns335796:0crwdne335796:0 +:param s: (crwdns329174:0crwdne329174:0) crwdns335800:0crwdne335800:0 +:param ms: (crwdns329170:0crwdne329170:0) crwdns335798:0crwdne335798:0""" + +def panic(n: int) -> None: + """crwdns329180:0crwdne329180:0 (crwdns329178:0crwdne329178:0) + +Example: ``panic(127)`` + +:param n: (crwdns329182:0crwdne329182:0) crwdns329184:0crwdne329184:0 + +Requires restart.""" + +def reset() -> None: + """crwdns329188:0crwdne329188:0 (crwdns329186:0crwdne329186:0)""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[int, int]) -> int: + """crwdns336078:0crwdne336078:0 (crwdns336076:0crwdne336076:0) + +Example: ``volume = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255))`` + +For example, to convert an accelerometer X value to a speaker volume. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. + + temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) + +:param value: (crwdns336088:0crwdne336088:0) crwdns336090:0crwdne336090:0 +:param from_: (crwdns336080:0crwdne336080:0) crwdns336082:0crwdne336082:0 +:param to: (crwdns336084:0crwdne336084:0) crwdns336086:0crwdne336086:0 +:return: The ``value`` converted to the ``to`` range.""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[float, float]) -> float: + """crwdns336094:0crwdne336094:0 (crwdns336092:0crwdne336092:0) + +Example: ``temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0))`` + +For example, to convert temperature from a Celsius scale to Fahrenheit. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. +If they are both integers (i.e ``10``), it will return an integer:: + + returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) + +:param value: (crwdns336104:0crwdne336104:0) crwdns336106:0crwdne336106:0 +:param from_: (crwdns336096:0crwdne336096:0) crwdns336098:0crwdne336098:0 +:param to: (crwdns336100:0crwdne336100:0) crwdns336102:0crwdne336102:0 +:return: The ``value`` converted to the ``to`` range.""" + +def sleep(n: float) -> None: + """crwdns329192:0``n``crwdne329192:0 (crwdns329190:0crwdne329190:0) + +Example: ``sleep(1000)`` + +:param n: (crwdns329194:0crwdne329194:0) crwdns329196:0crwdne329196:0 + +One second is 1000 milliseconds, so:: + + microbit.sleep(1000) + +will pause the execution for one second.""" + +def running_time() -> int: + """crwdns329200:0crwdne329200:0 (crwdns329198:0crwdne329198:0) + +:return: The number of milliseconds since the board was switched on or restarted.""" + +def temperature() -> int: + """crwdns329204:0crwdne329204:0 (crwdns329202:0crwdne329202:0)""" + +def set_volume(v: int) -> None: + """crwdns329208:0crwdne329208:0 (crwdns329206:0crwdne329206:0) + +Example: ``set_volume(127)`` + +:param v: (crwdns329210:0crwdne329210:0) crwdns329212:0crwdne329212:0 + +Out of range values will be clamped to 0 or 255. + +**V2** only.""" + ... + +class Button: + """crwdns329216:0``button_a``crwdnd329216:0``button_b``crwdne329216:0 (crwdns329214:0crwdne329214:0)""" + + def is_pressed(self) -> bool: + """crwdns329220:0crwdne329220:0 (crwdns329218:0crwdne329218:0) + +:return: ``True`` if the specified button ``button`` is pressed, and ``False`` otherwise.""" + ... + + def was_pressed(self) -> bool: + """crwdns329224:0crwdne329224:0 (crwdns329222:0crwdne329222:0) + +Calling this method will clear the press state so +that the button must be pressed again before this method will return +``True`` again. + +:return: ``True`` if the specified button ``button`` was pressed, and ``False`` otherwise""" + ... + + def get_presses(self) -> int: + """crwdns329228:0crwdne329228:0 (crwdns329226:0crwdne329226:0) + +:return: The number of presses since the device started or the last time this method was called""" + ... +button_a: Button +"""crwdns329232:0``Button``crwdne329232:0 (crwdns329230:0crwdne329230:0)""" +button_b: Button +"""crwdns329236:0``Button``crwdne329236:0 (crwdns329234:0crwdne329234:0)""" + +class MicroBitDigitalPin: + """crwdns329240:0crwdne329240:0 (crwdns329238:0crwdne329238:0) + +Some pins support analog and touch features using the ``MicroBitAnalogDigitalPin`` and ``MicroBitTouchPin`` subclasses.""" + NO_PULL: int + PULL_UP: int + PULL_DOWN: int + + def read_digital(self) -> int: + """crwdns329244:0crwdne329244:0 (crwdns329242:0crwdne329242:0) + +Example: ``value = pin0.read_digital()`` + +:return: 1 if the pin is high, and 0 if it's low.""" + ... + + def write_digital(self, value: int) -> None: + """crwdns329248:0crwdne329248:0 (crwdns329246:0crwdne329246:0) + +Example: ``pin0.write_digital(1)`` + +:param value: (crwdns329250:0crwdne329250:0) crwdns329252:0crwdne329252:0""" + ... + + def set_pull(self, value: int) -> None: + """crwdns329256:0``PULL_UP``crwdnd329256:0``PULL_DOWN``crwdnd329256:0``NO_PULL``crwdne329256:0 (crwdns329254:0crwdne329254:0) + +Example: ``pin0.set_pull(pin0.PULL_UP)`` + +:param value: (crwdns329258:0crwdne329258:0) crwdns329260:0``pin0.PULL_UP``crwdne329260:0""" + ... + + def get_pull(self) -> int: + """crwdns329264:0crwdne329264:0 (crwdns329262:0crwdne329262:0) + +Example: ``pin0.get_pull()`` + +:return: ``NO_PULL``, ``PULL_DOWN``, or ``PULL_UP`` + +These are set using the ``set_pull()`` method or automatically configured +when a pin mode requires it.""" + ... + + def get_mode(self) -> str: + """crwdns329268:0crwdne329268:0 (crwdns329266:0crwdne329266:0) + +Example: ``pin0.get_mode()`` + +When a pin is used for a specific function, like +writing a digital value, or reading an analog value, the pin mode +changes. + +:return: ``"unused"``, ``"analog"``, ``"read_digital"``, ``"write_digital"``, ``"display"``, ``"button"``, ``"music"``, ``"audio"``, ``"touch"``, ``"i2c"``, or ``"spi"``""" + ... + + def write_analog(self, value: int) -> None: + """crwdns329272:0``value``crwdne329272:0 (crwdns329270:0crwdne329270:0) + +Example: ``pin0.write_analog(254)`` + +:param value: (crwdns329274:0crwdne329274:0) crwdns329276:0crwdne329276:0""" + + def set_analog_period(self, period: int) -> None: + """crwdns329280:0``period``crwdne329280:0 (crwdns329278:0crwdne329278:0) + +Example: ``pin0.set_analog_period(10)`` + +:param period: (crwdns329282:0crwdne329282:0) crwdns329284:0crwdne329284:0""" + + def set_analog_period_microseconds(self, period: int) -> None: + """crwdns329288:0``period``crwdne329288:0 (crwdns329286:0crwdne329286:0) + +Example: ``pin0.set_analog_period_microseconds(512)`` + +:param period: (crwdns329290:0crwdne329290:0) crwdns329292:0crwdne329292:0""" + +class MicroBitAnalogDigitalPin(MicroBitDigitalPin): + """crwdns329296:0crwdne329296:0 (crwdns329294:0crwdne329294:0)""" + + def read_analog(self) -> int: + """crwdns329300:0crwdne329300:0 (crwdns329298:0crwdne329298:0) + +Example: ``pin0.read_analog()`` + +:return: An integer between 0 (meaning 0V) and 1023 (meaning 3.3V).""" + +class MicroBitTouchPin(MicroBitAnalogDigitalPin): + """crwdns329304:0crwdne329304:0 (crwdns329302:0crwdne329302:0)""" + CAPACITIVE: int + RESISTIVE: int + + def is_touched(self) -> bool: + """crwdns329308:0crwdne329308:0 (crwdns329306:0crwdne329306:0) + +Example: ``pin0.is_touched()`` + +The default touch mode for the pins on the edge connector is ``resistive``. +The default for the logo pin **V2** is ``capacitive``. + +**Resistive touch** +This test is done by measuring how much resistance there is between the +pin and ground. A low resistance gives a reading of ``True``. To get +a reliable reading using a finger you may need to touch the ground pin +with another part of your body, for example your other hand. + +**Capacitive touch** +This test is done by interacting with the electric field of a capacitor +using a finger as a conductor. `Capacitive touch +`_ +does not require you to make a ground connection as part of a circuit. + +:return: ``True`` if the pin is being touched with a finger, otherwise return ``False``.""" + ... + + def set_touch_mode(self, value: int) -> None: + """crwdns329312:0crwdne329312:0 (crwdns329310:0crwdne329310:0) + +Example: ``pin0.set_touch_mode(pin0.CAPACITIVE)`` + +The default touch mode for the pins on the edge connector is +``resistive``. The default for the logo pin **V2** is ``capacitive``. + +:param value: (crwdns329314:0crwdne329314:0) crwdns329316:0``CAPACITIVE``crwdnd329316:0``RESISTIVE``crwdne329316:0""" + ... +pin0: MicroBitTouchPin +"""crwdns329320:0crwdne329320:0 (crwdns329318:0crwdne329318:0)""" +pin1: MicroBitTouchPin +"""crwdns329324:0crwdne329324:0 (crwdns329322:0crwdne329322:0)""" +pin2: MicroBitTouchPin +"""crwdns329328:0crwdne329328:0 (crwdns329326:0crwdne329326:0)""" +pin3: MicroBitAnalogDigitalPin +"""crwdns329332:0crwdne329332:0 (crwdns329330:0crwdne329330:0)""" +pin4: MicroBitAnalogDigitalPin +"""crwdns329336:0crwdne329336:0 (crwdns329334:0crwdne329334:0)""" +pin5: MicroBitDigitalPin +"""crwdns329340:0crwdne329340:0 (crwdns329338:0crwdne329338:0)""" +pin6: MicroBitDigitalPin +"""crwdns329344:0crwdne329344:0 (crwdns329342:0crwdne329342:0)""" +pin7: MicroBitDigitalPin +"""crwdns329348:0crwdne329348:0 (crwdns329346:0crwdne329346:0)""" +pin8: MicroBitDigitalPin +"""crwdns329352:0crwdne329352:0 (crwdns329350:0crwdne329350:0)""" +pin9: MicroBitDigitalPin +"""crwdns329356:0crwdne329356:0 (crwdns329354:0crwdne329354:0)""" +pin10: MicroBitAnalogDigitalPin +"""crwdns329360:0crwdne329360:0 (crwdns329358:0crwdne329358:0)""" +pin11: MicroBitDigitalPin +"""crwdns329364:0crwdne329364:0 (crwdns329362:0crwdne329362:0)""" +pin12: MicroBitDigitalPin +"""crwdns329368:0crwdne329368:0 (crwdns329366:0crwdne329366:0)""" +pin13: MicroBitDigitalPin +"""crwdns329372:0crwdne329372:0 (crwdns329370:0crwdne329370:0)""" +pin14: MicroBitDigitalPin +"""crwdns329376:0crwdne329376:0 (crwdns329374:0crwdne329374:0)""" +pin15: MicroBitDigitalPin +"""crwdns329380:0crwdne329380:0 (crwdns329378:0crwdne329378:0)""" +pin16: MicroBitDigitalPin +"""crwdns329384:0crwdne329384:0 (crwdns329382:0crwdne329382:0)""" +pin19: MicroBitDigitalPin +"""crwdns329388:0crwdne329388:0 (crwdns329386:0crwdne329386:0)""" +pin20: MicroBitDigitalPin +"""crwdns329392:0crwdne329392:0 (crwdns329390:0crwdne329390:0)""" +pin_logo: MicroBitTouchPin +"""crwdns329396:0crwdne329396:0 (crwdns329394:0crwdne329394:0)""" +pin_speaker: MicroBitAnalogDigitalPin +"""crwdns329400:0crwdne329400:0 (crwdns329398:0crwdne329398:0) + +This API is intended only for use in Pulse-Width Modulation pin operations e.g. pin_speaker.write_analog(128). +""" + +class Image: + """crwdns329404:0crwdne329404:0 (crwdns329402:0crwdne329402:0) + +Given an image object it's possible to display it via the ``display`` API:: + + display.show(Image.HAPPY)""" + HEART: Image + """crwdns329408:0crwdne329408:0 (crwdns329406:0crwdne329406:0)""" + HEART_SMALL: Image + """crwdns329412:0crwdne329412:0 (crwdns329410:0crwdne329410:0)""" + HAPPY: Image + """crwdns329416:0crwdne329416:0 (crwdns329414:0crwdne329414:0)""" + SMILE: Image + """crwdns329420:0crwdne329420:0 (crwdns329418:0crwdne329418:0)""" + SAD: Image + """crwdns329424:0crwdne329424:0 (crwdns329422:0crwdne329422:0)""" + CONFUSED: Image + """crwdns329428:0crwdne329428:0 (crwdns329426:0crwdne329426:0)""" + ANGRY: Image + """crwdns329432:0crwdne329432:0 (crwdns329430:0crwdne329430:0)""" + ASLEEP: Image + """crwdns329436:0crwdne329436:0 (crwdns329434:0crwdne329434:0)""" + SURPRISED: Image + """crwdns329440:0crwdne329440:0 (crwdns329438:0crwdne329438:0)""" + SILLY: Image + """crwdns329444:0crwdne329444:0 (crwdns329442:0crwdne329442:0)""" + FABULOUS: Image + """crwdns329448:0crwdne329448:0 (crwdns329446:0crwdne329446:0)""" + MEH: Image + """crwdns329452:0crwdne329452:0 (crwdns329450:0crwdne329450:0)""" + YES: Image + """crwdns329456:0crwdne329456:0 (crwdns329454:0crwdne329454:0)""" + NO: Image + """crwdns329460:0crwdne329460:0 (crwdns329458:0crwdne329458:0)""" + CLOCK12: Image + """crwdns329464:0crwdne329464:0 (crwdns329462:0crwdne329462:0)""" + CLOCK11: Image + """crwdns329468:0crwdne329468:0 (crwdns329466:0crwdne329466:0)""" + CLOCK10: Image + """crwdns329472:0crwdne329472:0 (crwdns329470:0crwdne329470:0)""" + CLOCK9: Image + """crwdns329476:0crwdne329476:0 (crwdns329474:0crwdne329474:0)""" + CLOCK8: Image + """crwdns329480:0crwdne329480:0 (crwdns329478:0crwdne329478:0)""" + CLOCK7: Image + """crwdns329484:0crwdne329484:0 (crwdns329482:0crwdne329482:0)""" + CLOCK6: Image + """crwdns329488:0crwdne329488:0 (crwdns329486:0crwdne329486:0)""" + CLOCK5: Image + """crwdns329492:0crwdne329492:0 (crwdns329490:0crwdne329490:0)""" + CLOCK4: Image + """crwdns329496:0crwdne329496:0 (crwdns329494:0crwdne329494:0)""" + CLOCK3: Image + """crwdns329500:0crwdne329500:0 (crwdns329498:0crwdne329498:0)""" + CLOCK2: Image + """crwdns329504:0crwdne329504:0 (crwdns329502:0crwdne329502:0)""" + CLOCK1: Image + """crwdns329508:0crwdne329508:0 (crwdns329506:0crwdne329506:0)""" + ARROW_N: Image + """crwdns329512:0crwdne329512:0 (crwdns329510:0crwdne329510:0)""" + ARROW_NE: Image + """crwdns329516:0crwdne329516:0 (crwdns329514:0crwdne329514:0)""" + ARROW_E: Image + """crwdns329520:0crwdne329520:0 (crwdns329518:0crwdne329518:0)""" + ARROW_SE: Image + """crwdns329524:0crwdne329524:0 (crwdns329522:0crwdne329522:0)""" + ARROW_S: Image + """crwdns329528:0crwdne329528:0 (crwdns329526:0crwdne329526:0)""" + ARROW_SW: Image + """crwdns329532:0crwdne329532:0 (crwdns329530:0crwdne329530:0)""" + ARROW_W: Image + """crwdns329536:0crwdne329536:0 (crwdns329534:0crwdne329534:0)""" + ARROW_NW: Image + """crwdns329540:0crwdne329540:0 (crwdns329538:0crwdne329538:0)""" + TRIANGLE: Image + """crwdns329544:0crwdne329544:0 (crwdns329542:0crwdne329542:0)""" + TRIANGLE_LEFT: Image + """crwdns329548:0crwdne329548:0 (crwdns329546:0crwdne329546:0)""" + CHESSBOARD: Image + """crwdns329552:0crwdne329552:0 (crwdns329550:0crwdne329550:0)""" + DIAMOND: Image + """crwdns329556:0crwdne329556:0 (crwdns329554:0crwdne329554:0)""" + DIAMOND_SMALL: Image + """crwdns329560:0crwdne329560:0 (crwdns329558:0crwdne329558:0)""" + SQUARE: Image + """crwdns329564:0crwdne329564:0 (crwdns329562:0crwdne329562:0)""" + SQUARE_SMALL: Image + """crwdns329568:0crwdne329568:0 (crwdns329566:0crwdne329566:0)""" + RABBIT: Image + """crwdns329572:0crwdne329572:0 (crwdns329570:0crwdne329570:0)""" + COW: Image + """crwdns329576:0crwdne329576:0 (crwdns329574:0crwdne329574:0)""" + MUSIC_CROTCHET: Image + """crwdns329580:0crwdne329580:0 (crwdns329578:0crwdne329578:0)""" + MUSIC_QUAVER: Image + """crwdns329584:0crwdne329584:0 (crwdns329582:0crwdne329582:0)""" + MUSIC_QUAVERS: Image + """crwdns329588:0crwdne329588:0 (crwdns329586:0crwdne329586:0)""" + PITCHFORK: Image + """crwdns329592:0crwdne329592:0 (crwdns329590:0crwdne329590:0)""" + XMAS: Image + """crwdns329596:0crwdne329596:0 (crwdns329594:0crwdne329594:0)""" + PACMAN: Image + """crwdns329600:0crwdne329600:0 (crwdns329598:0crwdne329598:0)""" + TARGET: Image + """crwdns329604:0crwdne329604:0 (crwdns329602:0crwdne329602:0)""" + TSHIRT: Image + """crwdns329608:0crwdne329608:0 (crwdns329606:0crwdne329606:0)""" + ROLLERSKATE: Image + """crwdns329612:0crwdne329612:0 (crwdns329610:0crwdne329610:0)""" + DUCK: Image + """crwdns329616:0crwdne329616:0 (crwdns329614:0crwdne329614:0)""" + HOUSE: Image + """crwdns329620:0crwdne329620:0 (crwdns329618:0crwdne329618:0)""" + TORTOISE: Image + """crwdns329624:0crwdne329624:0 (crwdns329622:0crwdne329622:0)""" + BUTTERFLY: Image + """crwdns329628:0crwdne329628:0 (crwdns329626:0crwdne329626:0)""" + STICKFIGURE: Image + """crwdns329632:0crwdne329632:0 (crwdns329630:0crwdne329630:0)""" + GHOST: Image + """crwdns329636:0crwdne329636:0 (crwdns329634:0crwdne329634:0)""" + SWORD: Image + """crwdns329640:0crwdne329640:0 (crwdns329638:0crwdne329638:0)""" + GIRAFFE: Image + """crwdns329644:0crwdne329644:0 (crwdns329642:0crwdne329642:0)""" + SKULL: Image + """crwdns329648:0crwdne329648:0 (crwdns329646:0crwdne329646:0)""" + UMBRELLA: Image + """crwdns329652:0crwdne329652:0 (crwdns329650:0crwdne329650:0)""" + SNAKE: Image + """crwdns329656:0crwdne329656:0 (crwdns329654:0crwdne329654:0)""" + SCISSORS: Image + """crwdns335820:0crwdne335820:0 (crwdns335818:0crwdne335818:0)""" + ALL_CLOCKS: List[Image] + """crwdns329660:0crwdne329660:0 (crwdns329658:0crwdne329658:0)""" + ALL_ARROWS: List[Image] + """crwdns329664:0crwdne329664:0 (crwdns329662:0crwdne329662:0)""" + + @overload + def __init__(self, string: str) -> None: + """crwdns329668:0crwdne329668:0 (crwdns329666:0crwdne329666:0) + +``string`` has to consist of digits 0-9 arranged into lines, +describing the image, for example:: + + image = Image("90009:" + "09090:" + "00900:" + "09090:" + "90009") + +will create a 5×5 image of an X. The end of a line is indicated by a +colon. It's also possible to use newlines (\\n) insead of the colons. + +:param string: (crwdns329670:0crwdne329670:0) crwdns329672:0crwdne329672:0""" + ... + + @overload + def __init__(self, width: int=5, height: int=5, buffer: ReadableBuffer=None) -> None: + """crwdns329676:0``width``crwdnd329676:0``height``crwdne329676:0 (crwdns329674:0crwdne329674:0) + +:param width: (crwdns329686:0crwdne329686:0) crwdns329688:0crwdne329688:0 +:param height: (crwdns329682:0crwdne329682:0) crwdns329684:0crwdne329684:0 +:param buffer: (crwdns329678:0crwdne329678:0) crwdns329680:0``width``crwdnd329680:0``height``crwdne329680:0 + +Examples:: + + Image(2, 2, b'\x08\x08\x08\x08') + Image(2, 2, bytearray([9,9,9,9])) + +These create 2 x 2 pixel images at full brightness.""" + ... + + def width(self) -> int: + """crwdns329692:0crwdne329692:0 (crwdns329690:0crwdne329690:0) + +:return: The number of columns in the image""" + ... + + def height(self) -> int: + """crwdns329696:0crwdne329696:0 (crwdns329694:0crwdne329694:0) + +:return: The number of rows in the image""" + ... + + def set_pixel(self, x: int, y: int, value: int) -> None: + """crwdns329700:0crwdne329700:0 (crwdns329698:0crwdne329698:0) + +Example: ``my_image.set_pixel(0, 0, 9)`` + +:param x: (crwdns329706:0crwdne329706:0) crwdns329708:0crwdne329708:0 +:param y: (crwdns329710:0crwdne329710:0) crwdns329712:0crwdne329712:0 +:param value: (crwdns329702:0crwdne329702:0) crwdns329704:0crwdne329704:0 + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def get_pixel(self, x: int, y: int) -> int: + """crwdns329716:0crwdne329716:0 (crwdns329714:0crwdne329714:0) + +Example: ``my_image.get_pixel(0, 0)`` + +:param x: (crwdns329718:0crwdne329718:0) crwdns329720:0crwdne329720:0 +:param y: (crwdns329722:0crwdne329722:0) crwdns329724:0crwdne329724:0 +:return: The brightness as an integer between 0 and 9.""" + ... + + def shift_left(self, n: int) -> Image: + """crwdns329728:0crwdne329728:0 (crwdns329726:0crwdne329726:0) + +Example: ``Image.HEART_SMALL.shift_left(1)`` + +:param n: (crwdns329730:0crwdne329730:0) crwdns329732:0crwdne329732:0 +:return: The shifted image""" + ... + + def shift_right(self, n: int) -> Image: + """crwdns329736:0crwdne329736:0 (crwdns329734:0crwdne329734:0) + +Example: ``Image.HEART_SMALL.shift_right(1)`` + +:param n: (crwdns329738:0crwdne329738:0) crwdns329740:0crwdne329740:0 +:return: The shifted image""" + ... + + def shift_up(self, n: int) -> Image: + """crwdns329744:0crwdne329744:0 (crwdns329742:0crwdne329742:0) + +Example: ``Image.HEART_SMALL.shift_up(1)`` + +:param n: (crwdns329746:0crwdne329746:0) crwdns329748:0crwdne329748:0 +:return: The shifted image""" + ... + + def shift_down(self, n: int) -> Image: + """crwdns329752:0crwdne329752:0 (crwdns329750:0crwdne329750:0) + +Example: ``Image.HEART_SMALL.shift_down(1)`` + +:param n: (crwdns329754:0crwdne329754:0) crwdns329756:0crwdne329756:0 +:return: The shifted image""" + ... + + def crop(self, x: int, y: int, w: int, h: int) -> Image: + """crwdns329760:0crwdne329760:0 (crwdns329758:0crwdne329758:0) + +Example: ``Image.HEART.crop(1, 1, 3, 3)`` + +:param x: (crwdns329770:0crwdne329770:0) crwdns329772:0crwdne329772:0 +:param y: (crwdns329774:0crwdne329774:0) crwdns329776:0crwdne329776:0 +:param w: (crwdns329766:0crwdne329766:0) crwdns329768:0crwdne329768:0 +:param h: (crwdns329762:0crwdne329762:0) crwdns329764:0crwdne329764:0 +:return: The new image""" + ... + + def copy(self) -> Image: + """crwdns329780:0crwdne329780:0 (crwdns329778:0crwdne329778:0) + +Example: ``Image.HEART.copy()`` + +:return: The new image""" + ... + + def invert(self) -> Image: + """crwdns329784:0crwdne329784:0 (crwdns329782:0crwdne329782:0) + +Example: ``Image.SMALL_HEART.invert()`` + +:return: The new image.""" + ... + + def fill(self, value: int) -> None: + """crwdns329788:0crwdne329788:0 (crwdns329786:0crwdne329786:0) + +Example: ``my_image.fill(5)`` + +:param value: (crwdns329790:0crwdne329790:0) crwdns329792:0crwdne329792:0 + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def blit(self, src: Image, x: int, y: int, w: int, h: int, xdest: int=0, ydest: int=0) -> None: + """crwdns329796:0crwdne329796:0 (crwdns329794:0crwdne329794:0) + +Example: ``my_image.blit(Image.HEART, 1, 1, 3, 3, 1, 1)`` + +:param src: (crwdns329802:0crwdne329802:0) crwdns329804:0crwdne329804:0 +:param x: (crwdns329810:0crwdne329810:0) crwdns329812:0crwdne329812:0 +:param y: (crwdns329818:0crwdne329818:0) crwdns329820:0crwdne329820:0 +:param w: (crwdns329806:0crwdne329806:0) crwdns329808:0crwdne329808:0 +:param h: (crwdns329798:0crwdne329798:0) crwdns329800:0crwdne329800:0 +:param xdest: (crwdns329814:0crwdne329814:0) crwdns329816:0crwdne329816:0 +:param ydest: (crwdns329822:0crwdne329822:0) crwdns329824:0crwdne329824:0 + +Pixels outside the source image are treated as having a brightness of 0. + +``shift_left()``, ``shift_right()``, ``shift_up()``, ``shift_down()`` +and ``crop()`` can are all implemented by using ``blit()``. + +For example, img.crop(x, y, w, h) can be implemented as:: + + def crop(self, x, y, w, h): + res = Image(w, h) + res.blit(self, x, y, w, h) + return res""" + ... + + def __repr__(self) -> str: + """crwdns329828:0crwdne329828:0 (crwdns329826:0crwdne329826:0)""" + ... + + def __str__(self) -> str: + """crwdns329832:0crwdne329832:0 (crwdns329830:0crwdne329830:0)""" + ... + + def __add__(self, other: Image) -> Image: + """crwdns329836:0crwdne329836:0 (crwdns329834:0crwdne329834:0) + +Example: ``Image.HEART + Image.HAPPY`` + +:param other: (crwdns329838:0crwdne329838:0) crwdns329840:0crwdne329840:0""" + ... + + def __sub__(self, other: Image) -> Image: + """crwdns329844:0crwdne329844:0 (crwdns329842:0crwdne329842:0) + +Example: ``Image.HEART - Image.HEART_SMALL`` + +:param other: (crwdns329846:0crwdne329846:0) crwdns329848:0crwdne329848:0""" + ... + + def __mul__(self, n: float) -> Image: + """crwdns329852:0``n``crwdne329852:0 (crwdns329850:0crwdne329850:0) + +Example: ``Image.HEART * 0.5`` + +:param n: (crwdns329854:0crwdne329854:0) crwdns329856:0crwdne329856:0""" + ... + + def __truediv__(self, n: float) -> Image: + """crwdns329860:0``n``crwdne329860:0 (crwdns329858:0crwdne329858:0) + +Example: ``Image.HEART / 2`` + +:param n: (crwdns329862:0crwdne329862:0) crwdns329864:0crwdne329864:0""" + ... + +class SoundEvent: + LOUD: SoundEvent + """crwdns334408:0``quiet``crwdnd334408:0``loud``crwdne334408:0 (crwdns329866:0crwdne329866:0)""" + QUIET: SoundEvent + """crwdns334410:0``loud``crwdnd334410:0``quiet``crwdne334410:0 (crwdns329870:0crwdne329870:0)""" + +class Sound: + """crwdns329876:0``audio.play(Sound.NAME)``crwdne329876:0 (crwdns329874:0crwdne329874:0)""" + GIGGLE: Sound + """crwdns329880:0crwdne329880:0 (crwdns329878:0crwdne329878:0)""" + HAPPY: Sound + """crwdns329884:0crwdne329884:0 (crwdns329882:0crwdne329882:0)""" + HELLO: Sound + """crwdns329888:0crwdne329888:0 (crwdns329886:0crwdne329886:0)""" + MYSTERIOUS: Sound + """crwdns329892:0crwdne329892:0 (crwdns329890:0crwdne329890:0)""" + SAD: Sound + """crwdns329896:0crwdne329896:0 (crwdns329894:0crwdne329894:0)""" + SLIDE: Sound + """crwdns329900:0crwdne329900:0 (crwdns329898:0crwdne329898:0)""" + SOARING: Sound + """crwdns329904:0crwdne329904:0 (crwdns329902:0crwdne329902:0)""" + SPRING: Sound + """crwdns329908:0crwdne329908:0 (crwdns329906:0crwdne329906:0)""" + TWINKLE: Sound + """crwdns329912:0crwdne329912:0 (crwdns329910:0crwdne329910:0)""" + YAWN: Sound + """crwdns329916:0crwdne329916:0 (crwdns329914:0crwdne329914:0)""" \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/accelerometer.pyi b/lang/lol/typeshed/stdlib/microbit/accelerometer.pyi new file mode 100644 index 0000000..23c0aee --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/accelerometer.pyi @@ -0,0 +1,103 @@ +"""crwdns329920:0crwdne329920:0 (crwdns329918:0crwdne329918:0)""" +from typing import Tuple + +def get_x() -> int: + """crwdns329924:0``x``crwdne329924:0 (crwdns329922:0crwdne329922:0) + +Example: ``accelerometer.get_x()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_y() -> int: + """crwdns329928:0``y``crwdne329928:0 (crwdns329926:0crwdne329926:0) + +Example: ``accelerometer.get_y()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_z() -> int: + """crwdns329932:0``z``crwdne329932:0 (crwdns329930:0crwdne329930:0) + +Example: ``accelerometer.get_z()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_values() -> Tuple[int, int, int]: + """crwdns329936:0crwdne329936:0 (crwdns329934:0crwdne329934:0) + +Example: ``x, y, z = accelerometer.get_values()`` + +:return: a three-element tuple of integers ordered as X, Y, Z, each value a positive or negative integer depending on direction in the range +/- 2000mg""" + ... + +def get_strength() -> int: + """crwdns335824:0crwdne335824:0 (crwdns335822:0crwdne335822:0) + +Example: ``accelerometer.get_strength()`` + +:return: The combined acceleration strength of all the axes, in milli-g.""" + ... + +def current_gesture() -> str: + """crwdns329940:0crwdne329940:0 (crwdns329938:0crwdne329938:0) + +Example: ``accelerometer.current_gesture()`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:return: The current gesture""" + ... + +def is_gesture(name: str) -> bool: + """crwdns329944:0crwdne329944:0 (crwdns329942:0crwdne329942:0) + +Example: ``accelerometer.is_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: (crwdns329946:0crwdne329946:0) crwdns329948:0crwdne329948:0 +:return: ``True`` if the gesture is active, ``False`` otherwise.""" + ... + +def was_gesture(name: str) -> bool: + """crwdns329952:0crwdne329952:0 (crwdns329950:0crwdne329950:0) + +Example: ``accelerometer.was_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: (crwdns329954:0crwdne329954:0) crwdns329956:0crwdne329956:0 +:return: ``True`` if the gesture was active since the last call, ``False`` otherwise.""" + +def get_gestures() -> Tuple[str, ...]: + """crwdns329960:0crwdne329960:0 (crwdns329958:0crwdne329958:0) + +Example: ``accelerometer.get_gestures()`` + +Clears the gesture history before returning. + +Gestures are not updated in the background so there needs to be constant +calls to some accelerometer method to do the gesture detection. Usually +gestures can be detected using a loop with a small :func:`microbit.sleep` delay. + +:return: The history as a tuple, most recent last.""" + ... + +def set_range(value: int) -> None: + """crwdns335828:0``2``crwdnd335828:0``4``crwdnd335828:0``8``crwdne335828:0 (crwdns335826:0crwdne335826:0) + +Example: ``accelerometer.set_range(8)`` + +:param value: (crwdns335830:0crwdne335830:0) crwdns335832:0``g``crwdne335832:0""" \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/audio.pyi b/lang/lol/typeshed/stdlib/microbit/audio.pyi new file mode 100644 index 0000000..8cbcbf8 --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/audio.pyi @@ -0,0 +1,123 @@ +"""crwdns329964:0``audio``crwdne329964:0 (crwdns329962:0crwdne329962:0)""" +from ..microbit import MicroBitDigitalPin, Sound, pin0 +from typing import ClassVar, Iterable, Union + +def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: + """crwdns335834:0crwdne335834:0 (crwdns329966:0crwdne329966:0) + +Example: ``audio.play(Sound.GIGGLE)`` + +:param source: (crwdns329978:0crwdne329978:0) crwdns335836:0``Sound``crwdnd335836:0``Sound.GIGGLE``crwdnd335836:0``SoundEffect``crwdnd335836:0``AudioFrame``crwdne335836:0 +:param wait: (crwdns329982:0crwdne329982:0) crwdns329984:0``wait``crwdnd329984:0``True``crwdne329984:0 +:param pin: (crwdns329970:0crwdne329970:0) crwdns329972:0``pin0``crwdne329972:0 +:param return_pin: (crwdns329974:0crwdne329974:0) crwdns329976:0crwdne329976:0""" + +def is_playing() -> bool: + """crwdns329988:0crwdne329988:0 (crwdns329986:0crwdne329986:0) + +Example: ``audio.is_playing()`` + +:return: ``True`` if audio is playing, otherwise ``False``.""" + ... + +def stop() -> None: + """crwdns329992:0crwdne329992:0 (crwdns329990:0crwdne329990:0) + +Example: ``audio.stop()``""" + ... + +class SoundEffect: + """crwdns335840:0crwdne335840:0 (crwdns335838:0crwdne335838:0)""" + WAVEFORM_SINE: ClassVar[int] + """crwdns335844:0``waveform``crwdne335844:0 (crwdns335842:0crwdne335842:0)""" + WAVEFORM_SAWTOOTH: ClassVar[int] + """crwdns335848:0``waveform``crwdne335848:0 (crwdns335846:0crwdne335846:0)""" + WAVEFORM_TRIANGLE: ClassVar[int] + """crwdns335852:0``waveform``crwdne335852:0 (crwdns335850:0crwdne335850:0)""" + WAVEFORM_SQUARE: ClassVar[int] + """crwdns335856:0``waveform``crwdne335856:0 (crwdns335854:0crwdne335854:0)""" + WAVEFORM_NOISE: ClassVar[int] + """crwdns335860:0``waveform``crwdne335860:0 (crwdns335858:0crwdne335858:0)""" + SHAPE_LINEAR: ClassVar[int] + """crwdns335864:0``shape``crwdne335864:0 (crwdns335862:0crwdne335862:0)""" + SHAPE_CURVE: ClassVar[int] + """crwdns335868:0``shape``crwdne335868:0 (crwdns335866:0crwdne335866:0)""" + SHAPE_LOG: ClassVar[int] + """crwdns335872:0``shape``crwdne335872:0 (crwdns335870:0crwdne335870:0)""" + FX_NONE: ClassVar[int] + """crwdns335876:0``fx``crwdne335876:0 (crwdns335874:0crwdne335874:0)""" + FX_TREMOLO: ClassVar[int] + """crwdns335880:0``fx``crwdne335880:0 (crwdns335878:0crwdne335878:0)""" + FX_VIBRATO: ClassVar[int] + """crwdns335884:0``fx``crwdne335884:0 (crwdns335882:0crwdne335882:0)""" + FX_WARBLE: ClassVar[int] + """crwdns335888:0``fx``crwdne335888:0 (crwdns335886:0crwdne335886:0)""" + freq_start: int + """crwdns335892:0``0``crwdnd335892:0``9999``crwdne335892:0 (crwdns335890:0crwdne335890:0)""" + freq_end: int + """crwdns335896:0``0``crwdnd335896:0``9999``crwdne335896:0 (crwdns335894:0crwdne335894:0)""" + duration: int + """crwdns335900:0``0``crwdnd335900:0``9999``crwdne335900:0 (crwdns335898:0crwdne335898:0)""" + vol_start: int + """crwdns335904:0``0``crwdnd335904:0``255``crwdne335904:0 (crwdns335902:0crwdne335902:0)""" + vol_end: int + """crwdns335908:0``0``crwdnd335908:0``255``crwdne335908:0 (crwdns335906:0crwdne335906:0)""" + waveform: int + """crwdns335912:0``WAVEFORM_SINE``crwdnd335912:0``WAVEFORM_SAWTOOTH``crwdnd335912:0``WAVEFORM_TRIANGLE``crwdnd335912:0``WAVEFORM_SQUARE``crwdnd335912:0``WAVEFORM_NOISE``crwdne335912:0 (crwdns335910:0crwdne335910:0)""" + fx: int + """crwdns335916:0``FX_TREMOLO``crwdnd335916:0``FX_VIBRATO``crwdnd335916:0``FX_WARBLE``crwdnd335916:0``FX_NONE``crwdne335916:0 (crwdns335914:0crwdne335914:0)""" + shape: int + """crwdns335920:0``SHAPE_LINEAR``crwdnd335920:0``SHAPE_CURVE``crwdnd335920:0``SHAPE_LOG``crwdne335920:0 (crwdns335918:0crwdne335918:0)""" + + def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): + """crwdns335924:0crwdne335924:0 (crwdns335922:0crwdne335922:0) + +Example: ``my_effect = SoundEffect(duration=1000)`` + +All the parameters are optional, with default values as shown above, and +they can all be modified via attributes of the same name. For example, we +can first create an effect ``my_effect = SoundEffect(duration=1000)``, +and then change its attributes ``my_effect.duration = 500``. + +:param freq_start: (crwdns335934:0crwdne335934:0) crwdns335936:0``0``crwdnd335936:0``9999``crwdne335936:0 +:param freq_end: (crwdns335930:0crwdne335930:0) crwdns335932:0``0``crwdnd335932:0``9999``crwdne335932:0 +:param duration: (crwdns335926:0crwdne335926:0) crwdns335928:0``0``crwdnd335928:0``9999``crwdne335928:0 +:param vol_start: (crwdns335950:0crwdne335950:0) crwdns335952:0``0``crwdnd335952:0``255``crwdne335952:0 +:param vol_end: (crwdns335946:0crwdne335946:0) crwdns335948:0``0``crwdnd335948:0``255``crwdne335948:0 +:param waveform: (crwdns335954:0crwdne335954:0) crwdns335956:0``WAVEFORM_SINE``crwdnd335956:0``WAVEFORM_SAWTOOTH``crwdnd335956:0``WAVEFORM_TRIANGLE``crwdnd335956:0``WAVEFORM_SQUARE``crwdnd335956:0``WAVEFORM_NOISE``crwdne335956:0 +:param fx: (crwdns335938:0crwdne335938:0) crwdns335940:0``FX_TREMOLO``crwdnd335940:0``FX_VIBRATO``crwdnd335940:0``FX_WARBLE``crwdnd335940:0``FX_NONE``crwdne335940:0 +:param shape: (crwdns335942:0crwdne335942:0) crwdns335944:0``SHAPE_LINEAR``crwdnd335944:0``SHAPE_CURVE``crwdnd335944:0``SHAPE_LOG``crwdne335944:0""" + + def copy(self) -> SoundEffect: + """crwdns335960:0``SoundEffect``crwdne335960:0 (crwdns335958:0crwdne335958:0) + +Example: ``sound_2 = sound_1.copy()`` + +:return: A copy of the SoundEffect.""" + +class AudioFrame: + """crwdns329996:0``AudioFrame``crwdne329996:0 (crwdns329994:0crwdne329994:0) + +It takes just over 4 ms to play a single frame. + +Example:: + + frame = AudioFrame() + for i in range(len(frame)): + frame[i] = 252 - i * 8""" + + def copyfrom(self, other: AudioFrame) -> None: + """crwdns335964:0``AudioFrame``crwdnd335964:0``AudioFrame``crwdne335964:0 (crwdns335962:0crwdne335962:0) + +Example: ``my_frame.copyfrom(source_frame)`` + +:param other: (crwdns335966:0crwdne335966:0) crwdns335968:0``AudioFrame``crwdne335968:0""" + + def __len__(self) -> int: + ... + + def __setitem__(self, key: int, value: int) -> None: + ... + + def __getitem__(self, key: int) -> int: + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/compass.pyi b/lang/lol/typeshed/stdlib/microbit/compass.pyi new file mode 100644 index 0000000..38bf5a4 --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/compass.pyi @@ -0,0 +1,70 @@ +"""crwdns330004:0crwdne330004:0 (crwdns330002:0crwdne330002:0)""" + +def calibrate() -> None: + """crwdns330008:0crwdne330008:0 (crwdns330006:0crwdne330006:0) + +Example: ``compass.calibrate()`` + +An instructive message will be scrolled to the user after which they will need +to rotate the device in order to draw a circle on the LED display.""" + ... + +def is_calibrated() -> bool: + """crwdns330012:0crwdne330012:0 (crwdns330010:0crwdne330010:0) + +Example: ``compass.is_calibrated()`` + +:return: ``True`` if the compass has been successfully calibrated, ``False`` otherwise.""" + ... + +def clear_calibration() -> None: + """crwdns330016:0crwdne330016:0 (crwdns330014:0crwdne330014:0) + +Example: ``compass.clear_calibration()``""" + ... + +def get_x() -> int: + """crwdns330020:0``x``crwdne330020:0 (crwdns330018:0crwdne330018:0) + +Example: ``compass.get_x()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_y() -> int: + """crwdns330024:0``y``crwdne330024:0 (crwdns330022:0crwdne330022:0) + +Example: ``compass.get_y()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_z() -> int: + """crwdns330028:0``z``crwdne330028:0 (crwdns330026:0crwdne330026:0) + +Example: ``compass.get_z()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def heading() -> int: + """crwdns330032:0crwdne330032:0 (crwdns330030:0crwdne330030:0) + +Example: ``compass.heading()`` + +:return: An integer in the range from 0 to 360, representing the angle in degrees, clockwise, with north as 0.""" + ... + +def get_field_strength() -> int: + """crwdns330036:0crwdne330036:0 (crwdns330034:0crwdne330034:0) + +Example: ``compass.get_field_strength()`` + +:return: An integer indication of the magnitude of the magnetic field in nano tesla.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/display.pyi b/lang/lol/typeshed/stdlib/microbit/display.pyi new file mode 100644 index 0000000..cf2dd2e --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/display.pyi @@ -0,0 +1,92 @@ +"""crwdns330040:0crwdne330040:0 (crwdns330038:0crwdne330038:0)""" +from ..microbit import Image +from typing import Union, overload, Iterable + +def get_pixel(x: int, y: int) -> int: + """crwdns330044:0``x``crwdnd330044:0``y``crwdne330044:0 (crwdns330042:0crwdne330042:0) + +Example: ``display.get_pixel(0, 0)`` + +:param x: (crwdns330046:0crwdne330046:0) crwdns330048:0crwdne330048:0 +:param y: (crwdns330050:0crwdne330050:0) crwdns330052:0crwdne330052:0 +:return: A number between 0 (off) and 9 (bright)""" + ... + +def set_pixel(x: int, y: int, value: int) -> None: + """crwdns330056:0``x``crwdnd330056:0``y``crwdne330056:0 (crwdns330054:0crwdne330054:0) + +Example: ``display.set_pixel(0, 0, 9)`` + +:param x: (crwdns330062:0crwdne330062:0) crwdns330064:0crwdne330064:0 +:param y: (crwdns330066:0crwdne330066:0) crwdns330068:0crwdne330068:0 +:param value: (crwdns330058:0crwdne330058:0) crwdns330060:0crwdne330060:0""" + ... + +def clear() -> None: + """crwdns330072:0crwdne330072:0 (crwdns330070:0crwdne330070:0) + +Example: ``display.clear()``""" + ... + +def show(image: Union[str, float, int, Image, Iterable[Image]], delay: int=400, wait: bool=True, loop: bool=False, clear: bool=False) -> None: + """crwdns330076:0crwdne330076:0 (crwdns330074:0crwdne330074:0) + +Example: ``display.show(Image.HEART)`` + +When ``image`` is an image or a list of images then each image is displayed in turn. +If ``image`` is a string or number, each letter or digit is displayed in turn. + +:param image: (crwdns330086:0crwdne330086:0) crwdns330088:0crwdne330088:0 +:param delay: (crwdns330082:0crwdne330082:0) crwdns330084:0``delay``crwdne330084:0 +:param wait: (crwdns330094:0crwdne330094:0) crwdns330096:0``wait``crwdnd330096:0``True``crwdne330096:0 +:param loop: (crwdns330090:0crwdne330090:0) crwdns330092:0``loop``crwdnd330092:0``True``crwdne330092:0 +:param clear: (crwdns330078:0crwdne330078:0) crwdns330080:0``clear``crwdnd330080:0``True``crwdne330080:0 + +The ``wait``, ``loop`` and ``clear`` arguments must be specified using their keyword.""" + ... + +def scroll(text: Union[str, float, int], delay: int=150, wait: bool=True, loop: bool=False, monospace: bool=False) -> None: + """crwdns330100:0crwdne330100:0 (crwdns330098:0crwdne330098:0) + +Example: ``display.scroll('micro:bit')`` + +:param text: (crwdns330114:0crwdne330114:0) crwdns330116:0``text``crwdnd330116:0``str()``crwdne330116:0 +:param delay: (crwdns330102:0crwdne330102:0) crwdns330104:0``delay``crwdne330104:0 +:param wait: (crwdns330118:0crwdne330118:0) crwdns330120:0``wait``crwdnd330120:0``True``crwdne330120:0 +:param loop: (crwdns330106:0crwdne330106:0) crwdns330108:0``loop``crwdnd330108:0``True``crwdne330108:0 +:param monospace: (crwdns330110:0crwdne330110:0) crwdns330112:0``monospace``crwdnd330112:0``True``crwdne330112:0 + +The ``wait``, ``loop`` and ``monospace`` arguments must be specified +using their keyword.""" + ... + +def on() -> None: + """crwdns330124:0crwdne330124:0 (crwdns330122:0crwdne330122:0) + +Example: ``display.on()``""" + ... + +def off() -> None: + """crwdns330128:0crwdne330128:0 (crwdns330126:0crwdne330126:0) + +Example: ``display.off()``""" + ... + +def is_on() -> bool: + """crwdns330132:0crwdne330132:0 (crwdns330130:0crwdne330130:0) + +Example: ``display.is_on()`` + +:return: ``True`` if the display is on, otherwise returns ``False``.""" + ... + +def read_light_level() -> int: + """crwdns330136:0crwdne330136:0 (crwdns330134:0crwdne330134:0) + +Example: ``display.read_light_level()`` + +Uses the display's LEDs in reverse-bias mode to sense the amount of light +falling on the display. + +:return: An integer between 0 and 255 representing the light level, with larger meaning more light.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/i2c.pyi b/lang/lol/typeshed/stdlib/microbit/i2c.pyi new file mode 100644 index 0000000..c126204 --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/i2c.pyi @@ -0,0 +1,49 @@ +"""crwdns330140:0crwdne330140:0 (crwdns330138:0crwdne330138:0)""" +from _typeshed import ReadableBuffer +from ..microbit import MicroBitDigitalPin, pin19, pin20 +from typing import List + +def init(freq: int=100000, sda: MicroBitDigitalPin=pin20, scl: MicroBitDigitalPin=pin19) -> None: + """crwdns330144:0crwdne330144:0 (crwdns330142:0crwdne330142:0) + +Example: ``i2c.init()`` + +:param freq: (crwdns330146:0crwdne330146:0) crwdns330148:0crwdne330148:0 +:param sda: (crwdns330154:0crwdne330154:0) crwdns330156:0``sda``crwdne330156:0 +:param scl: (crwdns330150:0crwdne330150:0) crwdns330152:0``scl``crwdne330152:0 + +On a micro:bit V1 board, changing the I²C pins from defaults will make +the accelerometer and compass stop working, as they are connected +internally to those pins. This warning does not apply to the **V2** +revision of the micro:bit as this has `separate I²C lines `_ +for the motion sensors and the edge connector.""" + ... + +def scan() -> List[int]: + """crwdns330160:0crwdne330160:0 (crwdns330158:0crwdne330158:0) + +Example: ``i2c.scan()`` + +:return: A list of 7-bit addresses corresponding to those devices that responded to the scan.""" + ... + +def read(addr: int, n: int, repeat: bool=False) -> bytes: + """crwdns330164:0crwdne330164:0 (crwdns330162:0crwdne330162:0) + +Example: ``i2c.read(0x50, 64)`` + +:param addr: (crwdns330166:0crwdne330166:0) crwdns330168:0crwdne330168:0 +:param n: (crwdns330170:0crwdne330170:0) crwdns330172:0crwdne330172:0 +:param repeat: (crwdns330174:0crwdne330174:0) crwdns330176:0``True``crwdne330176:0 +:return: The bytes read""" + ... + +def write(addr: int, buf: ReadableBuffer, repeat: bool=False) -> None: + """crwdns330180:0crwdne330180:0 (crwdns330178:0crwdne330178:0) + +Example: ``i2c.write(0x50, bytes([1, 2, 3]))`` + +:param addr: (crwdns330182:0crwdne330182:0) crwdns330184:0crwdne330184:0 +:param buf: (crwdns330186:0crwdne330186:0) crwdns330188:0crwdne330188:0 +:param repeat: (crwdns330190:0crwdne330190:0) crwdns330192:0``True``crwdne330192:0""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/microphone.pyi b/lang/lol/typeshed/stdlib/microbit/microphone.pyi new file mode 100644 index 0000000..bc5d3a3 --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/microphone.pyi @@ -0,0 +1,62 @@ +"""crwdns330196:0crwdne330196:0 (crwdns330194:0crwdne330194:0)""" +from typing import Optional, Tuple +from ..microbit import SoundEvent + +def current_event() -> Optional[SoundEvent]: + """crwdns330200:0crwdne330200:0 (crwdns330198:0crwdne330198:0) + +Example: ``microphone.current_event()`` + +:return: The event, ``SoundEvent('loud')`` or ``SoundEvent('quiet')``.""" + ... + +def was_event(event: SoundEvent) -> bool: + """crwdns330204:0crwdne330204:0 (crwdns330202:0crwdne330202:0) + +Example: ``microphone.was_event(SoundEvent.LOUD)`` + +This call clears the sound history before returning. + +:param event: (crwdns330206:0crwdne330206:0) crwdns330208:0``SoundEvent.LOUD``crwdnd330208:0``SoundEvent.QUIET``crwdne330208:0 +:return: ``True`` if sound was heard at least once since the last call, otherwise ``False``.""" + ... + +def is_event(event: SoundEvent) -> bool: + """crwdns330212:0crwdne330212:0 (crwdns330210:0crwdne330210:0) + +Example: ``microphone.is_event(SoundEvent.LOUD)`` + +This call does not clear the sound event history. + +:param event: (crwdns330214:0crwdne330214:0) crwdns330216:0``SoundEvent.LOUD``crwdnd330216:0``SoundEvent.QUIET``crwdne330216:0 +:return: ``True`` if sound was the most recent heard, ``False`` otherwise.""" + ... + +def get_events() -> Tuple[SoundEvent, ...]: + """crwdns330220:0crwdne330220:0 (crwdns330218:0crwdne330218:0) + +Example: ``microphone.get_events()`` + +This call clears the sound history before returning. + +:return: A tuple of the event history with the most recent event last.""" + ... + +def set_threshold(event: SoundEvent, value: int) -> None: + """crwdns330224:0crwdne330224:0 (crwdns330222:0crwdne330222:0) + +Example: ``microphone.set_threshold(SoundEvent.LOUD, 250)`` + +A high threshold means the event will only trigger if the sound is very loud (>= 250 in the example). + +:param event: (crwdns330226:0crwdne330226:0) crwdns330228:0``SoundEvent.LOUD``crwdnd330228:0``SoundEvent.QUIET``crwdne330228:0 +:param value: (crwdns330230:0crwdne330230:0) crwdns330232:0crwdne330232:0""" + ... + +def sound_level() -> int: + """crwdns330236:0crwdne330236:0 (crwdns330234:0crwdne330234:0) + +Example: ``microphone.sound_level()`` + +:return: A representation of the sound pressure level in the range 0 to 255.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/speaker.pyi b/lang/lol/typeshed/stdlib/microbit/speaker.pyi new file mode 100644 index 0000000..b5c339e --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/speaker.pyi @@ -0,0 +1,15 @@ +"""crwdns330240:0crwdne330240:0 (crwdns330238:0crwdne330238:0)""" + +def off() -> None: + """crwdns330244:0crwdne330244:0 (crwdns330242:0crwdne330242:0) + +Example: ``speaker.off()`` + +This does not disable sound output to an edge connector pin.""" + ... + +def on() -> None: + """crwdns330248:0crwdne330248:0 (crwdns330246:0crwdne330246:0) + +Example: ``speaker.on()``""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/spi.pyi b/lang/lol/typeshed/stdlib/microbit/spi.pyi new file mode 100644 index 0000000..d68ba4f --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/spi.pyi @@ -0,0 +1,47 @@ +"""crwdns330252:0crwdne330252:0 (crwdns330250:0crwdne330250:0)""" +from _typeshed import ReadableBuffer, WriteableBuffer +from ..microbit import pin13, pin14, pin15, MicroBitDigitalPin + +def init(baudrate: int=1000000, bits: int=8, mode: int=0, sclk: MicroBitDigitalPin=pin13, mosi: MicroBitDigitalPin=pin15, miso: MicroBitDigitalPin=pin14) -> None: + """crwdns330256:0crwdne330256:0 (crwdns330254:0crwdne330254:0) + +Example: ``spi.init()`` + +For correct communication, the parameters have to be the same on both communicating devices. + +:param baudrate: (crwdns330258:0crwdne330258:0) crwdns330260:0crwdne330260:0 +:param bits: (crwdns330262:0crwdne330262:0) crwdns334412:0crwdne334412:0 +:param mode: (crwdns330270:0crwdne330270:0) crwdns330272:0crwdne330272:0 +:param sclk: (crwdns330278:0crwdne330278:0) crwdns330280:0crwdne330280:0 +:param mosi: (crwdns330274:0crwdne330274:0) crwdns330276:0crwdne330276:0 +:param miso: (crwdns330266:0crwdne330266:0) crwdns330268:0crwdne330268:0""" + ... + +def read(nbytes: int, out: int=0) -> bytes: + """crwdns330284:0``nbytes``crwdnd330284:0``out``crwdne330284:0 (crwdns330282:0crwdne330282:0) + +Example: ``spi.read(64)`` + +:param nbytes: (crwdns330286:0crwdne330286:0) crwdns330288:0crwdne330288:0 +:param out: (crwdns360362:0crwdne360362:0) crwdns360364:0crwdne360364:0 +:return: The bytes read.""" + ... + +def write(buffer: ReadableBuffer) -> None: + """crwdns330292:0crwdne330292:0 (crwdns330290:0crwdne330290:0) + +Example: ``spi.write(bytes([1, 2, 3]))`` + +:param buffer: (crwdns330294:0crwdne330294:0) crwdns330296:0crwdne330296:0""" + ... + +def write_readinto(out: WriteableBuffer, in_: ReadableBuffer) -> None: + """crwdns330300:0``out``crwdnd330300:0``in_``crwdne330300:0 (crwdns330298:0crwdne330298:0) + +Example: ``spi.write_readinto(out_buffer, in_buffer)`` + +The length of the buffers should be the same. The buffers can be the same object. + +:param out: (crwdns330306:0crwdne330306:0) crwdns330308:0crwdne330308:0 +:param in_: (crwdns330302:0crwdne330302:0) crwdns330304:0crwdne330304:0""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/microbit/uart.pyi b/lang/lol/typeshed/stdlib/microbit/uart.pyi new file mode 100644 index 0000000..3f791aa --- /dev/null +++ b/lang/lol/typeshed/stdlib/microbit/uart.pyi @@ -0,0 +1,79 @@ +"""crwdns330312:0crwdne330312:0 (crwdns330310:0crwdne330310:0)""" +from _typeshed import WriteableBuffer +from ..microbit import MicroBitDigitalPin +from typing import Optional, Union +ODD: int +"""crwdns330316:0crwdne330316:0 (crwdns330314:0crwdne330314:0)""" +EVEN: int +"""crwdns330320:0crwdne330320:0 (crwdns330318:0crwdne330318:0)""" + +def init(baudrate: int=9600, bits: int=8, parity: Optional[int]=None, stop: int=1, tx: Optional[MicroBitDigitalPin]=None, rx: Optional[MicroBitDigitalPin]=None) -> None: + """crwdns330324:0crwdne330324:0 (crwdns330322:0crwdne330322:0) + +Example: ``uart.init(115200, tx=pin0, rx=pin1)`` + +:param baudrate: (crwdns330326:0crwdne330326:0) crwdns330328:0crwdne330328:0 +:param bits: (crwdns330330:0crwdne330330:0) crwdns330332:0crwdne330332:0 +:param parity: (crwdns330334:0crwdne330334:0) crwdns330336:0``None``crwdnd330336:0``uart.ODD``crwdnd330336:0``uart.EVEN``crwdne330336:0 +:param stop: (crwdns330342:0crwdne330342:0) crwdns330344:0crwdne330344:0 +:param tx: (crwdns330346:0crwdne330346:0) crwdns330348:0crwdne330348:0 +:param rx: (crwdns330338:0crwdne330338:0) crwdns330340:0crwdne330340:0 + +Initializing the UART on external pins will cause the Python console on +USB to become unaccessible, as it uses the same hardware. To bring the +console back you must reinitialize the UART without passing anything for +``tx`` or ``rx`` (or passing ``None`` to these arguments). This means +that calling ``uart.init(115200)`` is enough to restore the Python console. + +For more details see `the online documentation `_.""" + ... + +def any() -> bool: + """crwdns334688:0crwdne334688:0 (crwdns330350:0crwdne330350:0) + +Example: ``uart.any()`` + +:return: ``True`` if any data is waiting, else ``False``.""" + ... + +def read(nbytes: Optional[int]=None) -> Optional[bytes]: + """crwdns330356:0crwdne330356:0 (crwdns330354:0crwdne330354:0) + +Example: ``uart.read()`` + +:param nbytes: (crwdns330358:0crwdne330358:0) crwdns330360:0``nbytes``crwdne330360:0 +:return: A bytes object or ``None`` on timeout""" + ... + +def readinto(buf: WriteableBuffer, nbytes: Optional[int]=None) -> Optional[int]: + """crwdns330364:0``buf``crwdne330364:0 (crwdns330362:0crwdne330362:0) + +Example: ``uart.readinto(input_buffer)`` + +:param buf: (crwdns330366:0crwdne330366:0) crwdns330368:0crwdne330368:0 +:param nbytes: (crwdns330370:0crwdne330370:0) crwdns330372:0``nbytes``crwdnd330372:0``len(buf)``crwdne330372:0 +:return: number of bytes read and stored into ``buf`` or ``None`` on timeout.""" + ... + +def readline() -> Optional[bytes]: + """crwdns330376:0crwdne330376:0 (crwdns330374:0crwdne330374:0) + +Example: ``uart.readline()`` + +:return: The line read or ``None`` on timeout. The newline character is included in the returned bytes.""" + ... + +def write(buf: Union[bytes, str]) -> Optional[int]: + """crwdns330380:0crwdne330380:0 (crwdns330378:0crwdne330378:0) + +Example: ``uart.write('hello world')`` + +:param buf: (crwdns330382:0crwdne330382:0) crwdns330384:0crwdne330384:0 +:return: The number of bytes written, or ``None`` on timeout. + +Examples:: + + uart.write('hello world') + uart.write(b'hello world') + uart.write(bytes([1, 2, 3]))""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/micropython.pyi b/lang/lol/typeshed/stdlib/micropython.pyi new file mode 100644 index 0000000..014befe --- /dev/null +++ b/lang/lol/typeshed/stdlib/micropython.pyi @@ -0,0 +1,131 @@ +"""crwdns330388:0crwdne330388:0 (crwdns330386:0crwdne330386:0)""" +from typing import Any, TypeVar, overload +_T = TypeVar('_T') + +def const(expr: _T) -> _T: + """crwdns330392:0crwdne330392:0 (crwdns330390:0crwdne330390:0) + +The use of this function should be as follows:: + + from micropython import const + CONST_X = const(123) + CONST_Y = const(2 * CONST_X + 1) + +Constants declared this way are still accessible as global variables from +outside the module they are declared in. On the other hand, if a constant +begins with an underscore then it is hidden, it is not available as a +global variable, and does not take up any memory during execution. + +:param expr: (crwdns330394:0crwdne330394:0) crwdns330396:0crwdne330396:0""" + ... + +@overload +def opt_level() -> int: + """crwdns330400:0crwdne330400:0 (crwdns330398:0crwdne330398:0) + +Example: ``micropython.opt_level()`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +:return: An integer representing the current level.""" + ... + +@overload +def opt_level(level: int) -> None: + """crwdns330404:0crwdne330404:0 (crwdns330402:0crwdne330402:0) + +Example: ``micropython.opt_level(1)`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +The default optimisation level is usually level 0. + +:param level: (crwdns330406:0crwdne330406:0) crwdns330408:0crwdne330408:0""" + ... + +def mem_info(verbose: Any=None) -> None: + """crwdns330412:0crwdne330412:0 (crwdns330410:0crwdne330410:0) + +Example: ``micropython.mem_info()`` + +:param verbose: (crwdns330414:0crwdne330414:0) crwdns330416:0``verbose``crwdne330416:0""" + ... + +def qstr_info(verbose: Any=None) -> None: + """crwdns330420:0crwdne330420:0 (crwdns330418:0crwdne330418:0) + +Example: ``micropython.qstr_info()`` + +:param verbose: (crwdns330422:0crwdne330422:0) crwdns330424:0``verbose``crwdne330424:0 + +The information that is printed is implementation dependent, but currently +includes the number of interned strings and the amount of RAM they use. In +verbose mode it prints out the names of all RAM-interned strings.""" + ... + +def stack_use() -> int: + """crwdns330428:0crwdne330428:0 (crwdns330426:0crwdne330426:0) + +Example: ``micropython.stack_use()`` + +The absolute value of this is not particularly useful, rather it +should be used to compute differences in stack usage at different points. + +:return: An integer representing current stack use.""" + ... + +def heap_lock() -> None: + """crwdns330432:0crwdne330432:0 (crwdns330430:0crwdne330430:0) + +Example: ``micropython.heap_lock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def heap_unlock() -> None: + """crwdns330436:0crwdne330436:0 (crwdns330434:0crwdne330434:0) + +Example: ``micropython.heap_unlock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def kbd_intr(chr: int) -> None: + """crwdns330440:0``KeyboardInterrupt``crwdne330440:0 (crwdns330438:0crwdne330438:0) + +Example: ``micropython.kbd_intr(-1)`` + +:param chr: (crwdns330442:0crwdne330442:0) crwdns330444:0crwdne330444:0 + +By default this is set to 3 during script execution, corresponding to Ctrl-C. +Passing -1 to this function will disable capture of Ctrl-C, and passing 3 +will restore it. + +This function can be used to prevent the capturing of Ctrl-C on the +incoming stream of characters that is usually used for the REPL, in case +that stream is used for other purposes.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/music.pyi b/lang/lol/typeshed/stdlib/music.pyi new file mode 100644 index 0000000..e432421 --- /dev/null +++ b/lang/lol/typeshed/stdlib/music.pyi @@ -0,0 +1,128 @@ +"""crwdns330448:0crwdne330448:0 (crwdns330446:0crwdne330446:0)""" +from typing import Optional, Tuple, Union, List +from .microbit import MicroBitDigitalPin, pin0 +DADADADUM: Tuple[str, ...] +"""crwdns330452:0crwdne330452:0 (crwdns330450:0crwdne330450:0)""" +ENTERTAINER: Tuple[str, ...] +"""crwdns330456:0crwdne330456:0 (crwdns330454:0crwdne330454:0)""" +PRELUDE: Tuple[str, ...] +"""crwdns330460:0crwdne330460:0 (crwdns330458:0crwdne330458:0)""" +ODE: Tuple[str, ...] +"""crwdns330464:0crwdne330464:0 (crwdns330462:0crwdne330462:0)""" +NYAN: Tuple[str, ...] +"""crwdns330468:0crwdne330468:0 (crwdns330466:0crwdne330466:0) + +The composer is unknown. This is fair use for educational porpoises (as they say in New York).""" +RINGTONE: Tuple[str, ...] +"""crwdns330472:0crwdne330472:0 (crwdns330470:0crwdne330470:0) + +To be used to indicate an incoming message. +""" +FUNK: Tuple[str, ...] +"""crwdns330476:0crwdne330476:0 (crwdns330474:0crwdne330474:0)""" +BLUES: Tuple[str, ...] +"""crwdns330480:0crwdne330480:0 (crwdns330478:0crwdne330478:0)""" +BIRTHDAY: Tuple[str, ...] +"""crwdns330484:0crwdne330484:0 (crwdns330482:0crwdne330482:0) + +For copyright status see: http://www.bbc.co.uk/news/world-us-canada-34332853 +""" +WEDDING: Tuple[str, ...] +"""crwdns330488:0crwdne330488:0 (crwdns330486:0crwdne330486:0)""" +FUNERAL: Tuple[str, ...] +"""crwdns330492:0crwdne330492:0 (crwdns330490:0crwdne330490:0)""" +PUNCHLINE: Tuple[str, ...] +"""crwdns330496:0crwdne330496:0 (crwdns330494:0crwdne330494:0)""" +PYTHON: Tuple[str, ...] +"""crwdns330500:0crwdne330500:0 (crwdns330498:0crwdne330498:0)""" +BADDY: Tuple[str, ...] +"""crwdns330504:0crwdne330504:0 (crwdns330502:0crwdne330502:0)""" +CHASE: Tuple[str, ...] +"""crwdns330508:0crwdne330508:0 (crwdns330506:0crwdne330506:0)""" +BA_DING: Tuple[str, ...] +"""crwdns330512:0crwdne330512:0 (crwdns330510:0crwdne330510:0)""" +WAWAWAWAA: Tuple[str, ...] +"""crwdns330516:0crwdne330516:0 (crwdns330514:0crwdne330514:0)""" +JUMP_UP: Tuple[str, ...] +"""crwdns330520:0crwdne330520:0 (crwdns330518:0crwdne330518:0)""" +JUMP_DOWN: Tuple[str, ...] +"""crwdns330524:0crwdne330524:0 (crwdns330522:0crwdne330522:0)""" +POWER_UP: Tuple[str, ...] +"""crwdns330528:0crwdne330528:0 (crwdns330526:0crwdne330526:0)""" +POWER_DOWN: Tuple[str, ...] +"""crwdns330532:0crwdne330532:0 (crwdns330530:0crwdne330530:0)""" + +def set_tempo(ticks: int=4, bpm: int=120) -> None: + """crwdns330536:0crwdne330536:0 (crwdns330534:0crwdne330534:0) + +Example: ``music.set_tempo(bpm=120)`` + +:param ticks: (crwdns330542:0crwdne330542:0) crwdns330544:0crwdne330544:0 +:param bpm: (crwdns330538:0crwdne330538:0) crwdns330540:0crwdne330540:0 + +Suggested default values allow the following useful behaviour: + +- music.set_tempo() – reset the tempo to default of ticks = 4, bpm = 120 +- music.set_tempo(ticks=8) – change the “definition” of a beat +- music.set_tempo(bpm=180) – just change the tempo + +To work out the length of a tick in milliseconds is very simple arithmetic: +60000/bpm/ticks_per_beat. For the default values that’s +60000/120/4 = 125 milliseconds or 1 beat = 500 milliseconds.""" + ... + +def get_tempo() -> Tuple[int, int]: + """crwdns330548:0``(ticks, bpm)``crwdne330548:0 (crwdns330546:0crwdne330546:0) + +Example: ``ticks, beats = music.get_tempo()`` + +:return: The temp as a tuple with two integer values, the ticks then the beats per minute.""" + ... + +def play(music: Union[str, List[str], Tuple[str, ...]], pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True, loop: bool=False) -> None: + """crwdns330552:0crwdne330552:0 (crwdns330550:0crwdne330550:0) + +Example: ``music.play(music.NYAN)`` + +:param music: (crwdns330558:0crwdne330558:0) crwdns330560:0crwdne330560:0 +:param pin: (crwdns330562:0crwdne330562:0) crwdns330564:0``pin0``crwdnd330564:0``None``crwdne330564:0 +:param wait: (crwdns330566:0crwdne330566:0) crwdns330568:0``wait``crwdnd330568:0``True``crwdne330568:0 +:param loop: (crwdns330554:0crwdne330554:0) crwdns330556:0``loop``crwdnd330556:0``True``crwdnd330556:0``stop``crwdne330556:0 + +Many built-in melodies are defined in this module.""" + ... + +def pitch(frequency: int, duration: int=-1, pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True) -> None: + """crwdns330572:0crwdne330572:0 (crwdns330570:0crwdne330570:0) + +Example: ``music.pitch(185, 1000)`` + +:param frequency: (crwdns330578:0crwdne330578:0) crwdns330580:0crwdne330580:0 +:param duration: (crwdns330574:0crwdne330574:0) crwdns330576:0``stop``crwdne330576:0 +:param pin: (crwdns330582:0crwdne330582:0) crwdns330584:0``pin0``crwdne330584:0 +:param wait: (crwdns330586:0crwdne330586:0) crwdns330588:0``wait``crwdnd330588:0``True``crwdne330588:0 + +For example, if the frequency is set to 440 and the length to +1000 then we hear a standard concert A for one second. + +You can only play one pitch on one pin at any one time.""" + ... + +def stop(pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """crwdns330592:0crwdne330592:0 (crwdns330590:0crwdne330590:0) + +Example: ``music.stop()`` + +:param pin: (crwdns330594:0crwdne330594:0) crwdns330596:0``music.stop(pin1)``crwdne330596:0""" + +def reset() -> None: + """crwdns330600:0crwdne330600:0 (crwdns330598:0crwdne330598:0) + +Example: ``music.reset()`` + +Values: +- ``ticks = 4`` +- ``bpm = 120`` +- ``duration = 4`` +- ``octave = 4``""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/neopixel.pyi b/lang/lol/typeshed/stdlib/neopixel.pyi new file mode 100644 index 0000000..5ef04a8 --- /dev/null +++ b/lang/lol/typeshed/stdlib/neopixel.pyi @@ -0,0 +1,81 @@ +"""crwdns330604:0crwdne330604:0 (crwdns330602:0crwdne330602:0)""" +from .microbit import MicroBitDigitalPin +from typing import Tuple + +class NeoPixel: + + def __init__(self, pin: MicroBitDigitalPin, n: int, bpp: int=3) -> None: + """crwdns330608:0crwdne330608:0 (crwdns330606:0crwdne330606:0) + +Example: ``np = neopixel.NeoPixel(pin0, 8)`` + +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. + +See `the online docs `_ for warnings and other advice. + +:param pin: (crwdns330618:0crwdne330618:0) crwdns330620:0crwdne330620:0 +:param n: (crwdns330614:0crwdne330614:0) crwdns330616:0crwdne330616:0 +:param bpp: (crwdns330610:0crwdne330610:0) crwdns355240:0crwdne355240:0""" + ... + + def clear(self) -> None: + """crwdns330624:0crwdne330624:0 (crwdns330622:0crwdne330622:0) + +Example: ``np.clear()``""" + ... + + def show(self) -> None: + """crwdns330628:0crwdne330628:0 (crwdns330626:0crwdne330626:0) + +Example: ``np.show()`` + +Must be called for any updates to become visible.""" + ... + + def write(self) -> None: + """crwdns330632:0crwdne330632:0 (crwdns330630:0crwdne330630:0) + +Example: ``np.write()`` + +Must be called for any updates to become visible. + +Equivalent to ``show``.""" + ... + + def fill(self, colour: Tuple[int, ...]) -> None: + """crwdns330636:0crwdne330636:0 (crwdns330634:0crwdne330634:0) + +Example: ``np.fill((0, 0, 255))`` + +:param colour: (crwdns330638:0crwdne330638:0) crwdns330640:0crwdne330640:0 + +Use in conjunction with ``show()`` to update the neopixels.""" + ... + + def __setitem__(self, key: int, value: Tuple[int, ...]) -> None: + """crwdns330644:0crwdne330644:0 (crwdns330642:0crwdne330642:0) + +Example: ``np[0] = (255, 0, 0)`` + +:param key: (crwdns330646:0crwdne330646:0) crwdns330648:0crwdne330648:0 +:param value: (crwdns330650:0crwdne330650:0) crwdns330652:0crwdne330652:0""" + + def __getitem__(self, key: int) -> Tuple[int, ...]: + """crwdns330656:0crwdne330656:0 (crwdns330654:0crwdne330654:0) + +Example: ``r, g, b = np[0]`` + +:param key: (crwdns330658:0crwdne330658:0) crwdns330660:0crwdne330660:0 +:return: The colour tuple.""" + + def __len__(self) -> int: + """crwdns330664:0crwdne330664:0 (crwdns330662:0crwdne330662:0) + +Example: ``len(np)``""" \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/os.pyi b/lang/lol/typeshed/stdlib/os.pyi new file mode 100644 index 0000000..24170cf --- /dev/null +++ b/lang/lol/typeshed/stdlib/os.pyi @@ -0,0 +1,63 @@ +"""crwdns330668:0crwdne330668:0 (crwdns330666:0crwdne330666:0)""" +from typing import Tuple +from typing import List + +def listdir() -> List[str]: + """crwdns330672:0crwdne330672:0 (crwdns330670:0crwdne330670:0) + +Example: ``os.listdir()`` + +:return: A list of the names of all the files contained within the local +persistent on-device file system.""" + ... + +def remove(filename: str) -> None: + """crwdns330676:0crwdne330676:0 (crwdns330674:0crwdne330674:0) + +Example: ``os.remove('data.txt')`` + +:param filename: (crwdns330678:0crwdne330678:0) crwdns330680:0crwdne330680:0 + +If the file does not exist an ``OSError`` exception will occur.""" + ... + +def size(filename: str) -> int: + """crwdns330684:0crwdne330684:0 (crwdns330682:0crwdne330682:0) + +Example: ``os.size('data.txt')`` + +:param filename: (crwdns330686:0crwdne330686:0) crwdns330688:0crwdne330688:0 +:return: The size in bytes. + +If the file does not exist an ``OSError`` exception will occur.""" + +class uname_result(Tuple[str, str, str, str, str]): + """crwdns330692:0``os.uname()``crwdne330692:0 (crwdns330690:0crwdne330690:0)""" + sysname: str + """crwdns330696:0crwdne330696:0 (crwdns330694:0crwdne330694:0)""" + nodename: str + """crwdns330700:0crwdne330700:0 (crwdns330698:0crwdne330698:0)""" + release: str + """crwdns330704:0crwdne330704:0 (crwdns330702:0crwdne330702:0)""" + version: str + """crwdns330708:0crwdne330708:0 (crwdns330706:0crwdne330706:0)""" + machine: str + """crwdns330712:0crwdne330712:0 (crwdns330710:0crwdne330710:0)""" + +def uname() -> uname_result: + """crwdns330716:0crwdne330716:0 (crwdns330714:0crwdne330714:0) + +Example: ``os.uname()`` + +The return value is an object with five attributes: + +- ``sysname`` - operating system name +- ``nodename`` - name of machine on network (implementation-defined) +- ``release`` - operating system release +- ``version`` - operating system version +- ``machine`` - hardware identifier + +There is no underlying operating system in MicroPython. As a result the +information returned by the ``uname`` function is mostly useful for +versioning details.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/power.pyi b/lang/lol/typeshed/stdlib/power.pyi new file mode 100644 index 0000000..2be8b27 --- /dev/null +++ b/lang/lol/typeshed/stdlib/power.pyi @@ -0,0 +1,53 @@ +"""Manage the power modes of the micro:bit (V2 only). +""" + +from microbit import MicroBitDigitalPin, Button +from typing import Optional, Tuple, Union + +def off() -> None: + """Power down the board to the lowest possible power mode. + + Example: ``power.off()`` + + This is the equivalent to pressing the reset button for a few seconds, + to set the board in "Off mode". + + The micro:bit will only wake up if the reset button is pressed or, + if on battery power, when a USB cable is connected. + + When the board wakes up it will start for a reset state, so your program + will start running from the beginning. + """ + ... + +def deep_sleep( + ms: Optional[int] = None, + wake_on: Optional[ + Union[MicroBitDigitalPin, Button] | Tuple[MicroBitDigitalPin | Button, ...] + ] = None, + run_every: bool = True, +) -> None: + """Set the micro:bit into a low power mode where it can wake up and continue operation. + + Example: ``power.deep_sleep(wake_on=(button_a, button_b))`` + + The program state is preserved and when it wakes up it will resume + operation where it left off. + + Deep Sleep mode will consume more battery power than Off mode. + + The wake up sources are configured via arguments. + + The board will always wake up when receiving UART data, when the reset + button is pressed (which resets the board) or, in battery power, + when the USB cable is inserted. + + When the ``run_every`` parameter is set to ``True`` (the default), any + function scheduled with ``run_every`` will momentarily wake up the board + to run and when it finishes it will go back to sleep. + + :param ms: A time in milliseconds to wait before it wakes up. + :param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``. + :param run_every: A boolean to configure if the functions scheduled with ``microbit.run_every`` will continue to run while it sleeps. + """ + ... diff --git a/lang/lol/typeshed/stdlib/radio.pyi b/lang/lol/typeshed/stdlib/radio.pyi new file mode 100644 index 0000000..079f747 --- /dev/null +++ b/lang/lol/typeshed/stdlib/radio.pyi @@ -0,0 +1,123 @@ +"""crwdns330720:0crwdne330720:0 (crwdns330718:0crwdne330718:0)""" +from _typeshed import WriteableBuffer +from typing import Optional, Tuple +RATE_1MBIT: int +"""crwdns330724:0crwdne330724:0 (crwdns330722:0crwdne330722:0)""" +RATE_2MBIT: int +"""crwdns330728:0crwdne330728:0 (crwdns330726:0crwdne330726:0)""" + +def on() -> None: + """crwdns330732:0crwdne330732:0 (crwdns330730:0crwdne330730:0) + +Example: ``radio.on()`` + +This needs to be explicitly called since the radio draws power and takes +up memory that you may otherwise need.""" + ... + +def off() -> None: + """crwdns330736:0crwdne330736:0 (crwdns330734:0crwdne330734:0) + +Example: ``radio.off()``""" + ... + +def config(length: int=32, queue: int=3, channel: int=7, power: int=6, address: int=1969383796, group: int=0, data_rate: int=RATE_1MBIT) -> None: + """crwdns330740:0crwdne330740:0 (crwdns330738:0crwdne330738:0) + +Example: ``radio.config(group=42)`` + +The default configuration is suitable for most use. + +:param length: (crwdns330758:0crwdne330758:0) crwdns330760:0crwdne330760:0 +:param queue: (crwdns330766:0crwdne330766:0) crwdns330768:0crwdne330768:0 +:param channel: (crwdns330746:0crwdne330746:0) crwdns330748:0crwdne330748:0 +:param power: (crwdns330762:0crwdne330762:0) crwdns330764:0crwdne330764:0 +:param address: (crwdns330742:0crwdne330742:0) crwdns330744:0crwdne330744:0 +:param group: (crwdns330754:0crwdne330754:0) crwdns330756:0``address``crwdne330756:0 +:param data_rate: (crwdns330750:0crwdne330750:0) crwdns330752:0``radio.RATE_1MBIT``crwdnd330752:0``radio``crwdnd330752:0``RATE_250KBIT``crwdnd330752:0``RATE_1MBIT``crwdnd330752:0``RATE_2MBIT``crwdne330752:0 + +If ``config`` is not called then the defaults described above are assumed.""" + ... + +def reset() -> None: + """crwdns330772:0crwdne330772:0 (crwdns330770:0crwdne330770:0) + +Example: ``radio.reset()`` + +The defaults as as per the ``config`` function above.""" + ... + +def send_bytes(message: bytes) -> None: + """crwdns330776:0crwdne330776:0 (crwdns330774:0crwdne330774:0) + +Example: ``radio.send_bytes(b'hello')`` + +:param message: (crwdns330778:0crwdne330778:0) crwdns330780:0crwdne330780:0""" + ... + +def receive_bytes() -> Optional[bytes]: + """crwdns330784:0crwdne330784:0 (crwdns330782:0crwdne330782:0) + +Example: ``radio.receive_bytes()`` + +:return: The message bytes if any, otherwise ``None``.""" + ... + +def receive_bytes_into(buffer: WriteableBuffer) -> Optional[int]: + """crwdns330788:0crwdne330788:0 (crwdns330786:0crwdne330786:0) + +Example: ``radio.receive_bytes_info(buffer)`` + +:param buffer: (crwdns330790:0crwdne330790:0) crwdns330792:0crwdne330792:0 +:return: ``None`` if there are no pending messages, otherwise it returns the length of the message (which might be more than the length of the buffer).""" + ... + +def send(message: str) -> None: + """crwdns330796:0crwdne330796:0 (crwdns330794:0crwdne330794:0) + +Example: ``radio.send('hello')`` + +This is the equivalent of ``radio.send_bytes(bytes(message, 'utf8'))`` but with ``b'\x01\x00\x01'`` +prepended to the front (to make it compatible with other platforms that target the micro:bit). + +:param message: (crwdns330798:0crwdne330798:0) crwdns330800:0crwdne330800:0""" + ... + +def receive() -> Optional[str]: + """crwdns330804:0``receive_bytes``crwdne330804:0 (crwdns330802:0crwdne330802:0) + +Example: ``radio.receive()`` + +Equivalent to ``str(receive_bytes(), 'utf8')`` but with a check that the the first +three bytes are ``b'\x01\x00\x01'`` (to make it compatible with other platforms that +may target the micro:bit). + +:return: The message with the prepended bytes stripped and converted to a string. + +A ``ValueError`` exception is raised if conversion to string fails.""" + ... + +def receive_full() -> Optional[Tuple[bytes, int, int]]: + """crwdns330808:0crwdne330808:0 (crwdns330806:0crwdne330806:0) + +Example: ``radio.receive_full()`` + +If there are no pending messages then ``None`` is returned. + +The three values in the tuple represent: + +- the next incoming message on the message queue as bytes. +- the RSSI (signal strength): a value between 0 (strongest) and -255 (weakest) as measured in dBm. +- a microsecond timestamp: the value returned by ``time.ticks_us()`` when the message was received. + +For example:: + + details = radio.receive_full() + if details: + msg, rssi, timestamp = details + +This function is useful for providing information needed for triangulation +and/or trilateration with other micro:bit devices. + +:return: ``None`` if there is no message, otherwise a tuple of length three with the bytes, strength and timestamp values.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/random.pyi b/lang/lol/typeshed/stdlib/random.pyi new file mode 100644 index 0000000..319aa4d --- /dev/null +++ b/lang/lol/typeshed/stdlib/random.pyi @@ -0,0 +1,80 @@ +"""crwdns330812:0crwdne330812:0 (crwdns330810:0crwdne330810:0)""" +from typing import TypeVar, Sequence, Union, overload + +def getrandbits(n: int) -> int: + """crwdns330816:0``n``crwdne330816:0 (crwdns330814:0crwdne330814:0) + +Example: ``random.getrandbits(1)`` + +:param n: (crwdns330818:0crwdne330818:0) crwdns330820:0crwdne330820:0""" + ... + +def seed(n: int) -> None: + """crwdns330824:0crwdne330824:0 (crwdns330822:0crwdne330822:0) + +Example: ``random.seed(0)`` + +:param n: (crwdns330826:0crwdne330826:0) crwdns330828:0crwdne330828:0 + +This will give you reproducibly deterministic randomness from a given starting +state (``n``).""" + ... + +def randint(a: int, b: int) -> int: + """crwdns330832:0``a``crwdnd330832:0``b``crwdne330832:0 (crwdns330830:0crwdne330830:0) + +Example: ``random.randint(0, 9)`` + +:param a: (crwdns330834:0crwdne330834:0) crwdns330836:0crwdne330836:0 +:param b: (crwdns330838:0crwdne330838:0) crwdns330840:0crwdne330840:0 + +Alias for ``randrange(a, b + 1)``.""" + ... + +@overload +def randrange(stop: int) -> int: + """crwdns330844:0``stop``crwdne330844:0 (crwdns330842:0crwdne330842:0) + +Example: ``random.randrange(10)`` + +:param stop: (crwdns330846:0crwdne330846:0) crwdns330848:0crwdne330848:0""" + ... + +@overload +def randrange(start: int, stop: int, step: int=1) -> int: + """crwdns330852:0``range(start, stop, step)``crwdne330852:0 (crwdns330850:0crwdne330850:0) + +Example: ``random.randrange(0, 10)`` + +:param start: (crwdns330854:0crwdne330854:0) crwdns330856:0crwdne330856:0 +:param stop: (crwdns330862:0crwdne330862:0) crwdns330864:0crwdne330864:0 +:param step: (crwdns330858:0crwdne330858:0) crwdns330860:0crwdne330860:0""" + ... +_T = TypeVar('_T') + +def choice(seq: Sequence[_T]) -> _T: + """crwdns330868:0``seq``crwdne330868:0 (crwdns330866:0crwdne330866:0) + +Example: ``random.choice([Image.HAPPY, Image.SAD])`` + +:param seq: (crwdns330870:0crwdne330870:0) crwdns330872:0crwdne330872:0 + +If ``seq`` is empty, raises ``IndexError``.""" + ... + +def random() -> float: + """crwdns330876:0crwdne330876:0 (crwdns330874:0crwdne330874:0) + +Example: ``random.random()`` + +:return: The random floating point number""" + ... + +def uniform(a: float, b: float) -> float: + """crwdns330880:0``a``crwdnd330880:0``b``crwdne330880:0 (crwdns330878:0crwdne330878:0) + +Example: ``random.uniform(0, 9)`` + +:param a: (crwdns330882:0crwdne330882:0) crwdns330884:0crwdne330884:0 +:param b: (crwdns330886:0crwdne330886:0) crwdns330888:0crwdne330888:0""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/speech.pyi b/lang/lol/typeshed/stdlib/speech.pyi new file mode 100644 index 0000000..bbd286f --- /dev/null +++ b/lang/lol/typeshed/stdlib/speech.pyi @@ -0,0 +1,76 @@ +"""crwdns330892:0crwdne330892:0 (crwdns330890:0crwdne330890:0)""" +from typing import Optional +from .microbit import MicroBitDigitalPin, pin0 + +def translate(words: str) -> str: + """crwdns330896:0crwdne330896:0 (crwdns330894:0crwdne330894:0) + +Example: ``speech.translate('hello world')`` + +:param words: (crwdns330898:0crwdne330898:0) crwdns330900:0crwdne330900:0 +:return: A string containing a best guess at the appropriate phonemes to pronounce. +The output is generated from this `text to phoneme translation table `_. + +This function should be used to generate a first approximation of phonemes +that can be further hand-edited to improve accuracy, inflection and +emphasis. + +See `the online documentation `_ for detailed information.""" + ... + +def pronounce(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """crwdns330904:0crwdne330904:0 (crwdns330902:0crwdne330902:0) + +Example: ``speech.pronounce(' /HEHLOW WERLD')`` + +:param phonemes: (crwdns330910:0crwdne330910:0) crwdns330912:0crwdne330912:0 +:param pitch: (crwdns330918:0crwdne330918:0) crwdns330920:0crwdne330920:0 +:param speed: (crwdns330922:0crwdne330922:0) crwdns330924:0crwdne330924:0 +:param mouth: (crwdns330906:0crwdne330906:0) crwdns330908:0crwdne330908:0 +:param throat: (crwdns330926:0crwdne330926:0) crwdns330928:0crwdne330928:0 +:param pin: (crwdns330914:0crwdne330914:0) crwdns330916:0``pin0``crwdne330916:0 + +Override the optional pitch, speed, mouth and throat settings to change the +timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... + +def say(words: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """crwdns330932:0crwdne330932:0 (crwdns330930:0crwdne330930:0) + +Example: ``speech.say('hello world')`` + +:param words: (crwdns330954:0crwdne330954:0) crwdns330956:0crwdne330956:0 +:param pitch: (crwdns330942:0crwdne330942:0) crwdns330944:0crwdne330944:0 +:param speed: (crwdns330946:0crwdne330946:0) crwdns330948:0crwdne330948:0 +:param mouth: (crwdns330934:0crwdne330934:0) crwdns330936:0crwdne330936:0 +:param throat: (crwdns330950:0crwdne330950:0) crwdns330952:0crwdne330952:0 +:param pin: (crwdns330938:0crwdne330938:0) crwdns330940:0``pin0``crwdne330940:0 + +The result is semi-accurate for English. Override the optional pitch, speed, +mouth and throat settings to change the timbre (quality) of the voice. + +This is a short-hand equivalent of: +``speech.pronounce(speech.translate(words))`` + +See `the online documentation `_ for detailed information.""" + ... + +def sing(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """crwdns330960:0crwdne330960:0 (crwdns330958:0crwdne330958:0) + +Example: ``speech.sing(' /HEHLOW WERLD')`` + +:param phonemes: (crwdns330966:0crwdne330966:0) crwdns330968:0crwdne330968:0 +:param pitch: (crwdns330974:0crwdne330974:0) crwdns330976:0crwdne330976:0 +:param speed: (crwdns330978:0crwdne330978:0) crwdns330980:0crwdne330980:0 +:param mouth: (crwdns330962:0crwdne330962:0) crwdns330964:0crwdne330964:0 +:param throat: (crwdns330982:0crwdne330982:0) crwdns330984:0crwdne330984:0 +:param pin: (crwdns330970:0crwdne330970:0) crwdns330972:0``pin0``crwdne330972:0 + +Override the optional pitch, speed, mouth and throat settings to change +the timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/struct.pyi b/lang/lol/typeshed/stdlib/struct.pyi new file mode 100644 index 0000000..8725186 --- /dev/null +++ b/lang/lol/typeshed/stdlib/struct.pyi @@ -0,0 +1,56 @@ +"""crwdns330988:0crwdne330988:0 (crwdns330986:0crwdne330986:0)""" +from _typeshed import ReadableBuffer, WriteableBuffer +from typing import Any, Tuple, Union + +def calcsize(fmt: str) -> int: + """crwdns330992:0``fmt``crwdne330992:0 (crwdns330990:0crwdne330990:0) + +Example: ``struct.calcsize('hf')`` + +:param fmt: (crwdns330994:0crwdne330994:0) crwdns330996:0crwdne330996:0 +:return The number of bytes needed to store such a value.""" + ... + +def pack(fmt: str, v1: Any, *vn: Any) -> bytes: + """crwdns331000:0crwdne331000:0 (crwdns330998:0crwdne330998:0) + +Example: ``struct.pack('hf', 1, 3.1415)`` + +:param fmt: (crwdns331006:0crwdne331006:0) crwdns331008:0crwdne331008:0 +:param v1: (crwdns331010:0crwdne331010:0) crwdns331012:0crwdne331012:0 +:param *vn: (crwdns331002:0crwdne331002:0) crwdns331004:0crwdne331004:0 +:return A bytes object encoding the values.""" + ... + +def pack_into(fmt: str, buffer: WriteableBuffer, offset: int, v1: Any, *vn: Any) -> None: + """crwdns331016:0crwdne331016:0 (crwdns331014:0crwdne331014:0) + +Example: ``struct.pack_info('hf', buffer, 1, 3.1415)`` + +:param fmt: (crwdns331026:0crwdne331026:0) crwdns331028:0crwdne331028:0 +:param buffer: (crwdns331022:0crwdne331022:0) crwdns331024:0crwdne331024:0 +:param offset: (crwdns331030:0crwdne331030:0) crwdns331032:0crwdne331032:0 +:param v1: (crwdns331034:0crwdne331034:0) crwdns331036:0crwdne331036:0 +:param *vn: (crwdns331018:0crwdne331018:0) crwdns331020:0crwdne331020:0""" + ... + +def unpack(fmt: str, data: ReadableBuffer) -> Tuple[Any, ...]: + """crwdns331040:0crwdne331040:0 (crwdns331038:0crwdne331038:0) + +Example: ``v1, v2 = struct.unpack('hf', buffer)`` + +:param fmt: (crwdns331046:0crwdne331046:0) crwdns331048:0crwdne331048:0 +:param data: (crwdns331042:0crwdne331042:0) crwdns331044:0crwdne331044:0 +:return: A tuple of the unpacked values.""" + ... + +def unpack_from(fmt: str, buffer: ReadableBuffer, offset: int=0) -> Tuple: + """crwdns331052:0crwdne331052:0 (crwdns331050:0crwdne331050:0) + +Example: ``v1, v2 = struct.unpack_from('hf', buffer)`` + +:param fmt: (crwdns331058:0crwdne331058:0) crwdns331060:0crwdne331060:0 +:param buffer: (crwdns331054:0crwdne331054:0) crwdns331056:0crwdne331056:0 +:param offset: (crwdns331062:0crwdne331062:0) crwdns331064:0crwdne331064:0 +:return: A tuple of the unpacked values.""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/sys.pyi b/lang/lol/typeshed/stdlib/sys.pyi new file mode 100644 index 0000000..9459fb9 --- /dev/null +++ b/lang/lol/typeshed/stdlib/sys.pyi @@ -0,0 +1,93 @@ +"""crwdns331068:0crwdne331068:0 (crwdns331066:0crwdne331066:0)""" +from typing import Any, Dict, List, NoReturn, TextIO, Tuple + +def exit(retval: object=...) -> NoReturn: + """crwdns331072:0crwdne331072:0 (crwdns331070:0crwdne331070:0) + +Example: ``sys.exit(1)`` + +This function raises a ``SystemExit`` exception. If an argument is given, its +value given as an argument to ``SystemExit``. + +:param retval: (crwdns331074:0crwdne331074:0) crwdns331076:0crwdne331076:0""" + ... + +def print_exception(exc: Exception) -> None: + """crwdns331080:0crwdne331080:0 (crwdns331078:0crwdne331078:0) + +Example: ``sys.print_exception(e)`` + +:param exc: (crwdns331082:0crwdne331082:0) crwdns331084:0crwdne331084:0 + +This is simplified version of a function which appears in the +``traceback`` module in CPython.""" +argv: List[str] +"""crwdns331088:0crwdne331088:0 (crwdns331086:0crwdne331086:0)""" +byteorder: str +"""crwdns331092:0``"little"``crwdnd331092:0``"big"``crwdne331092:0 (crwdns331090:0crwdne331090:0)""" + +class _implementation: + name: str + version: Tuple[int, int, int] +implementation: _implementation +"""crwdns331096:0crwdne331096:0 (crwdns331094:0crwdne331094:0) + +For MicroPython, it has following attributes: + +- ``name`` - string "micropython" +- ``version`` - tuple (major, minor, micro), e.g. (1, 7, 0) + +This object is the recommended way to distinguish MicroPython from other +Python implementations (note that it still may not exist in the very +minimal ports). + +CPython mandates more attributes for this object, but the actual useful +bare minimum is implemented in MicroPython. +""" +maxsize: int +""" +crwdns331100:0crwdne331100:0 (crwdns331098:0crwdne331098:0) + +This attribute is useful for detecting "bitness" of a platform (32-bit vs +64-bit, etc.). It's recommended to not compare this attribute to some +value directly, but instead count number of bits in it:: + + bits = 0 + v = sys.maxsize + while v: + bits += 1 + v >>= 1 + if bits > 32: + # 64-bit (or more) platform + ... + else: + # 32-bit (or less) platform + # Note that on 32-bit platform, value of bits may be less than 32 + # (e.g. 31) due to peculiarities described above, so use "> 16", + # "> 32", "> 64" style of comparisons. +""" +modules: Dict[str, Any] +"""crwdns331104:0crwdne331104:0 (crwdns331102:0crwdne331102:0) + +On some ports, it may not include builtin modules.""" +path: List[str] +"""crwdns331108:0crwdne331108:0 (crwdns331106:0crwdne331106:0)""" +platform: str +"""crwdns331112:0crwdne331112:0 (crwdns331110:0crwdne331110:0) + +For OS/RTOS ports, this is usually an identifier of the OS, e.g. ``"linux"``. +For baremetal ports it is an identifier of a board, e.g. ``"pyboard"`` for +the original MicroPython reference board. It thus can be used to +distinguish one board from another. + +If you need to check whether your program runs on MicroPython (vs other +Python implementation), use ``sys.implementation`` instead. +""" +version: str +"""crwdns331116:0crwdne331116:0 (crwdns331114:0crwdne331114:0)""" +version_info: Tuple[int, int, int] +"""crwdns331120:0crwdne331120:0 (crwdns331118:0crwdne331118:0) + +Only the first three version numbers (major, minor, micro) are supported and +they can be referenced only by index, not by name. +""" \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/this.pyi b/lang/lol/typeshed/stdlib/this.pyi new file mode 100644 index 0000000..faf492b --- /dev/null +++ b/lang/lol/typeshed/stdlib/this.pyi @@ -0,0 +1 @@ +def authors() -> str: ... diff --git a/lang/lol/typeshed/stdlib/time.pyi b/lang/lol/typeshed/stdlib/time.pyi new file mode 100644 index 0000000..f2c472d --- /dev/null +++ b/lang/lol/typeshed/stdlib/time.pyi @@ -0,0 +1,110 @@ +"""crwdns331124:0crwdne331124:0 (crwdns331122:0crwdne331122:0)""" +from typing import Union + +def sleep(seconds: Union[int, float]) -> None: + """crwdns331128:0crwdne331128:0 (crwdns331126:0crwdne331126:0) + +Example: ``time.sleep(1)`` + +:param seconds: (crwdns331130:0crwdne331130:0) crwdns331132:0crwdne331132:0""" + ... + +def sleep_ms(ms: int) -> None: + """crwdns331136:0crwdne331136:0 (crwdns331134:0crwdne331134:0) + +Example: ``time.sleep_ms(1_000_000)`` + +:param ms: (crwdns331138:0crwdne331138:0) crwdns331140:0crwdne331140:0""" + ... + +def sleep_us(us: int) -> None: + """crwdns331144:0crwdne331144:0 (crwdns331142:0crwdne331142:0) + +Example: ``time.sleep_us(1000)`` + +:param us: (crwdns331146:0crwdne331146:0) crwdns331148:0crwdne331148:0""" + ... + +def ticks_ms() -> int: + """crwdns331152:0crwdne331152:0 (crwdns331150:0crwdne331150:0) + +Example: ``time.ticks_ms()`` + +:return: The counter value in milliseconds.""" + ... + +def ticks_us() -> int: + """crwdns331156:0crwdne331156:0 (crwdns331154:0crwdne331154:0) + +Example: ``time.ticks_us()`` + +:return: The counter value in microseconds.""" + ... + +def ticks_add(ticks: int, delta: int) -> int: + """crwdns331160:0crwdne331160:0 (crwdns331158:0crwdne331158:0) + +Example: ``time.ticks_add(time.ticks_ms(), 200)`` + +Given a ticks value, this function allows to calculate ticks +value delta ticks before or after it, following modular-arithmetic +definition of tick values. + +:param ticks: (crwdns331166:0crwdne331166:0) crwdns331168:0crwdne331168:0 +:param delta: (crwdns331162:0crwdne331162:0) crwdns331164:0crwdne331164:0 + +Example:: + + # Find out what ticks value there was 100ms ago + print(ticks_add(time.ticks_ms(), -100)) + + # Calculate deadline for operation and test for it + deadline = ticks_add(time.ticks_ms(), 200) + while ticks_diff(deadline, time.ticks_ms()) > 0: + do_a_little_of_something() + + # Find out TICKS_MAX used by this port + print(ticks_add(0, -1))""" + ... + +def ticks_diff(ticks1: int, ticks2: int) -> int: + """crwdns331172:0``time.ticks_ms()``crwdnd331172:0``ticks_us()``crwdne331172:0 (crwdns331170:0crwdne331170:0) + +Example: ``time.ticks_diff(scheduled_time, now)`` + +:param ticks1: (crwdns331174:0crwdne331174:0) crwdns331176:0crwdne331176:0 +:param ticks2: (crwdns331178:0crwdne331178:0) crwdns331180:0crwdne331180:0 + +The argument order is the same as for subtraction operator, +``ticks_diff(ticks1, ticks2)`` has the same meaning as ``ticks1 - ticks2``. + +``ticks_diff()`` is designed to accommodate various usage +patterns, among them: + +Polling with timeout. In this case, the order of events is known, and you +will deal only with positive results of :func:`time.ticks_diff()`:: + + # Wait for GPIO pin to be asserted, but at most 500us + start = time.ticks_us() + while pin.value() == 0: + if time.ticks_diff(time.ticks_us(), start) > 500: + raise TimeoutError + + +Scheduling events. In this case, :func:`time.ticks_diff()` result may be +negative if an event is overdue:: + + # This code snippet is not optimized + now = time.ticks_ms() + scheduled_time = task.scheduled_time() + if ticks_diff(scheduled_time, now) > 0: + print("Too early, let's nap") + sleep_ms(ticks_diff(scheduled_time, now)) + task.run() + elif ticks_diff(scheduled_time, now) == 0: + print("Right at time!") + task.run() + elif ticks_diff(scheduled_time, now) < 0: + print("Oops, running late, tell task to run faster!") + task.run(run_faster=True)""" + ... \ No newline at end of file diff --git a/lang/lol/typeshed/stdlib/types.pyi b/lang/lol/typeshed/stdlib/types.pyi new file mode 100644 index 0000000..752b2de --- /dev/null +++ b/lang/lol/typeshed/stdlib/types.pyi @@ -0,0 +1,413 @@ +import sys +from typing import ( + Any, + AsyncGenerator, + Awaitable, + Callable, + Generator, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + Tuple, + Type, + TypeVar, + ValuesView, + overload, +) +from typing_extensions import Literal, final + +# Note, all classes "defined" here require special handling. + +_T = TypeVar("_T") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT_co = TypeVar("_VT_co", covariant=True) +_V_co = TypeVar("_V_co", covariant=True) + +@final +class _Cell: + __hash__: None # type: ignore + cell_contents: Any + +@final +class FunctionType: + __closure__: Tuple[_Cell, ...] | None + __code__: CodeType + __defaults__: Tuple[Any, ...] | None + __dict__: dict[str, Any] + __globals__: dict[str, Any] + __name__: str + __qualname__: str + __annotations__: dict[str, Any] + __kwdefaults__: dict[str, Any] + def __init__( + self, + code: CodeType, + globals: dict[str, Any], + name: str | None = ..., + argdefs: Tuple[object, ...] | None = ..., + closure: Tuple[_Cell, ...] | None = ..., + ) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: object | None, type: type | None) -> MethodType: ... + +LambdaType = FunctionType + +@final +class CodeType: + """Create a code object. Not for the faint of heart.""" + + co_argcount: int + if sys.version_info >= (3, 8): + co_posonlyargcount: int + co_kwonlyargcount: int + co_nlocals: int + co_stacksize: int + co_flags: int + co_code: bytes + co_consts: Tuple[Any, ...] + co_names: Tuple[str, ...] + co_varnames: Tuple[str, ...] + co_filename: str + co_name: str + co_firstlineno: int + co_lnotab: bytes + co_freevars: Tuple[str, ...] + co_cellvars: Tuple[str, ...] + if sys.version_info >= (3, 8): + def __init__( + self, + argcount: int, + posonlyargcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + else: + def __init__( + self, + argcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + if sys.version_info >= (3, 8): + def replace( + self, + *, + co_argcount: int = ..., + co_posonlyargcount: int = ..., + co_kwonlyargcount: int = ..., + co_nlocals: int = ..., + co_stacksize: int = ..., + co_flags: int = ..., + co_firstlineno: int = ..., + co_code: bytes = ..., + co_consts: Tuple[Any, ...] = ..., + co_names: Tuple[str, ...] = ..., + co_varnames: Tuple[str, ...] = ..., + co_freevars: Tuple[str, ...] = ..., + co_cellvars: Tuple[str, ...] = ..., + co_filename: str = ..., + co_name: str = ..., + co_lnotab: bytes = ..., + ) -> CodeType: ... + +@final +class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]): + __hash__: None # type: ignore + def __init__(self, mapping: Mapping[_KT, _VT_co]) -> None: ... + def __getitem__(self, k: _KT) -> _VT_co: ... + def __iter__(self) -> Iterator[_KT]: ... + def __len__(self) -> int: ... + def copy(self) -> dict[_KT, _VT_co]: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def items(self) -> ItemsView[_KT, _VT_co]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __reversed__(self) -> Iterator[_KT]: ... + def __or__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + def __ror__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + +class SimpleNamespace: + __hash__: None # type: ignore + def __init__(self, **kwargs: Any) -> None: ... + def __getattribute__(self, name: str) -> Any: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __delattr__(self, name: str) -> None: ... + +class ModuleType: + __name__: str + __file__: str + __dict__: dict[str, Any] + __package__: str | None + def __init__(self, name: str, doc: str | None = ...) -> None: ... + +@final +class GeneratorType(Generator[_T_co, _T_contra, _V_co]): + gi_code: CodeType + gi_frame: FrameType + gi_running: bool + gi_yieldfrom: GeneratorType[_T_co, _T_contra, Any] | None + def __iter__(self) -> GeneratorType[_T_co, _T_contra, _V_co]: ... + def __next__(self) -> _T_co: ... + def close(self) -> None: ... + def send(self, __arg: _T_contra) -> _T_co: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> _T_co: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> _T_co: ... + +@final +class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]): + ag_await: Awaitable[Any] | None + ag_frame: FrameType + ag_running: bool + ag_code: CodeType + def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ... + def __anext__(self) -> Awaitable[_T_co]: ... + def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Awaitable[_T_co]: ... + def aclose(self) -> Awaitable[None]: ... + +@final +class CoroutineType: + cr_await: Any | None + cr_code: CodeType + cr_frame: FrameType + cr_running: bool + def close(self) -> None: ... + def send(self, __arg: Any) -> Any: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Any: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Any: ... + +class _StaticFunctionType: + """Fictional type to correct the type of MethodType.__func__. + + FunctionType is a descriptor, so mypy follows the descriptor protocol and + converts MethodType.__func__ back to MethodType (the return type of + FunctionType.__get__). But this is actually a special case; MethodType is + implemented in C and its attribute access doesn't go through + __getattribute__. + + By wrapping FunctionType in _StaticFunctionType, we get the right result; + similar to wrapping a function in staticmethod() at runtime to prevent it + being bound as a method. + """ + + def __get__(self, obj: object | None, type: type | None) -> FunctionType: ... + +@final +class MethodType: + __closure__: Tuple[_Cell, ...] | None # inherited from the added function + __defaults__: Tuple[Any, ...] | None # inherited from the added function + __func__: _StaticFunctionType + __self__: object + __name__: str # inherited from the added function + __qualname__: str # inherited from the added function + def __init__(self, func: Callable[..., Any], obj: object) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +@final +class BuiltinFunctionType: + __self__: object | ModuleType + __name__: str + __qualname__: str + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +BuiltinMethodType = BuiltinFunctionType + +if sys.version_info >= (3, 7): + @final + class WrapperDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class MethodWrapperType: + __self__: object + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __eq__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + @final + class MethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class ClassMethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + +@final +class TracebackType: + if sys.version_info >= (3, 7): + def __init__( + self, + tb_next: TracebackType | None, + tb_frame: FrameType, + tb_lasti: int, + tb_lineno: int, + ) -> None: ... + tb_next: TracebackType | None + else: + @property + def tb_next(self) -> TracebackType | None: ... + # the rest are read-only even in 3.7 + @property + def tb_frame(self) -> FrameType: ... + @property + def tb_lasti(self) -> int: ... + @property + def tb_lineno(self) -> int: ... + +@final +class FrameType: + f_back: FrameType | None + f_builtins: dict[str, Any] + f_code: CodeType + f_globals: dict[str, Any] + f_lasti: int + f_lineno: int + f_locals: dict[str, Any] + f_trace: Callable[[FrameType, str, Any], Any] | None + if sys.version_info >= (3, 7): + f_trace_lines: bool + f_trace_opcodes: bool + def clear(self) -> None: ... + +@final +class GetSetDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +@final +class MemberDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +if sys.version_info >= (3, 7): + def new_class( + name: str, + bases: Iterable[object] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + def resolve_bases(bases: Iterable[object]) -> Tuple[Any, ...]: ... + +else: + def new_class( + name: str, + bases: Tuple[type, ...] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + +def prepare_class( + name: str, bases: Tuple[type, ...] = ..., kwds: dict[str, Any] | None = ... +) -> Tuple[type, dict[str, Any], dict[str, Any]]: ... + +# Actually a different type, but `property` is special and we want that too. +DynamicClassAttribute = property + +def coroutine(func: Callable[..., Any]) -> CoroutineType: ... + +if sys.version_info >= (3, 8): + CellType = _Cell + +if sys.version_info >= (3, 9): + class GenericAlias: + __origin__: type + __args__: Tuple[Any, ...] + __parameters__: Tuple[Any, ...] + def __init__(self, origin: type, args: Any) -> None: ... + def __getattr__(self, name: str) -> Any: ... # incomplete + +if sys.version_info >= (3, 10): + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... + EllipsisType = ellipsis # noqa F811 from builtins + from builtins import _NotImplementedType + + NotImplementedType = _NotImplementedType # noqa F811 from builtins + @final + class UnionType: + __args__: Tuple[Any, ...] + def __or__(self, obj: Any) -> UnionType: ... + def __ror__(self, obj: Any) -> UnionType: ... diff --git a/lang/lol/typeshed/stdlib/typing.pyi b/lang/lol/typeshed/stdlib/typing.pyi new file mode 100644 index 0000000..a494557 --- /dev/null +++ b/lang/lol/typeshed/stdlib/typing.pyi @@ -0,0 +1,716 @@ +import collections # Needed by aliases like DefaultDict, see mypy issue 2986 +import sys +from abc import ABCMeta, abstractmethod +from types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType +from typing_extensions import Literal as _Literal + +if sys.version_info >= (3, 7): + from types import MethodDescriptorType, MethodWrapperType, WrapperDescriptorType + +if sys.version_info >= (3, 9): + from types import GenericAlias + +# Definitions of special type checking related constructs. Their definitions +# are not used, so their value does not matter. + +Any = object() + +class TypeVar: + __name__: str + __bound__: Optional[Type[Any]] + __constraints__: Tuple[Type[Any], ...] + __covariant__: bool + __contravariant__: bool + def __init__( + self, + name: str, + *constraints: Type[Any], + bound: Union[None, Type[Any], str] = ..., + covariant: bool = ..., + contravariant: bool = ..., + ) -> None: ... + +_promote = object() + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> object: ... + +_F = TypeVar("_F", bound=Callable[..., Any]) + +def overload(func: _F) -> _F: ... + +Union: _SpecialForm = ... +Optional: _SpecialForm = ... +Tuple: _SpecialForm = ... +Generic: _SpecialForm = ... +# Protocol is only present in 3.8 and later, but mypy needs it unconditionally +Protocol: _SpecialForm = ... +Callable: _SpecialForm = ... +Type: _SpecialForm = ... +ClassVar: _SpecialForm = ... +if sys.version_info >= (3, 8): + Final: _SpecialForm = ... + def final(f: _F) -> _F: ... + Literal: _SpecialForm = ... + # TypedDict is a (non-subscriptable) special form. + TypedDict: object + +if sys.version_info < (3, 7): + class GenericMeta(type): ... + +if sys.version_info >= (3, 10): + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Optional[Type[Any]] + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: Union[None, Type[Any], str] = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... + +# Return type that indicates a function does not return. +# This type is equivalent to the None type, but the no-op Union is necessary to +# distinguish the None type from the None value. +NoReturn = Union[None] + +# These type variables are used by the container types. +_T = TypeVar("_T") +_S = TypeVar("_S") +_KT = TypeVar("_KT") # Key type. +_VT = TypeVar("_VT") # Value type. +_T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers. +_V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers. +_KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers. +_VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers. +_T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant. +_TC = TypeVar("_TC", bound=Type[object]) + +def no_type_check(arg: _F) -> _F: ... +def no_type_check_decorator(decorator: _F) -> _F: ... + +# Type aliases and type constructors + +class _Alias: + # Class for defining generic aliases for library types. + def __getitem__(self, typeargs: Any) -> Any: ... + +List = _Alias() +Dict = _Alias() +DefaultDict = _Alias() +Set = _Alias() +FrozenSet = _Alias() +Counter = _Alias() +Deque = _Alias() +ChainMap = _Alias() + +if sys.version_info >= (3, 7): + OrderedDict = _Alias() + +if sys.version_info >= (3, 9): + Annotated: _SpecialForm = ... + +# Predefined type variables. +AnyStr = TypeVar("AnyStr", str, bytes) + +# Abstract base classes. + +def runtime_checkable(cls: _TC) -> _TC: ... +@runtime_checkable +class SupportsInt(Protocol, metaclass=ABCMeta): + @abstractmethod + def __int__(self) -> int: ... + +@runtime_checkable +class SupportsFloat(Protocol, metaclass=ABCMeta): + @abstractmethod + def __float__(self) -> float: ... + +@runtime_checkable +class SupportsComplex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __complex__(self) -> complex: ... + +@runtime_checkable +class SupportsBytes(Protocol, metaclass=ABCMeta): + @abstractmethod + def __bytes__(self) -> bytes: ... + +if sys.version_info >= (3, 8): + @runtime_checkable + class SupportsIndex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __index__(self) -> int: ... + +@runtime_checkable +class SupportsAbs(Protocol[_T_co]): + @abstractmethod + def __abs__(self) -> _T_co: ... + +@runtime_checkable +class SupportsRound(Protocol[_T_co]): + @overload + @abstractmethod + def __round__(self) -> int: ... + @overload + @abstractmethod + def __round__(self, ndigits: int) -> _T_co: ... + +@runtime_checkable +class Sized(Protocol, metaclass=ABCMeta): + @abstractmethod + def __len__(self) -> int: ... + +@runtime_checkable +class Hashable(Protocol, metaclass=ABCMeta): + # TODO: This is special, in that a subclass of a hashable class may not be hashable + # (for example, list vs. object). It's not obvious how to represent this. This class + # is currently mostly useless for static checking. + @abstractmethod + def __hash__(self) -> int: ... + +@runtime_checkable +class Iterable(Protocol[_T_co]): + @abstractmethod + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Iterator(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __next__(self) -> _T_co: ... + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Reversible(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __reversed__(self) -> Iterator[_T_co]: ... + +class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]): + def __next__(self) -> _T_co: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + def close(self) -> None: ... + def __iter__(self) -> Generator[_T_co, _T_contra, _V_co]: ... + @property + def gi_code(self) -> CodeType: ... + @property + def gi_frame(self) -> FrameType: ... + @property + def gi_running(self) -> bool: ... + @property + def gi_yieldfrom(self) -> Optional[Generator[Any, Any, Any]]: ... + +@runtime_checkable +class Awaitable(Protocol[_T_co]): + @abstractmethod + def __await__(self) -> Generator[Any, None, _T_co]: ... + +class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]): + __name__: str + __qualname__: str + @property + def cr_await(self) -> Optional[Any]: ... + @property + def cr_code(self) -> CodeType: ... + @property + def cr_frame(self) -> FrameType: ... + @property + def cr_running(self) -> bool: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + @abstractmethod + def close(self) -> None: ... + +# NOTE: This type does not exist in typing.py or PEP 484. +# The parameters correspond to Generator, but the 4th is the original type. +class AwaitableGenerator( + Awaitable[_V_co], Generator[_T_co, _T_contra, _V_co], Generic[_T_co, _T_contra, _V_co, _S], metaclass=ABCMeta +): ... + +@runtime_checkable +class AsyncIterable(Protocol[_T_co]): + @abstractmethod + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +@runtime_checkable +class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +class AsyncGenerator(AsyncIterator[_T_co], Generic[_T_co, _T_contra]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + @abstractmethod + def asend(self, __value: _T_contra) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ... + @abstractmethod + def aclose(self) -> Awaitable[None]: ... + @abstractmethod + def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ... + @property + def ag_await(self) -> Any: ... + @property + def ag_code(self) -> CodeType: ... + @property + def ag_frame(self) -> FrameType: ... + @property + def ag_running(self) -> bool: ... + +@runtime_checkable +class Container(Protocol[_T_co]): + @abstractmethod + def __contains__(self, __x: object) -> bool: ... + +@runtime_checkable +class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]): + # Implement Sized (but don't have it as a base class). + @abstractmethod + def __len__(self) -> int: ... + +_Collection = Collection[_T_co] + +class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]): + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T_co: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> Sequence[_T_co]: ... + # Mixin methods + def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ... + def count(self, value: Any) -> int: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __reversed__(self) -> Iterator[_T_co]: ... + +class MutableSequence(Sequence[_T], Generic[_T]): + @abstractmethod + def insert(self, index: int, value: _T) -> None: ... + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> MutableSequence[_T]: ... + @overload + @abstractmethod + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + @abstractmethod + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: int) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: slice) -> None: ... + # Mixin methods + def append(self, value: _T) -> None: ... + def clear(self) -> None: ... + def extend(self, values: Iterable[_T]) -> None: ... + def reverse(self) -> None: ... + def pop(self, index: int = ...) -> _T: ... + def remove(self, value: _T) -> None: ... + def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ... + +class AbstractSet(_Collection[_T_co], Generic[_T_co]): + @abstractmethod + def __contains__(self, x: object) -> bool: ... + # Mixin methods + def __le__(self, s: AbstractSet[Any]) -> bool: ... + def __lt__(self, s: AbstractSet[Any]) -> bool: ... + def __gt__(self, s: AbstractSet[Any]) -> bool: ... + def __ge__(self, s: AbstractSet[Any]) -> bool: ... + def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def isdisjoint(self, other: Iterable[Any]) -> bool: ... + +class MutableSet(AbstractSet[_T], Generic[_T]): + @abstractmethod + def add(self, value: _T) -> None: ... + @abstractmethod + def discard(self, value: _T) -> None: ... + # Mixin methods + def clear(self) -> None: ... + def pop(self) -> _T: ... + def remove(self, value: _T) -> None: ... + def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + +class MappingView(Sized): + def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocumented + def __len__(self) -> int: ... + +class ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]): + def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + +class KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]): + def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_KT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT_co]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + +class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]): + def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_VT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_VT_co]: ... + +@runtime_checkable +class ContextManager(Protocol[_T_co]): + def __enter__(self) -> _T_co: ... + def __exit__( + self, + __exc_type: Optional[Type[BaseException]], + __exc_value: Optional[BaseException], + __traceback: Optional[TracebackType], + ) -> Optional[bool]: ... + +@runtime_checkable +class AsyncContextManager(Protocol[_T_co]): + def __aenter__(self) -> Awaitable[_T_co]: ... + def __aexit__( + self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Awaitable[Optional[bool]]: ... + +class Mapping(_Collection[_KT], Generic[_KT, _VT_co]): + # TODO: We wish the key type could also be covariant, but that doesn't work, + # see discussion in https: //github.com/python/typing/pull/273. + @abstractmethod + def __getitem__(self, k: _KT) -> _VT_co: ... + # Mixin methods + @overload + def get(self, key: _KT) -> Optional[_VT_co]: ... + @overload + def get(self, key: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ... + def items(self) -> AbstractSet[Tuple[_KT, _VT_co]]: ... + def keys(self) -> AbstractSet[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def __contains__(self, o: object) -> bool: ... + +class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]): + @abstractmethod + def __setitem__(self, k: _KT, v: _VT) -> None: ... + @abstractmethod + def __delitem__(self, v: _KT) -> None: ... + def clear(self) -> None: ... + @overload + def pop(self, key: _KT) -> _VT: ... + @overload + def pop(self, key: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ... + # 'update' used to take a Union, but using overloading is better. + # The second overloaded type here is a bit too general, because + # Mapping[Tuple[_KT, _VT], W] is a subclass of Iterable[Tuple[_KT, _VT]], + # but will always have the behavior of the first overloaded type + # at runtime, leading to keys of a mix of types _KT and Tuple[_KT, _VT]. + # We don't currently have any way of forcing all Mappings to use + # the first overload, but by using overloading rather than a Union, + # mypy will commit to using the first overload when the argument is + # known to be a Mapping with unknown type parameters, which is closer + # to the behavior we want. See mypy issue #1430. + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + +Text = str + +TYPE_CHECKING = True + +class IO(Iterator[AnyStr], Generic[AnyStr]): + # TODO use abstract properties + @property + def mode(self) -> str: ... + @property + def name(self) -> str: ... + @abstractmethod + def close(self) -> None: ... + @property + def closed(self) -> bool: ... + @abstractmethod + def fileno(self) -> int: ... + @abstractmethod + def flush(self) -> None: ... + @abstractmethod + def isatty(self) -> bool: ... + @abstractmethod + def read(self, n: int = ...) -> AnyStr: ... + @abstractmethod + def readable(self) -> bool: ... + @abstractmethod + def readline(self, limit: int = ...) -> AnyStr: ... + @abstractmethod + def readlines(self, hint: int = ...) -> list[AnyStr]: ... + @abstractmethod + def seek(self, offset: int, whence: int = ...) -> int: ... + @abstractmethod + def seekable(self) -> bool: ... + @abstractmethod + def tell(self) -> int: ... + @abstractmethod + def truncate(self, size: Optional[int] = ...) -> int: ... + @abstractmethod + def writable(self) -> bool: ... + @abstractmethod + def write(self, s: AnyStr) -> int: ... + @abstractmethod + def writelines(self, lines: Iterable[AnyStr]) -> None: ... + @abstractmethod + def __next__(self) -> AnyStr: ... + @abstractmethod + def __iter__(self) -> Iterator[AnyStr]: ... + @abstractmethod + def __enter__(self) -> IO[AnyStr]: ... + @abstractmethod + def __exit__( + self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Optional[bool]: ... + +class BinaryIO(IO[bytes]): + @abstractmethod + def __enter__(self) -> BinaryIO: ... + +class TextIO(IO[str]): + # TODO use abstractproperty + @property + def buffer(self) -> BinaryIO: ... + @property + def encoding(self) -> str: ... + @property + def errors(self) -> Optional[str]: ... + @property + def line_buffering(self) -> int: ... # int on PyPy, bool on CPython + @property + def newlines(self) -> Any: ... # None, str or tuple + @abstractmethod + def __enter__(self) -> TextIO: ... + +class ByteString(Sequence[int], metaclass=ABCMeta): ... + +class Match(Generic[AnyStr]): + pos: int + endpos: int + lastindex: Optional[int] + lastgroup: Optional[AnyStr] + string: AnyStr + + # The regular expression object whose match() or search() method produced + # this match instance. + re: Pattern[AnyStr] + def expand(self, template: AnyStr) -> AnyStr: ... + # group() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def group(self, __group: _Literal[0] = ...) -> AnyStr: ... + @overload + def group(self, __group: str | int) -> AnyStr | Any: ... + @overload + def group(self, __group1: str | int, __group2: str | int, *groups: str | int) -> Tuple[AnyStr | Any, ...]: ... + # Each item of groups()'s return tuple is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groups(self) -> Tuple[AnyStr | Any, ...]: ... + @overload + def groups(self, default: _T) -> Tuple[AnyStr | _T, ...]: ... + # Each value in groupdict()'s return dict is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groupdict(self) -> dict[str, AnyStr | Any]: ... + @overload + def groupdict(self, default: _T) -> dict[str, AnyStr | _T]: ... + def start(self, __group: Union[int, str] = ...) -> int: ... + def end(self, __group: Union[int, str] = ...) -> int: ... + def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ... + @property + def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented + # __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def __getitem__(self, __key: _Literal[0]) -> AnyStr: ... + @overload + def __getitem__(self, __key: int | str) -> AnyStr | Any: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class Pattern(Generic[AnyStr]): + flags: int + groupindex: Mapping[str, int] + groups: int + pattern: AnyStr + def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ... + def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ... + def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ... + @overload + def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def sub(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def subn(self, repl: AnyStr, string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + @overload + def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +# Functions + +if sys.version_info >= (3, 7): + _get_type_hints_obj_allowed_types = Union[ + object, + Callable[..., Any], + FunctionType, + BuiltinFunctionType, + MethodType, + ModuleType, + WrapperDescriptorType, + MethodWrapperType, + MethodDescriptorType, + ] +else: + _get_type_hints_obj_allowed_types = Union[ + object, Callable[..., Any], FunctionType, BuiltinFunctionType, MethodType, ModuleType, + ] + +if sys.version_info >= (3, 9): + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, + globalns: Optional[Dict[str, Any]] = ..., + localns: Optional[Dict[str, Any]] = ..., + include_extras: bool = ..., + ) -> Dict[str, Any]: ... + +else: + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, globalns: Optional[Dict[str, Any]] = ..., localns: Optional[Dict[str, Any]] = ... + ) -> Dict[str, Any]: ... + +if sys.version_info >= (3, 8): + def get_origin(tp: Any) -> Optional[Any]: ... + def get_args(tp: Any) -> Tuple[Any, ...]: ... + +@overload +def cast(typ: Type[_T], val: Any) -> _T: ... +@overload +def cast(typ: str, val: Any) -> Any: ... +@overload +def cast(typ: object, val: Any) -> Any: ... + +# Type constructors + +# NamedTuple is special-cased in the type checker +class NamedTuple(Tuple[Any, ...]): + _field_types: collections.OrderedDict[str, Type[Any]] + _field_defaults: Dict[str, Any] = ... + _fields: Tuple[str, ...] + _source: str + def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., **kwargs: Any) -> None: ... + @classmethod + def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ... + if sys.version_info >= (3, 8): + def _asdict(self) -> Dict[str, Any]: ... + else: + def _asdict(self) -> collections.OrderedDict[str, Any]: ... + def _replace(self: _T, **kwargs: Any) -> _T: ... + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def __delitem__(self, k: NoReturn) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __or__(self: _T, __value: _T) -> _T: ... + def __ior__(self: _T, __value: _T) -> _T: ... + +def NewType(name: str, tp: Type[_T]) -> Type[_T]: ... + +# This itself is only available during type checking +def type_check_only(func_or_cls: _F) -> _F: ... + +if sys.version_info >= (3, 7): + class ForwardRef: + __forward_arg__: str + __forward_code__: CodeType + __forward_evaluated__: bool + __forward_value__: Optional[Any] + __forward_is_argument__: bool + def __init__(self, arg: str, is_argument: bool = ...) -> None: ... + def _evaluate(self, globalns: Optional[Dict[str, Any]], localns: Optional[Dict[str, Any]]) -> Optional[Any]: ... + def __eq__(self, other: Any) -> bool: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + +if sys.version_info >= (3, 10): + def is_typeddict(tp: Any) -> bool: ... diff --git a/lang/lol/typeshed/stdlib/typing_extensions.pyi b/lang/lol/typeshed/stdlib/typing_extensions.pyi new file mode 100644 index 0000000..59fe3df --- /dev/null +++ b/lang/lol/typeshed/stdlib/typing_extensions.pyi @@ -0,0 +1,115 @@ +import abc +import sys +from typing import ( + TYPE_CHECKING as TYPE_CHECKING, + Any, + AsyncContextManager as AsyncContextManager, + AsyncGenerator as AsyncGenerator, + AsyncIterable as AsyncIterable, + AsyncIterator as AsyncIterator, + Awaitable as Awaitable, + Callable, + ChainMap as ChainMap, + ClassVar as ClassVar, + ContextManager as ContextManager, + Coroutine as Coroutine, + Counter as Counter, + DefaultDict as DefaultDict, + Deque as Deque, + ItemsView, + KeysView, + Mapping, + NewType as NewType, + NoReturn as NoReturn, + Text as Text, + Tuple, + Type as Type, + TypeVar, + ValuesView, + _Alias, + overload as overload, +) + +_T = TypeVar("_T") +_F = TypeVar("_F", bound=Callable[..., Any]) +_TC = TypeVar("_TC", bound=Type[object]) + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> Any: ... + +def runtime_checkable(cls: _TC) -> _TC: ... + +# This alias for above is kept here for backwards compatibility. +runtime = runtime_checkable +Protocol: _SpecialForm = ... +Final: _SpecialForm = ... + +def final(f: _F) -> _F: ... + +Literal: _SpecialForm = ... + +def IntVar(name: str) -> Any: ... # returns a new TypeVar + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __delitem__(self, k: NoReturn) -> None: ... + +# TypedDict is a (non-subscriptable) special form. +TypedDict: object = ... + +OrderedDict = _Alias() + +def get_type_hints( + obj: Callable[..., Any], + globalns: dict[str, Any] | None = ..., + localns: dict[str, Any] | None = ..., + include_extras: bool = ..., +) -> dict[str, Any]: ... + +if sys.version_info >= (3, 7): + def get_args(tp: Any) -> Tuple[Any, ...]: ... + def get_origin(tp: Any) -> Any | None: ... + +Annotated: _SpecialForm = ... +_AnnotatedAlias: Any = ... # undocumented + +@runtime_checkable +class SupportsIndex(Protocol, metaclass=abc.ABCMeta): + @abc.abstractmethod + def __index__(self) -> int: ... + +# PEP 612 support for Python < 3.9 +if sys.version_info >= (3, 10): + from typing import Concatenate as Concatenate, ParamSpec as ParamSpec, TypeAlias as TypeAlias, TypeGuard as TypeGuard +else: + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Type[Any] | None + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: None | Type[Any] | str = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... diff --git a/lang/lol/typeshed/stdlib/uarray.pyi b/lang/lol/typeshed/stdlib/uarray.pyi new file mode 100644 index 0000000..d1ba4d9 --- /dev/null +++ b/lang/lol/typeshed/stdlib/uarray.pyi @@ -0,0 +1 @@ +from array import * diff --git a/lang/lol/typeshed/stdlib/ucollections.pyi b/lang/lol/typeshed/stdlib/ucollections.pyi new file mode 100644 index 0000000..9400561 --- /dev/null +++ b/lang/lol/typeshed/stdlib/ucollections.pyi @@ -0,0 +1 @@ +from collections import * diff --git a/lang/lol/typeshed/stdlib/uerrno.pyi b/lang/lol/typeshed/stdlib/uerrno.pyi new file mode 100644 index 0000000..5ecb44d --- /dev/null +++ b/lang/lol/typeshed/stdlib/uerrno.pyi @@ -0,0 +1 @@ +from errno import * diff --git a/lang/lol/typeshed/stdlib/urandom.pyi b/lang/lol/typeshed/stdlib/urandom.pyi new file mode 100644 index 0000000..1c31bde --- /dev/null +++ b/lang/lol/typeshed/stdlib/urandom.pyi @@ -0,0 +1 @@ +from random import * diff --git a/lang/lol/typeshed/stdlib/ustruct.pyi b/lang/lol/typeshed/stdlib/ustruct.pyi new file mode 100644 index 0000000..ee3a9fc --- /dev/null +++ b/lang/lol/typeshed/stdlib/ustruct.pyi @@ -0,0 +1 @@ +from struct import * diff --git a/lang/lol/typeshed/stdlib/usys.pyi b/lang/lol/typeshed/stdlib/usys.pyi new file mode 100644 index 0000000..104052c --- /dev/null +++ b/lang/lol/typeshed/stdlib/usys.pyi @@ -0,0 +1 @@ +from sys import * diff --git a/lang/lol/typeshed/stdlib/utime.pyi b/lang/lol/typeshed/stdlib/utime.pyi new file mode 100644 index 0000000..72705db --- /dev/null +++ b/lang/lol/typeshed/stdlib/utime.pyi @@ -0,0 +1 @@ +from time import * diff --git a/lang/nl/typeshed/stdlib/microbit/spi.pyi b/lang/nl/typeshed/stdlib/microbit/spi.pyi index 202c17a..064ddbf 100644 --- a/lang/nl/typeshed/stdlib/microbit/spi.pyi +++ b/lang/nl/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: miso pin (standaard 14)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """Lees bytes. (lezen) Example: ``spi.read(64)`` :param nbytes: Maximum aantal te lezen bytes. +:param out: (uit) The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/pl/typeshed/stdlib/VERSIONS b/lang/pl/typeshed/stdlib/VERSIONS new file mode 100644 index 0000000..67b710f --- /dev/null +++ b/lang/pl/typeshed/stdlib/VERSIONS @@ -0,0 +1,50 @@ +# The structure of this file is as follows: +# - Blank lines and comments starting with `#` are ignored. +# - Lines contain the name of a module, followed by a colon, +# a space, and a version range (for example: `symbol: 2.7-3.9`). +# +# Version ranges may be of the form "X.Y-A.B" or "X.Y-". The +# first form means that a module was introduced in version X.Y and last +# available in version A.B. The second form means that the module was +# introduced in version X.Y and is still available in the latest +# version of Python. +# +# If a submodule is not listed separately, it has the same lifetime as +# its parent module. +# +# Python versions before 2.7 are ignored, so any module that was already +# present in 2.7 will have "2.7" as its minimum version. Version ranges +# for unsupported versions of Python 3 (currently 3.5 and lower) are +# generally accurate but we do not guarantee their correctness. + +antigravity: 3.0- +array: 3.0- +audio: 3.0- +builtins: 3.0- +errno: 3.0- +gc: 3.0- +love: 3.0- +machine: 3.0- +math: 3.0- +microbit: 3.0- +micropython: 3.0- +music: 3.0- +neopixel: 3.0- +os: 3.0- +radio: 3.0- +random: 3.0- +speech: 3.0- +struct: 3.0- +sys: 3.0- +this: 3.0- +time: 3.0- +typing_extensions: 3.0- +typing: 3.0- +uarray: 3.0- +ucollections: 3.0- +uerrno: 3.0- +uos: 3.0- +urandom: 3.0- +ustruct: 3.0- +usys: 3.0- +utime: 3.0- \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/_typeshed/__init__.pyi b/lang/pl/typeshed/stdlib/_typeshed/__init__.pyi new file mode 100644 index 0000000..7bf6e72 --- /dev/null +++ b/lang/pl/typeshed/stdlib/_typeshed/__init__.pyi @@ -0,0 +1,168 @@ +# Utility types for typeshed +# +# See the README.md file in this directory for more information. + +import array +import sys +from os import PathLike +from typing import AbstractSet, Any, Container, Iterable, Protocol, Tuple, TypeVar, Union +from typing_extensions import Literal, final + +_KT = TypeVar("_KT") +_KT_co = TypeVar("_KT_co", covariant=True) +_KT_contra = TypeVar("_KT_contra", contravariant=True) +_VT = TypeVar("_VT") +_VT_co = TypeVar("_VT_co", covariant=True) +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) + +# Use for "self" annotations: +# def __enter__(self: Self) -> Self: ... +Self = TypeVar("Self") # noqa Y001 + +# stable +class IdentityFunction(Protocol): + def __call__(self, __x: _T) -> _T: ... + +class SupportsLessThan(Protocol): + def __lt__(self, __other: Any) -> bool: ... + +SupportsLessThanT = TypeVar("SupportsLessThanT", bound=SupportsLessThan) # noqa: Y001 + +class SupportsDivMod(Protocol[_T_contra, _T_co]): + def __divmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsRDivMod(Protocol[_T_contra, _T_co]): + def __rdivmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsLenAndGetItem(Protocol[_T_co]): + def __len__(self) -> int: ... + def __getitem__(self, __k: int) -> _T_co: ... + +# Mapping-like protocols + +# stable +class SupportsItems(Protocol[_KT_co, _VT_co]): + def items(self) -> AbstractSet[Tuple[_KT_co, _VT_co]]: ... + +# stable +class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]): + def keys(self) -> Iterable[_KT]: ... + def __getitem__(self, __k: _KT) -> _VT_co: ... + +# stable +class SupportsGetItem(Container[_KT_contra], Protocol[_KT_contra, _VT_co]): + def __getitem__(self, __k: _KT_contra) -> _VT_co: ... + +# stable +class SupportsItemAccess(SupportsGetItem[_KT_contra, _VT], Protocol[_KT_contra, _VT]): + def __setitem__(self, __k: _KT_contra, __v: _VT) -> None: ... + def __delitem__(self, __v: _KT_contra) -> None: ... + +# These aliases are simple strings in Python 2. +StrPath = Union[str, PathLike[str]] # stable +BytesPath = Union[bytes, PathLike[bytes]] # stable +StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable + +OpenTextModeUpdating = Literal[ + "r+", + "+r", + "rt+", + "r+t", + "+rt", + "tr+", + "t+r", + "+tr", + "w+", + "+w", + "wt+", + "w+t", + "+wt", + "tw+", + "t+w", + "+tw", + "a+", + "+a", + "at+", + "a+t", + "+at", + "ta+", + "t+a", + "+ta", + "x+", + "+x", + "xt+", + "x+t", + "+xt", + "tx+", + "t+x", + "+tx", +] +OpenTextModeWriting = Literal["w", "wt", "tw", "a", "at", "ta", "x", "xt", "tx"] +OpenTextModeReading = Literal["r", "rt", "tr", "U", "rU", "Ur", "rtU", "rUt", "Urt", "trU", "tUr", "Utr"] +OpenTextMode = Union[OpenTextModeUpdating, OpenTextModeWriting, OpenTextModeReading] +OpenBinaryModeUpdating = Literal[ + "rb+", + "r+b", + "+rb", + "br+", + "b+r", + "+br", + "wb+", + "w+b", + "+wb", + "bw+", + "b+w", + "+bw", + "ab+", + "a+b", + "+ab", + "ba+", + "b+a", + "+ba", + "xb+", + "x+b", + "+xb", + "bx+", + "b+x", + "+bx", +] +OpenBinaryModeWriting = Literal["wb", "bw", "ab", "ba", "xb", "bx"] +OpenBinaryModeReading = Literal["rb", "br", "rbU", "rUb", "Urb", "brU", "bUr", "Ubr"] +OpenBinaryMode = Union[OpenBinaryModeUpdating, OpenBinaryModeReading, OpenBinaryModeWriting] + +# stable +class HasFileno(Protocol): + def fileno(self) -> int: ... + +FileDescriptor = int # stable +FileDescriptorLike = Union[int, HasFileno] # stable + +# stable +class SupportsRead(Protocol[_T_co]): + def read(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsReadline(Protocol[_T_co]): + def readline(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsNoArgReadline(Protocol[_T_co]): + def readline(self) -> _T_co: ... + +# stable +class SupportsWrite(Protocol[_T_contra]): + def write(self, __s: _T_contra) -> Any: ... + +ReadableBuffer = Union[bytes, bytearray, memoryview, array.array[Any]] # stable +WriteableBuffer = Union[bytearray, memoryview, array.array[Any]] # stable + +# stable +if sys.version_info >= (3, 10): + from types import NoneType as NoneType +else: + # Used by type checkers for checks involving None (does not exist at runtime) + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... diff --git a/lang/pl/typeshed/stdlib/abc.pyi b/lang/pl/typeshed/stdlib/abc.pyi new file mode 100644 index 0000000..18bb090 --- /dev/null +++ b/lang/pl/typeshed/stdlib/abc.pyi @@ -0,0 +1,28 @@ +from _typeshed import SupportsWrite +from typing import Any, Callable, Tuple, Type, TypeVar + +_T = TypeVar("_T") +_FuncT = TypeVar("_FuncT", bound=Callable[..., Any]) + +# These definitions have special processing in mypy +class ABCMeta(type): + __abstractmethods__: frozenset[str] + def __init__( + self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any] + ) -> None: ... + def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ... + def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ... + def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ... + def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ... + +def abstractmethod(funcobj: _FuncT) -> _FuncT: ... + +class abstractproperty(property): ... + +# These two are deprecated and not supported by mypy +def abstractstaticmethod(callable: _FuncT) -> _FuncT: ... +def abstractclassmethod(callable: _FuncT) -> _FuncT: ... + +class ABC(metaclass=ABCMeta): ... + +def get_cache_token() -> object: ... diff --git a/lang/pl/typeshed/stdlib/antigravity.pyi b/lang/pl/typeshed/stdlib/antigravity.pyi new file mode 100644 index 0000000..e69de29 diff --git a/lang/pl/typeshed/stdlib/array.pyi b/lang/pl/typeshed/stdlib/array.pyi new file mode 100644 index 0000000..1e4e630 --- /dev/null +++ b/lang/pl/typeshed/stdlib/array.pyi @@ -0,0 +1,42 @@ +from typing import Generic, Iterable, MutableSequence, TypeVar, Union, overload +from typing_extensions import Literal + +_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"] +_FloatTypeCode = Literal["f", "d"] +_TypeCode = Union[_IntTypeCode, _FloatTypeCode] + +_T = TypeVar("_T", int, float) + +class array(MutableSequence[_T], Generic[_T]): + @overload + def __init__( + self: array[int], + typecode: _IntTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self: array[float], + typecode: _FloatTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self, typecode: str, __initializer: Union[bytes, Iterable[_T]] = ... + ) -> None: ... + def append(self, __v: _T) -> None: ... + def decode(self) -> str: ... + def extend(self, __bb: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> _T: ... + @overload + def __getitem__(self, s: slice) -> array[_T]: ... + @overload # type: ignore # Overrides MutableSequence + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: array[_T]) -> None: ... + def __add__(self, x: array[_T]) -> array[_T]: ... + def __iadd__(self, x: array[_T]) -> array[_T]: ... # type: ignore # Overrides MutableSequence + +ArrayType = array diff --git a/lang/pl/typeshed/stdlib/audio.pyi b/lang/pl/typeshed/stdlib/audio.pyi new file mode 100644 index 0000000..b1d39c7 --- /dev/null +++ b/lang/pl/typeshed/stdlib/audio.pyi @@ -0,0 +1,11 @@ +"""Play sounds using the micro:bit (import ``audio`` for V1 compatibility). +""" + +# Re-export for V1 compatibility. +from .microbit.audio import ( + is_playing as is_playing, + play as play, + stop as stop, + AudioFrame as AudioFrame, + SoundEffect as SoundEffect, +) diff --git a/lang/pl/typeshed/stdlib/builtins.pyi b/lang/pl/typeshed/stdlib/builtins.pyi new file mode 100644 index 0000000..8b7dfb9 --- /dev/null +++ b/lang/pl/typeshed/stdlib/builtins.pyi @@ -0,0 +1,1334 @@ +import sys +import types +from _typeshed import ( + OpenBinaryMode, + OpenTextMode, + ReadableBuffer, + Self, + StrOrBytesPath, + SupportsDivMod, + SupportsKeysAndGetItem, + SupportsLenAndGetItem, + SupportsLessThan, + SupportsLessThanT, + SupportsRDivMod, + SupportsWrite, +) +from types import CodeType, TracebackType +from typing import ( + IO, + AbstractSet, + Any, + AsyncIterable, + AsyncIterator, + BinaryIO, + ByteString, + Callable, + FrozenSet, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + MutableMapping, + MutableSequence, + MutableSet, + NoReturn, + Protocol, + Reversible, + Sequence, + Set, + Sized, + SupportsAbs, + SupportsBytes, + SupportsComplex, + SupportsFloat, + SupportsInt, + SupportsRound, + TextIO, + Tuple, + Type, + TypeVar, + Union, + ValuesView, + overload, +) +from typing_extensions import Literal, SupportsIndex, final + +if sys.version_info >= (3, 9): + from types import GenericAlias + +class _SupportsTrunc(Protocol): + def __trunc__(self) -> int: ... + +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") +_S = TypeVar("_S") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T3 = TypeVar("_T3") +_T4 = TypeVar("_T4") +_T5 = TypeVar("_T5") +_TT = TypeVar("_TT", bound="type") +_TBE = TypeVar("_TBE", bound="BaseException") + +class object: + __doc__: str | None + __dict__: dict[str, Any] + __slots__: str | Iterable[str] + __module__: str + __annotations__: dict[str, Any] + @property + def __class__(self: _T) -> Type[_T]: ... + # Ignore errors about type mismatch between property getter and setter + @__class__.setter + def __class__(self, __type: Type[object]) -> None: ... # type: ignore # noqa: F811 + def __init__(self) -> None: ... + def __new__(cls: Type[_T]) -> _T: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __eq__(self, o: object) -> bool: ... + def __ne__(self, o: object) -> bool: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + def __format__(self, format_spec: str) -> str: ... + def __getattribute__(self, name: str) -> Any: ... + def __delattr__(self, name: str) -> None: ... + def __sizeof__(self) -> int: ... + def __reduce__(self) -> str | Tuple[Any, ...]: ... + if sys.version_info >= (3, 8): + def __reduce_ex__(self, protocol: SupportsIndex) -> str | Tuple[Any, ...]: ... + else: + def __reduce_ex__(self, protocol: int) -> str | Tuple[Any, ...]: ... + def __dir__(self) -> Iterable[str]: ... + def __init_subclass__(cls) -> None: ... + +class staticmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class classmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class type(object): + __base__: type + __bases__: Tuple[type, ...] + __basicsize__: int + __dict__: dict[str, Any] + __dictoffset__: int + __flags__: int + __itemsize__: int + __module__: str + __name__: str + __qualname__: str + __text_signature__: str | None + __weakrefoffset__: int + @overload + def __init__(self, o: object) -> None: ... + @overload + def __init__( + self, name: str, bases: Tuple[type, ...], dict: dict[str, Any], **kwds: Any + ) -> None: ... + @overload + def __new__(cls, o: object) -> type: ... + @overload + def __new__( + cls: Type[_TT], + name: str, + bases: Tuple[type, ...], + namespace: dict[str, Any], + **kwds: Any, + ) -> _TT: ... + def __call__(self, *args: Any, **kwds: Any) -> Any: ... + def __subclasses__(self: _TT) -> list[_TT]: ... + def __instancecheck__(self, instance: Any) -> bool: ... + def __subclasscheck__(self, subclass: type) -> bool: ... + @classmethod + def __prepare__( + metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any + ) -> Mapping[str, Any]: ... + if sys.version_info >= (3, 10): + def __or__(self, t: Any) -> types.UnionType: ... + def __ror__(self, t: Any) -> types.UnionType: ... + +class super(object): + @overload + def __init__(self, t: Any, obj: Any) -> None: ... + @overload + def __init__(self, t: Any) -> None: ... + @overload + def __init__(self) -> None: ... + +class int: + @overload + def __new__( + cls: Type[_T], + x: str | bytes | SupportsInt | SupportsIndex | _SupportsTrunc = ..., + ) -> _T: ... + @overload + def __new__( + cls: Type[_T], x: str | bytes | bytearray, base: SupportsIndex + ) -> _T: ... + def to_bytes( + self, + length: SupportsIndex, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> bytes: ... + @classmethod + def from_bytes( + cls, + bytes: Iterable[SupportsIndex] | SupportsBytes, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> int: ... # TODO buffer object argument + def __add__(self, x: int) -> int: ... + def __sub__(self, x: int) -> int: ... + def __mul__(self, x: int) -> int: ... + def __floordiv__(self, x: int) -> int: ... + def __truediv__(self, x: int) -> float: ... + def __mod__(self, x: int) -> int: ... + def __divmod__(self, x: int) -> Tuple[int, int]: ... + def __radd__(self, x: int) -> int: ... + def __rsub__(self, x: int) -> int: ... + def __rmul__(self, x: int) -> int: ... + def __rfloordiv__(self, x: int) -> int: ... + def __rtruediv__(self, x: int) -> float: ... + def __rmod__(self, x: int) -> int: ... + def __rdivmod__(self, x: int) -> Tuple[int, int]: ... + @overload + def __pow__(self, __x: Literal[2], __modulo: int | None = ...) -> int: ... + @overload + def __pow__( + self, __x: int, __modulo: int | None = ... + ) -> Any: ... # Return type can be int or float, depending on x. + def __rpow__(self, x: int, mod: int | None = ...) -> Any: ... + def __and__(self, n: int) -> int: ... + def __or__(self, n: int) -> int: ... + def __xor__(self, n: int) -> int: ... + def __lshift__(self, n: int) -> int: ... + def __rshift__(self, n: int) -> int: ... + def __rand__(self, n: int) -> int: ... + def __ror__(self, n: int) -> int: ... + def __rxor__(self, n: int) -> int: ... + def __rlshift__(self, n: int) -> int: ... + def __rrshift__(self, n: int) -> int: ... + def __neg__(self) -> int: ... + def __pos__(self) -> int: ... + def __invert__(self) -> int: ... + def __trunc__(self) -> int: ... + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + def __round__(self, ndigits: SupportsIndex = ...) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: int) -> bool: ... + def __le__(self, x: int) -> bool: ... + def __gt__(self, x: int) -> bool: ... + def __ge__(self, x: int) -> bool: ... + def __str__(self) -> str: ... + def __float__(self) -> float: ... + def __int__(self) -> int: ... + def __abs__(self) -> int: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + def __index__(self) -> int: ... + +class float: + def __new__( + cls: Type[_T], x: SupportsFloat | SupportsIndex | str | bytes | bytearray = ... + ) -> _T: ... + def __add__(self, x: float) -> float: ... + def __sub__(self, x: float) -> float: ... + def __mul__(self, x: float) -> float: ... + def __floordiv__(self, x: float) -> float: ... + def __truediv__(self, x: float) -> float: ... + def __mod__(self, x: float) -> float: ... + def __divmod__(self, x: float) -> Tuple[float, float]: ... + def __pow__( + self, x: float, mod: None = ... + ) -> float: ... # In Python 3, returns complex if self is negative and x is not whole + def __radd__(self, x: float) -> float: ... + def __rsub__(self, x: float) -> float: ... + def __rmul__(self, x: float) -> float: ... + def __rfloordiv__(self, x: float) -> float: ... + def __rtruediv__(self, x: float) -> float: ... + def __rmod__(self, x: float) -> float: ... + def __rdivmod__(self, x: float) -> Tuple[float, float]: ... + def __rpow__(self, x: float, mod: None = ...) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... + def __trunc__(self) -> int: ... + if sys.version_info >= (3, 9): + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + @overload + def __round__(self, ndigits: None = ...) -> int: ... + @overload + def __round__(self, ndigits: SupportsIndex) -> float: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: float) -> bool: ... + def __le__(self, x: float) -> bool: ... + def __gt__(self, x: float) -> bool: ... + def __ge__(self, x: float) -> bool: ... + def __neg__(self) -> float: ... + def __pos__(self) -> float: ... + def __str__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class complex: + @overload + def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], real: str | SupportsComplex | SupportsIndex | complex + ) -> _T: ... + @property + def real(self) -> float: ... + @property + def imag(self) -> float: ... + def __add__(self, x: complex) -> complex: ... + def __sub__(self, x: complex) -> complex: ... + def __mul__(self, x: complex) -> complex: ... + def __pow__(self, x: complex, mod: None = ...) -> complex: ... + def __truediv__(self, x: complex) -> complex: ... + def __radd__(self, x: complex) -> complex: ... + def __rsub__(self, x: complex) -> complex: ... + def __rmul__(self, x: complex) -> complex: ... + def __rpow__(self, x: complex, mod: None = ...) -> complex: ... + def __rtruediv__(self, x: complex) -> complex: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __neg__(self) -> complex: ... + def __pos__(self) -> complex: ... + def __str__(self) -> str: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class str(Sequence[str]): + @overload + def __new__(cls: Type[_T], o: object = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], o: bytes, encoding: str = ..., errors: str = ... + ) -> _T: ... + def count( + self, + x: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ... + def endswith( + self, + __suffix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def format(self, *args: object, **kwargs: object) -> str: ... + def index( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable: Iterable[str]) -> str: ... + def lower(self) -> str: ... + def lstrip(self, __chars: str | None = ...) -> str: ... + def replace(self, __old: str, __new: str, __count: SupportsIndex = ...) -> str: ... + def rfind( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def rstrip(self, __chars: str | None = ...) -> str: ... + def split( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def startswith( + self, + __prefix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __chars: str | None = ...) -> str: ... + def upper(self) -> str: ... + def __add__(self, s: str) -> str: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: str) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ge__(self, x: str) -> bool: ... + def __getitem__(self, i: int | slice) -> str: ... + def __gt__(self, x: str) -> bool: ... + def __hash__(self) -> int: ... + def __iter__(self) -> Iterator[str]: ... + def __le__(self, x: str) -> bool: ... + def __len__(self) -> int: ... + def __lt__(self, x: str) -> bool: ... + def __mod__(self, x: Any) -> str: ... + def __mul__(self, n: SupportsIndex) -> str: ... + def __ne__(self, x: object) -> bool: ... + def __repr__(self) -> str: ... + def __rmul__(self, n: SupportsIndex) -> str: ... + def __str__(self) -> str: ... + def __getnewargs__(self) -> Tuple[str]: ... + +class bytes(ByteString): + @overload + def __new__(cls: Type[_T], ints: Iterable[SupportsIndex]) -> _T: ... + @overload + def __new__(cls: Type[_T], string: str, encoding: str, errors: str = ...) -> _T: ... + @overload + def __new__(cls: Type[_T], length: SupportsIndex) -> _T: ... + @overload + def __new__(cls: Type[_T]) -> _T: ... + @overload + def __new__(cls: Type[_T], o: SupportsBytes) -> _T: ... + def count( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def endswith( + self, + __suffix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def index( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable_of_bytes: Iterable[ByteString | memoryview]) -> bytes: ... + def lower(self) -> bytes: ... + def lstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def replace( + self, __old: bytes, __new: bytes, __count: SupportsIndex = ... + ) -> bytes: ... + def rfind( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def rstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def split( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def startswith( + self, + __prefix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __bytes: bytes | None = ...) -> bytes: ... + def upper(self) -> bytes: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytes: ... + def __add__(self, s: bytes) -> bytes: ... + def __mul__(self, n: SupportsIndex) -> bytes: ... + def __rmul__(self, n: SupportsIndex) -> bytes: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + def __getnewargs__(self) -> Tuple[bytes]: ... + +class bytearray: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, ints: Iterable[SupportsIndex]) -> None: ... + @overload + def __init__(self, string: str, encoding: str, errors: str = ...) -> None: ... + @overload + def __init__(self, length: SupportsIndex) -> None: ... + def append(self, __item: SupportsIndex) -> None: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def extend(self, __iterable_of_ints: Iterable[SupportsIndex]) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytearray: ... + @overload + def __setitem__(self, i: SupportsIndex, x: SupportsIndex) -> None: ... + @overload + def __setitem__(self, s: slice, x: Iterable[SupportsIndex] | bytes) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, s: bytes) -> bytearray: ... + def __iadd__(self, s: Iterable[int]) -> bytearray: ... + def __mul__(self, n: SupportsIndex) -> bytearray: ... + def __rmul__(self, n: SupportsIndex) -> bytearray: ... + def __imul__(self, n: SupportsIndex) -> bytearray: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + +class memoryview(Sized, Sequence[int]): + def __init__(self, obj: ReadableBuffer) -> None: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> memoryview: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + def __len__(self) -> int: ... + @overload + def __setitem__(self, s: slice, o: bytes) -> None: ... + @overload + def __setitem__(self, i: SupportsIndex, o: SupportsIndex) -> None: ... + +@final +class bool(int): + def __new__(cls: Type[_T], __o: object = ...) -> _T: ... + @overload + def __and__(self, x: bool) -> bool: ... + @overload + def __and__(self, x: int) -> int: ... + @overload + def __or__(self, x: bool) -> bool: ... + @overload + def __or__(self, x: int) -> int: ... + @overload + def __xor__(self, x: bool) -> bool: ... + @overload + def __xor__(self, x: int) -> int: ... + @overload + def __rand__(self, x: bool) -> bool: ... + @overload + def __rand__(self, x: int) -> int: ... + @overload + def __ror__(self, x: bool) -> bool: ... + @overload + def __ror__(self, x: int) -> int: ... + @overload + def __rxor__(self, x: bool) -> bool: ... + @overload + def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + +class slice(object): + start: Any + step: Any + stop: Any + __hash__: None # type: ignore + def indices(self, len: SupportsIndex) -> Tuple[int, int, int]: ... + +class tuple(Sequence[_T_co], Generic[_T_co]): + def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ... + def __len__(self) -> int: ... + def __contains__(self, x: object) -> bool: ... + @overload + def __getitem__(self, x: int) -> _T_co: ... + @overload + def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __le__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ... + @overload + def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ... + @overload + def __add__(self, x: Tuple[_T, ...]) -> Tuple[_T_co | _T, ...]: ... + def __mul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def __rmul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def count(self, __value: Any) -> int: ... + def index( + self, __value: Any, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + +# Can we remove this? +class function: + # TODO not defined in builtins! + __name__: str + __module__: str + __code__: CodeType + __qualname__: str + __annotations__: dict[str, Any] + +class frozenset(AbstractSet[_T_co], Generic[_T_co]): + @overload + def __new__(cls: type[Self]) -> Self: ... + @overload + def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ... + def copy(self) -> FrozenSet[_T_co]: ... + def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def isdisjoint(self, s: Iterable[_T_co]) -> bool: ... + def issubset(self, s: Iterable[object]) -> bool: ... + def issuperset(self, s: Iterable[object]) -> bool: ... + def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class list(MutableSequence[_T], Generic[_T]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, iterable: Iterable[_T]) -> None: ... + def clear(self) -> None: ... + def copy(self) -> list[_T]: ... + def append(self, __object: _T) -> None: ... + def extend(self, __iterable: Iterable[_T]) -> None: ... + def pop(self, __index: SupportsIndex = ...) -> _T: ... + def index( + self, __value: _T, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + def count(self, __value: _T) -> int: ... + def insert(self, __index: SupportsIndex, __object: _T) -> None: ... + def remove(self, __value: _T) -> None: ... + def reverse(self) -> None: ... + @overload + def sort( + self: list[SupportsLessThanT], *, key: None = ..., reverse: bool = ... + ) -> None: ... + @overload + def sort( + self, *, key: Callable[[_T], SupportsLessThan], reverse: bool = ... + ) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> _T: ... + @overload + def __getitem__(self, s: slice) -> list[_T]: ... + @overload + def __setitem__(self, i: SupportsIndex, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, x: list[_T]) -> list[_T]: ... + def __iadd__(self: _S, x: Iterable[_T]) -> _S: ... + def __mul__(self, n: SupportsIndex) -> list[_T]: ... + def __rmul__(self, n: SupportsIndex) -> list[_T]: ... + def __imul__(self: _S, n: SupportsIndex) -> _S: ... + def __contains__(self, o: object) -> bool: ... + def __reversed__(self) -> Iterator[_T]: ... + def __gt__(self, x: list[_T]) -> bool: ... + def __ge__(self, x: list[_T]) -> bool: ... + def __lt__(self, x: list[_T]) -> bool: ... + def __le__(self, x: list[_T]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): + @overload + def __init__(self: dict[_KT, _VT]) -> None: ... + @overload + def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ... + @overload + def __init__( + self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT + ) -> None: ... + @overload + def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ... + def clear(self) -> None: ... + def copy(self) -> dict[_KT, _VT]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ... + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT]: ... + def items(self) -> ItemsView[_KT, _VT]: ... + @classmethod + @overload + def fromkeys( + cls, __iterable: Iterable[_T], __value: None = ... + ) -> dict[_T, Any | None]: ... + @classmethod + @overload + def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ... + def __len__(self) -> int: ... + def __getitem__(self, k: _KT) -> _VT: ... + def __setitem__(self, k: _KT, v: _VT) -> None: ... + def __delitem__(self, v: _KT) -> None: ... + def __iter__(self) -> Iterator[_KT]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __or__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ror__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ior__(self, __value: Mapping[_KT, _VT]) -> dict[_KT, _VT]: ... # type: ignore + +class set(MutableSet[_T], Generic[_T]): + def __init__(self, iterable: Iterable[_T] = ...) -> None: ... + def add(self, element: _T) -> None: ... + def clear(self) -> None: ... + def copy(self) -> Set[_T]: ... + def difference(self, *s: Iterable[Any]) -> Set[_T]: ... + def difference_update(self, *s: Iterable[Any]) -> None: ... + def discard(self, element: _T) -> None: ... + def intersection(self, *s: Iterable[Any]) -> Set[_T]: ... + def intersection_update(self, *s: Iterable[Any]) -> None: ... + def isdisjoint(self, s: Iterable[Any]) -> bool: ... + def issubset(self, s: Iterable[Any]) -> bool: ... + def issuperset(self, s: Iterable[Any]) -> bool: ... + def pop(self) -> _T: ... + def remove(self, element: _T) -> None: ... + def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ... + def symmetric_difference_update(self, s: Iterable[_T]) -> None: ... + def union(self, *s: Iterable[_T]) -> Set[_T]: ... + def update(self, *s: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __or__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ior__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __sub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __isub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __xor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ixor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): + def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ... + def __iter__(self) -> Iterator[Tuple[int, _T]]: ... + def __next__(self) -> Tuple[int, _T]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class range(Sequence[int]): + start: int + stop: int + step: int + @overload + def __init__(self, stop: SupportsIndex) -> None: ... + @overload + def __init__( + self, start: SupportsIndex, stop: SupportsIndex, step: SupportsIndex = ... + ) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> range: ... + def __repr__(self) -> str: ... + def __reversed__(self) -> Iterator[int]: ... + +class property(object): + fget: Callable[[Any], Any] | None + fset: Callable[[Any, Any], None] | None + fdel: Callable[[Any], None] | None + def __init__( + self, + fget: Callable[[Any], Any] | None = ..., + fset: Callable[[Any, Any], None] | None = ..., + fdel: Callable[[Any], None] | None = ..., + doc: str | None = ..., + ) -> None: ... + def getter(self, fget: Callable[[Any], Any]) -> property: ... + def setter(self, fset: Callable[[Any, Any], None]) -> property: ... + def deleter(self, fdel: Callable[[Any], None]) -> property: ... + def __get__(self, obj: Any, type: type | None = ...) -> Any: ... + def __set__(self, obj: Any, value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +class _NotImplementedType(Any): # type: ignore + # A little weird, but typing the __call__ as NotImplemented makes the error message + # for NotImplemented() much better + __call__: NotImplemented # type: ignore + +NotImplemented: _NotImplementedType + +def abs(__x: SupportsAbs[_T]) -> _T: ... +def all(__iterable: Iterable[object]) -> bool: ... +def any(__iterable: Iterable[object]) -> bool: ... +def bin(__number: int | SupportsIndex) -> str: ... + +if sys.version_info >= (3, 7): + def breakpoint(*args: Any, **kws: Any) -> None: ... + +def callable(__obj: object) -> bool: ... +def chr(__i: int) -> str: ... + +# We define this here instead of using os.PathLike to avoid import cycle issues. +# See https://github.com/python/typeshed/pull/991#issuecomment-288160993 +_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True) + +class _PathLike(Protocol[_AnyStr_co]): + def __fspath__(self) -> _AnyStr_co: ... + +if sys.version_info >= (3, 10): + def aiter(__iterable: AsyncIterable[_T]) -> AsyncIterator[_T]: ... + @overload + async def anext(__i: AsyncIterator[_T]) -> _T: ... + @overload + async def anext(__i: AsyncIterator[_T], default: _VT) -> _T | _VT: ... + +def delattr(__obj: Any, __name: str) -> None: ... +def dir(__o: object = ...) -> list[str]: ... +@overload +def divmod(__x: SupportsDivMod[_T_contra, _T_co], __y: _T_contra) -> _T_co: ... +@overload +def divmod(__x: _T_contra, __y: SupportsRDivMod[_T_contra, _T_co]) -> _T_co: ... +def eval( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... +def exec( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... + +class filter(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __function: None, __iterable: Iterable[_T | None]) -> None: ... + @overload + def __init__( + self, __function: Callable[[_T], Any], __iterable: Iterable[_T] + ) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +@overload +def getattr(__o: object, name: str) -> Any: ... + +# While technically covered by the last overload, spelling out the types for None and bool +# help mypy out in some tricky situations involving type context (aka bidirectional inference) +@overload +def getattr(__o: object, name: str, __default: None) -> Any | None: ... +@overload +def getattr(__o: object, name: str, __default: bool) -> Any | bool: ... +@overload +def getattr(__o: object, name: str, __default: _T) -> Any | _T: ... +def globals() -> dict[str, Any]: ... +def hasattr(__obj: object, __name: str) -> bool: ... +def hash(__obj: object) -> int: ... +def help(*args: Any, **kwds: Any) -> None: ... +def hex(__number: int | SupportsIndex) -> str: ... +def id(__obj: object) -> int: ... +def input(__prompt: Any = ...) -> str: ... +@overload +def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T | None], __sentinel: None) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ... + +if sys.version_info >= (3, 10): + def isinstance( + __obj: object, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + def issubclass( + __cls: type, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + +else: + def isinstance( + __obj: object, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + def issubclass( + __cls: type, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + +def len(__obj: Sized) -> int: ... +def locals() -> dict[str, Any]: ... + +class map(Iterator[_S], Generic[_S]): + @overload + def __init__(self, __func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[..., _S], + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> None: ... + def __iter__(self) -> Iterator[_S]: ... + def __next__(self) -> _S: ... + +@overload +def max( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def max( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def max(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def max( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def min( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def min( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def min(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def min( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def next(__i: Iterator[_T]) -> _T: ... +@overload +def next(__i: Iterator[_T], default: _VT) -> _T | _VT: ... +def oct(__number: int | SupportsIndex) -> str: ... + +_OpenFile = Union[StrOrBytesPath, int] +_Opener = Callable[[str, int], int] + +# Text mode: always returns a TextIOWrapper +@overload +def open( + file: _OpenFile, + mode: OpenTextMode = ..., + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> TextIO: ... + +# Unbuffered binary mode: returns a FileIO +@overload +def open( + file: _OpenFile, + mode: OpenBinaryMode, + buffering: int = ..., + encoding: None = ..., + errors: None = ..., + newline: None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> BinaryIO: ... + +# Fallback if mode is not specified +@overload +def open( + file: _OpenFile, + mode: str, + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> IO[Any]: ... +def ord(__c: str | bytes) -> int: ... +def print( + *values: object, + sep: str | None = ..., + end: str | None = ..., + file: SupportsWrite[str] | None = ..., + flush: bool = ..., +) -> None: ... + +_E = TypeVar("_E", contravariant=True) +_M = TypeVar("_M", contravariant=True) + +class _SupportsPow2(Protocol[_E, _T_co]): + def __pow__(self, __other: _E) -> _T_co: ... + +class _SupportsPow3(Protocol[_E, _M, _T_co]): + def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ... + +if sys.version_info >= (3, 8): + @overload + def pow( + base: int, exp: int, mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(base: int, exp: int, mod: int) -> int: ... + @overload + def pow(base: float, exp: float, mod: None = ...) -> float: ... + @overload + def pow(base: _SupportsPow2[_E, _T_co], exp: _E) -> _T_co: ... + @overload + def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ... + +else: + @overload + def pow( + __base: int, __exp: int, __mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(__base: int, __exp: int, __mod: int) -> int: ... + @overload + def pow(__base: float, __exp: float, __mod: None = ...) -> float: ... + @overload + def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ... + @overload + def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ... + +class reversed(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __sequence: Reversible[_T]) -> None: ... + @overload + def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +def repr(__obj: object) -> str: ... +@overload +def round(number: SupportsRound[Any]) -> int: ... +@overload +def round(number: SupportsRound[Any], ndigits: None) -> int: ... +@overload +def round(number: SupportsRound[_T], ndigits: SupportsIndex) -> _T: ... +def setattr(__obj: object, __name: str, __value: Any) -> None: ... +@overload +def sorted( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., reverse: bool = ... +) -> list[SupportsLessThanT]: ... +@overload +def sorted( + __iterable: Iterable[_T], + *, + key: Callable[[_T], SupportsLessThan], + reverse: bool = ..., +) -> list[_T]: ... + +if sys.version_info >= (3, 8): + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], start: _S) -> _T | _S: ... + +else: + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], __start: _S) -> _T | _S: ... + +class zip(Iterator[_T_co], Generic[_T_co]): + @overload + def __new__(cls, __iter1: Iterable[_T1]) -> zip[Tuple[_T1]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2] + ) -> zip[Tuple[_T1, _T2]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3] + ) -> zip[Tuple[_T1, _T2, _T3]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> zip[Tuple[_T1, _T2, _T3, _T4]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> zip[Tuple[Any, ...]]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __next__(self) -> _T_co: ... + +def __import__( + name: str, + globals: Mapping[str, Any] | None = ..., + locals: Mapping[str, Any] | None = ..., + fromlist: Sequence[str] = ..., + level: int = ..., +) -> Any: ... + +# Actually the type of Ellipsis is , but since it's +# not exposed anywhere under that name, we make it private here. +class ellipsis: ... + +Ellipsis: ellipsis + +class BaseException(object): + args: Tuple[Any, ...] + __cause__: BaseException | None + __context__: BaseException | None + __suppress_context__: bool + __traceback__: TracebackType | None + def __init__(self, *args: object) -> None: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def with_traceback(self: _TBE, tb: TracebackType | None) -> _TBE: ... + +class GeneratorExit(BaseException): ... +class KeyboardInterrupt(BaseException): ... + +class SystemExit(BaseException): + code: int + +class Exception(BaseException): ... + +class StopIteration(Exception): + value: Any + +_StandardError = Exception + +class OSError(Exception): + errno: int + strerror: str + # filename, filename2 are actually str | bytes | None + filename: Any + filename2: Any + if sys.platform == "win32": + winerror: int + +if sys.platform == "win32": + WindowsError = OSError + +class ArithmeticError(_StandardError): ... +class AssertionError(_StandardError): ... + +class AttributeError(_StandardError): + if sys.version_info >= (3, 10): + name: str + obj: object + +class EOFError(_StandardError): ... + +class ImportError(_StandardError): + def __init__( + self, *args: object, name: str | None = ..., path: str | None = ... + ) -> None: ... + name: str | None + path: str | None + msg: str # undocumented + +class LookupError(_StandardError): ... +class MemoryError(_StandardError): ... + +class NameError(_StandardError): + if sys.version_info >= (3, 10): + name: str + +class RuntimeError(_StandardError): ... + +class StopAsyncIteration(Exception): + value: Any + +class SyntaxError(_StandardError): + msg: str + lineno: int | None + offset: int | None + text: str | None + filename: str | None + if sys.version_info >= (3, 10): + end_lineno: int | None + end_offset: int | None + +class TypeError(_StandardError): ... +class ValueError(_StandardError): ... +class FloatingPointError(ArithmeticError): ... +class OverflowError(ArithmeticError): ... +class ZeroDivisionError(ArithmeticError): ... +class IndexError(LookupError): ... +class KeyError(LookupError): ... +class NotImplementedError(RuntimeError): ... +class IndentationError(SyntaxError): ... +class TabError(IndentationError): ... diff --git a/lang/pl/typeshed/stdlib/collections/__init__.pyi b/lang/pl/typeshed/stdlib/collections/__init__.pyi new file mode 100644 index 0000000..8815a4b --- /dev/null +++ b/lang/pl/typeshed/stdlib/collections/__init__.pyi @@ -0,0 +1,60 @@ +import sys +from typing import ( + Any, + Dict, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Optional, + Reversible, + Tuple, + Type, + TypeVar, + Union, + ValuesView, +) + +_S = TypeVar("_S") +_T = TypeVar("_T") +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") + +if sys.version_info >= (3, 7): + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + rename: bool = ..., + module: Optional[str] = ..., + defaults: Optional[Iterable[Any]] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +else: + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + verbose: bool = ..., + rename: bool = ..., + module: Optional[str] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +class _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]): + def __reversed__(self) -> Iterator[_KT]: ... + +class _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]): + def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ... + +class _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]): + def __reversed__(self) -> Iterator[_VT]: ... + +class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]): + def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ... + def move_to_end(self, key: _KT, last: bool = ...) -> None: ... + def copy(self: _S) -> _S: ... + def __reversed__(self) -> Iterator[_KT]: ... + def keys(self) -> _OrderedDictKeysView[_KT]: ... + def items(self) -> _OrderedDictItemsView[_KT, _VT]: ... + def values(self) -> _OrderedDictValuesView[_VT]: ... diff --git a/lang/pl/typeshed/stdlib/errno.pyi b/lang/pl/typeshed/stdlib/errno.pyi new file mode 100644 index 0000000..6ff1c70 --- /dev/null +++ b/lang/pl/typeshed/stdlib/errno.pyi @@ -0,0 +1,26 @@ +from typing import Mapping + +errorcode: Mapping[int, str] + +EACCES: int +EADDRINUSE: int +EAGAIN: int +EALREADY: int +EBADF: int +ECONNABORTED: int +ECONNREFUSED: int +ECONNRESET: int +EEXIST: int +EHOSTUNREACH: int +EINPROGRESS: int +EINVAL: int +EIO: int +EISDIR: int +ENOBUFS: int +ENODEV: int +ENOENT: int +ENOMEM: int +ENOTCONN: int +EOPNOTSUPP: int +EPERM: int +ETIMEDOUT: int diff --git a/lang/pl/typeshed/stdlib/gc.pyi b/lang/pl/typeshed/stdlib/gc.pyi new file mode 100644 index 0000000..5e50259 --- /dev/null +++ b/lang/pl/typeshed/stdlib/gc.pyi @@ -0,0 +1,68 @@ +"""Steruj zbieraniem sieci""" +from typing import overload + +def enable() -> None: + """Włącz automatyczne zbieranie śmieci.""" + ... + +def disable() -> None: + """Wyłącz automatyczne zbieranie śmieci. + +Heap memory can still be allocated, +and garbage collection can still be initiated manually using ``gc.collect``.""" + +def collect() -> None: + """Uruchom zbieranie śmieci.""" + ... + +def mem_alloc() -> int: + """Znajdź liczbę przydzielonych bajtów sterty pamięci RAM. + +:return: The number of bytes allocated. + +This function is MicroPython extension.""" + ... + +def mem_free() -> int: + """Znajdź liczbę bajtów dostępnej sterty pamięci RAM lub -1, jeśli ta liczba nie jest znana. + +:return: The number of bytes free. + +This function is MicroPython extension.""" + ... + +@overload +def threshold() -> int: + """Zapytanie o dodatkowy próg przydziału GC. + +:return: The GC allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different.""" + ... + +@overload +def threshold(amount: int) -> None: + """Ustaw próg dodatkowego przydziału GC. + +Normally, a collection is triggered only when a new allocation +cannot be satisfied, i.e. on an out-of-memory (OOM) condition. +If this function is called, in addition to OOM, a collection +will be triggered each time after ``amount`` bytes have been +allocated (in total, since the previous time such an amount of bytes +have been allocated). ``amount`` is usually specified as less than the +full heap size, with the intention to trigger a collection earlier than when the +heap becomes exhausted, and in the hope that an early collection will prevent +excessive memory fragmentation. This is a heuristic measure, the effect +of which will vary from application to application, as well as +the optimal value of the ``amount`` parameter. + +A value of -1 means a disabled allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different. + +:param amount: Liczba bajtów, po których powinno zostać uruchomione zbieranie śmieci.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/log.pyi b/lang/pl/typeshed/stdlib/log.pyi new file mode 100644 index 0000000..4aa875f --- /dev/null +++ b/lang/pl/typeshed/stdlib/log.pyi @@ -0,0 +1,89 @@ +"""Zaloguj dane do swojego micro:bita V2.""" +from typing import Literal, Mapping, Optional, Union, overload +MILLISECONDS = 1 +"""Format znacznika czasu w milisekundach.""" +SECONDS = 10 +"""Format znacznika czasu w sekundach.""" +MINUTES = 600 +"""Format znacznika czasu w minutach.""" +HOURS = 36000 +"""Format znacznika czasu w godzinach.""" +DAYS = 864000 +"""Format znacznika czasu w dniach.""" + +def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None: + """Ustaw nagłówek pliku dziennika. + +Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)`` + +Ideally this function should be called a single time, before any data is +logged, to configure the data table header once. + +If a log file already exists when the program starts, or if this function +is called multiple times, it will check the labels already defined in the +log file. If this function call contains any new labels not already +present, it will generate a new header row with the additional columns. + +By default the first column contains a timestamp for each row. The time +unit can be selected via the timestamp argument. + +:param *labels: Dowolna liczba argumentów pozycyjnych, każdy odpowiadający wpisowi w nagłówku dziennika. +:param timestamp: Wybierz jednostkę znacznika czasu, która będzie automatycznie dodana jako pierwsza kolumna w każdym wierszu. Wartości znacznika czasu mogą być jedną z ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` lub ``None``, aby wyłączyć znacznik czasu. Wartością domyślną jest ``log.SECONDS``.""" + ... + +@overload +def add(data_dictionary: Optional[Mapping[str, Union[str, int, float]]]) -> None: + """Dodaj wiersz danych do dziennika poprzez podanie słownika nagłówków i wartości. + +Example: ``log.add({ 'temp': temperature() })`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row. + +:param data_dictionary: Dane do logowania jako słownik z kluczem dla każdego nagłówka.""" + ... + +@overload +def add(**kwargs: Union[str, int, float]) -> None: + """Dodaj wiersz danych do dziennika używając argumentów słów kluczowych. (dodaj) + +Example: ``log.add(temp=temperature())`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row.""" + ... + +def delete(full=False): + """Usuwa zawartość wpisu, w tym nagłówki. + +Example: ``log.delete()`` + +To add the log headers again the ``set_labels`` function should to be called after this function. + +There are two erase modes; “full” completely removes the data from the physical storage, +and “fast” invalidates the data without removing it. + +:param full: ``True`` wybiera usunięcie "pełne" i ``False`` wybiera metodę "szybkiego" usunięcia.""" + ... + +def set_mirroring(serial: bool): + """Skonfiguruj lustrzane odbicie logowania danych do wyjścia szeregowego. + +Example: ``log.set_mirroring(True)`` + +Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. + +:param serial: ``True`` umożliwia odbicie lustrzane danych na szeregowe wyjście.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/love.pyi b/lang/pl/typeshed/stdlib/love.pyi new file mode 100644 index 0000000..9018624 --- /dev/null +++ b/lang/pl/typeshed/stdlib/love.pyi @@ -0,0 +1 @@ +def badaboom() -> None: ... diff --git a/lang/pl/typeshed/stdlib/machine.pyi b/lang/pl/typeshed/stdlib/machine.pyi new file mode 100644 index 0000000..70046a9 --- /dev/null +++ b/lang/pl/typeshed/stdlib/machine.pyi @@ -0,0 +1,84 @@ +"""Narzędzia niskiego poziomu.""" +from typing import Any +from .microbit import MicroBitDigitalPin + +def unique_id() -> bytes: + """Pobierz ciąg bajtów z unikatowym identyfikatorem płytki. + +Example: ``machine.unique_id()`` + +:return: An identifier that varies from one board instance to another.""" + ... + +def reset() -> None: + """Zresetuj urządzenie w sposób podobny do naciśnięcia zewnętrznego przycisku RESET. + +Example: ``machine.reset()``""" + ... + +def freq() -> int: + """Uzyskaj częstotliwość procesora w hercach + +Example: ``machine.freq()`` + +:return: The CPU frequency.""" + ... + +def disable_irq() -> Any: + """Wyłącz żądania przerwań. + +Example: ``interrupt_state = machine.disable_irq()`` + +:return: the previous IRQ state which should be considered an opaque value + +The return value should be passed to the ``enable_irq`` function to restore +interrupts to their original state.""" + ... + +def enable_irq(state: Any) -> None: + """Ponownie włącz żądania przerwań. + +Example: ``machine.enable_irq(interrupt_state)`` + +:param state: Wartość, która została zwrócona z ostatniego wywołania funkcji ``disable_irq``.""" + ... + +def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int: + """Czas pulsowania na pinie. + +Example: ``time_pulse_us(pin0, 1)`` + +If the current input value of the pin is different to ``pulse_level``, the +function first waits until the pin input becomes equal to +``pulse_level``, then times the duration that the pin is equal to +``pulse_level``. If the pin is already equal to ``pulse_level`` then timing +starts straight away. + +:param pin: Pin do użycia +:param pulse_level: 0 do czasu niskiego pulsu lub 1 do czasu wysokiego pulsu +:param timeout_us: Mikrosekundowy limit czasu +:return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end""" + ... + +class mem: + """Klasa dla widoków pamięci ``mem8``, ``mem16`` i ``mem32``.""" + + def __getitem__(self, address: int) -> int: + """Uzyskaj dostęp do wartości z pamięci. + +:param address: Adres pamięci. +:return: The value at that address as an integer.""" + ... + + def __setitem__(self, address: int, value: int) -> None: + """Ustaw wartość dla podanego adresu. + +:param address: Adres pamięci. +:param value: Wartość całkowita do ustawiania.""" + ... +mem8: mem +"""8-bitowy widok pamięci.""" +mem16: mem +"""16-bitowy widok pamięci.""" +mem32: mem +"""32-bitowy widok pamięci.""" \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/math.pyi b/lang/pl/typeshed/stdlib/math.pyi new file mode 100644 index 0000000..e61fbe3 --- /dev/null +++ b/lang/pl/typeshed/stdlib/math.pyi @@ -0,0 +1,246 @@ +"""Funkcje matematyczne.""" +from typing import Tuple + +def acos(x: float) -> float: + """Obliczyć odwrotność cosinusa. + +Example: ``math.acos(1)`` + +:param x: Liczba +:return: The inverse cosine of ``x``""" + ... + +def asin(x: float) -> float: + """Obliczyć odwrotność sinusa. + +Example: ``math.asin(0)`` + +:param x: Liczba +:return: The inverse sine of ``x``""" + ... + +def atan(x: float) -> float: + """Oblicz odwrotność tangensa. + +Example: ``math.atan(0)`` + +:param x: Liczba +:return: The inverse tangent of ``x``""" + ... + +def atan2(y: float, x: float) -> float: + """Oblicz wartość główną odwrotności tangensa ``y/x``. + +Example: ``math.atan2(0, -1)`` + +:param y: Liczba +:param x: Liczba +:return: The principal value of the inverse tangent of ``y/x``""" + ... + +def ceil(x: float) -> float: + """Zaokrąglij liczbę w kierunku dodatniej nieskończoności. + +Example: ``math.ceil(0.1)`` + +:param x: Liczba +:return: ``x`` rounded towards positive infinity.""" + ... + +def copysign(x: float, y: float) -> float: + """Oblicz ``x`` ze znakiem ``y``. + +Example: ``math.copysign(1, -1)`` + +:param x: Liczba +:param y: Źródło znaku dla wartości zwracanej +:return: ``x`` with the sign of ``y``""" + ... + +def cos(x: float) -> float: + """Oblicz cosinus ``x``. + +Example: ``math.cos(0)`` + +:param x: Liczba +:return: The cosine of ``x``""" + ... + +def degrees(x: float) -> float: + """Konwertuj radiany na stopnie. + +Example: ``math.degrees(2 * math.pi)`` + +:param x: Wartość w radianach +:return: The value converted to degrees""" + ... + +def exp(x: float) -> float: + """Oblicz potęgę ``x``. + +Example: ``math.exp(1)`` + +:param x: Liczba +:return: The exponential of ``x``.""" + ... + +def fabs(x: float) -> float: + """Zwróć wartość bezwzględną ``x``. + +Example: ``math.fabs(-0.1)`` + +:param x: Liczba +:return: The absolute value of ``x``""" + ... + +def floor(x: float) -> int: + """Zaokrąglij liczbę w kierunku ujemnej nieskończoności. + +Example: ``math.floor(0.9)`` + +:param x: Liczba +:return: ``x`` rounded towards negative infinity.""" + ... + +def fmod(x: float, y: float) -> float: + """Oblicz resztę z ``x/y``. + +Example: ``math.fmod(10, 3)`` + +:param x: Licznik +:param y: Mianownik""" + ... + +def frexp(x: float) -> Tuple[float, int]: + """Rozkłada liczbę zmiennopozycyjną na mantysę i wykładnik. + +Example: ``mantissa, exponent = math.frexp(2)`` + +The returned value is the tuple ``(m, e)`` such that ``x == m * 2**e`` +exactly. If ``x == 0`` then the function returns ``(0.0, 0)``, otherwise +the relation ``0.5 <= abs(m) < 1`` holds. + +:param x: Liczba zmiennopozycyjna +:return: A tuple of length two containing its mantissa then exponent""" + ... + +def isfinite(x: float) -> bool: + """Sprawdź, czy wartość jest skończona. + +Example: ``math.isfinite(float('inf'))`` + +:param x: Liczba. +:return: ``True`` if ``x`` is finite, ``False`` otherwise.""" + ... + +def isinf(x: float) -> bool: + """Sprawdź, czy wartość jest nieskończona. + +Example: ``math.isinf(float('-inf'))`` + +:param x: Liczba. +:return: ``True`` if ``x`` is infinite, ``False`` otherwise.""" + ... + +def isnan(x: float) -> bool: + """Sprawdź, czy wartość nie jest liczbą (NaN). + +Example: ``math.isnan(float('nan'))`` + +:param x: Liczba +:return: ``True`` if ``x`` is not-a-number (NaN), ``False`` otherwise.""" + ... + +def ldexp(x: float, exp: int) -> float: + """Oblicz ``x * (2**exp)``. + +Example: ``math.ldexp(0.5, 2)`` + +:param x: Liczba +:param exp: Wykładnik całkowity +:return: ``x * (2**exp)``""" + ... + +def log(x: float, base: float=e) -> float: + """Oblicz logarytm z ``x`` przy podanej podstawie (domyślnie loggorytm naturalny). + +Example: ``math.log(math.e)`` + +With one argument, return the natural logarithm of x (to base e). + +With two arguments, return the logarithm of x to the given base, calculated as ``log(x)/log(base)``. + +:param x: Liczba +:param base: Podstawa do użycia +:return: The natural logarithm of ``x``""" + ... + +def modf(x: float) -> Tuple[float, float]: + """Oblicz część ułamkową i całkowitą z ``x``. + +Example: ``fractional, integral = math.modf(1.5)`` + +:param x: Liczba +:return: A tuple of two floats representing the fractional then integral parts of ``x``. + +Both the fractional and integral values have the same sign as ``x``.""" + ... + +def pow(x: float, y: float) -> float: + """Zwraca ``x`` do potęgi ``y``. + +Example: ``math.pow(4, 0.5)`` + +:param x: Liczba +:param y: Wykładnik +:return: ``x`` to the power of ``y``""" + ... + +def radians(x: float) -> float: + """Konwertuj stopnie na radiany. + +Example: ``math.radians(360)`` + +:param x: Wartość w stopniach +:return: The value converted to radians""" + ... + +def sin(x: float) -> float: + """Oblicz sinus ``x``. + +Example: ``math.sin(math.pi/2)`` + +:param x: Liczba +:return: The sine of ``x``""" + ... + +def sqrt(x: float) -> float: + """Oblicz pierwiastek kwadratowy z ``x``. + +Example: ``math.sqrt(4)`` + +:param x: Liczba +:return: The square root of ``x``""" + ... + +def tan(x: float) -> float: + """Oblicz tangens z ``x``. + +Example: ``math.tan(0)`` + +:param x: Liczba +:return: The tangent of ``x``.""" + ... + +def trunc(x: float) -> int: + """Zaokrąglij liczbę w kierunku 0. + +Example: ``math.trunc(-0.9)`` + +:param x: Liczba +:return: ``x`` rounded towards zero.""" + ... +e: float +"""Podstawa logarytmu naturalnego""" +pi: float +"""Stosunek obwodu okręgu do jego średnicy""" \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/__init__.pyi b/lang/pl/typeshed/stdlib/microbit/__init__.pyi new file mode 100644 index 0000000..a40d3d6 --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/__init__.pyi @@ -0,0 +1,711 @@ +"""Piny, obrazy, dźwięki, temperatura i głośność.""" +from typing import Any, Callable, List, Optional, Tuple, Union, overload +from _typeshed import ReadableBuffer +from . import accelerometer as accelerometer +from . import audio as audio +from . import compass as compass +from . import display as display +from . import i2c as i2c +from . import microphone as microphone +from . import speaker as speaker +from . import spi as spi +from . import uart as uart + +def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: + """Zaplanuj uruchomienie funkcji w przedziale określonym przez argumenty czasu **tylko V2**. + +Example: ``run_every(my_logging, min=5)`` + +``run_every`` can be used in two ways: + +As a Decorator - placed on top of the function to schedule. For example:: + + @run_every(h=1, min=20, s=30, ms=50) + def my_function(): + # Do something here + +As a Function - passing the callback as a positional argument. For example:: + + def my_function(): + # Do something here + run_every(my_function, s=30) + +Each argument corresponds to a different time unit and they are additive. +So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. + +When an exception is thrown inside the callback function it deschedules the +function. To avoid this you can catch exceptions with ``try/except``. + +:param callback: Funkcja wywoływana w podanym przedziale. Pomiń, jeśli używasz jako dekorator. +:param days: Ustawia oznaczenie dnia dla harmonogramu. +:param h: Ustawia znak godziny dla harmonogramu. +:param min: Ustawia znak minuty dla harmonogramu. +:param s: Ustawia znak sekundy dla harmonogramu. +:param ms: Ustawia znak milisekundy dla harmonogramu.""" + +def panic(n: int) -> None: + """Wejdź w tryb paniki. + +Example: ``panic(127)`` + +:param n: Dowolna liczba całkowita <= 255 dla wskazania statusu. + +Requires restart.""" + +def reset() -> None: + """Uruchom ponownie płytkę.""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[int, int]) -> int: + """Konwertuje wartość z zakresu do zakresu liczb całkowitych. + +Example: ``volume = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255))`` + +For example, to convert an accelerometer X value to a speaker volume. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. + + temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) + +:param value: Liczba do konwersji. +:param from_: Krotka do zdefiniowania zakresu dla konwersji z. +:param to: Krotka do zdefiniowania zakresu dla konwersji do. +:return: The ``value`` converted to the ``to`` range.""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[float, float]) -> float: + """Konwertuje wartość z zakresu do zakresu o zmiennopozycyjnego. + +Example: ``temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0))`` + +For example, to convert temperature from a Celsius scale to Fahrenheit. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. +If they are both integers (i.e ``10``), it will return an integer:: + + returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) + +:param value: Liczba do konwersji. +:param from_: Krotka do zdefiniowania zakresu dla konwersji z. +:param to: Krotka do zdefiniowania zakresu, na jaki konwertować. +:return: The ``value`` converted to the ``to`` range.""" + +def sleep(n: float) -> None: + """Poczekaj ``n`` milisekund. + +Example: ``sleep(1000)`` + +:param n: Liczba milisekund oczekiwania + +One second is 1000 milliseconds, so:: + + microbit.sleep(1000) + +will pause the execution for one second.""" + +def running_time() -> int: + """Uzyskaj czas pracy płytki. + +:return: The number of milliseconds since the board was switched on or restarted.""" + +def temperature() -> int: + """Uzyskaj temperaturę micro:bita w stopniach Celsjusza.""" + +def set_volume(v: int) -> None: + """Ustawia głośność. + +Example: ``set_volume(127)`` + +:param v: wartość między 0 (niska) a 255 (wysoka). + +Out of range values will be clamped to 0 or 255. + +**V2** only.""" + ... + +class Button: + """Klasa dla przycisków ``button_a`` i ``button_b``.""" + + def is_pressed(self) -> bool: + """Sprawdź, czy przycisk jest naciśnięty. + +:return: ``True`` if the specified button ``button`` is pressed, and ``False`` otherwise.""" + ... + + def was_pressed(self) -> bool: + """Sprawdź, czy przycisk został naciśnięty od momentu uruchomienia urządzenia lub kiedy ta metoda została wywołana. + +Calling this method will clear the press state so +that the button must be pressed again before this method will return +``True`` again. + +:return: ``True`` if the specified button ``button`` was pressed, and ``False`` otherwise""" + ... + + def get_presses(self) -> int: + """Pobierz sumę naciśnięć przycisków i zresetuje tę sumę +do zera przed powrotem. + +:return: The number of presses since the device started or the last time this method was called""" + ... +button_a: Button +"""Lewy przycisk ``Button`` obiekt.""" +button_b: Button +"""Prawy przycisk ``Button`` obiekt.""" + +class MicroBitDigitalPin: + """Cyfrowy pin. + +Some pins support analog and touch features using the ``MicroBitAnalogDigitalPin`` and ``MicroBitTouchPin`` subclasses.""" + NO_PULL: int + PULL_UP: int + PULL_DOWN: int + + def read_digital(self) -> int: + """Uzyskaj cyfrową wartość pinu. + +Example: ``value = pin0.read_digital()`` + +:return: 1 if the pin is high, and 0 if it's low.""" + ... + + def write_digital(self, value: int) -> None: + """Ustaw cyfrową wartość pinu. + +Example: ``pin0.write_digital(1)`` + +:param value: 1, aby ustawić wysoką wartość pinu lub 0, aby ustawić niską wartość pinu""" + ... + + def set_pull(self, value: int) -> None: + """Ustaw stan ciągnięcia na jedną z trzech możliwych wartości: ``PULL_UP``, ``PULL_DOWN`` lub ``NO_PULL``. + +Example: ``pin0.set_pull(pin0.PULL_UP)`` + +:param value: Stan ciągnięcia z odpowiedniego pinu, np. ``pin0.PULL_UP``.""" + ... + + def get_pull(self) -> int: + """Uzyskaj stan cignięcia na pinie. + +Example: ``pin0.get_pull()`` + +:return: ``NO_PULL``, ``PULL_DOWN``, or ``PULL_UP`` + +These are set using the ``set_pull()`` method or automatically configured +when a pin mode requires it.""" + ... + + def get_mode(self) -> str: + """Zwraca tryb pinu. + +Example: ``pin0.get_mode()`` + +When a pin is used for a specific function, like +writing a digital value, or reading an analog value, the pin mode +changes. + +:return: ``"unused"``, ``"analog"``, ``"read_digital"``, ``"write_digital"``, ``"display"``, ``"button"``, ``"music"``, ``"audio"``, ``"touch"``, ``"i2c"``, or ``"spi"``""" + ... + + def write_analog(self, value: int) -> None: + """Wysyłaj sygnał PWM na pin, z cyklem pracy proporcjonalnym do ``value``. + +Example: ``pin0.write_analog(254)`` + +:param value: Liczba całkowita lub liczba zmiennopozycyjna między 0 (0% cyklu pracy) a 1023 (100% cyklu pracy).""" + + def set_analog_period(self, period: int) -> None: + """Ustaw okres wyjścia sygnału PWM na ``period`` w milisekundach. + +Example: ``pin0.set_analog_period(10)`` + +:param period: Okres w milisekundach z minimalną poprawną wartością 1 ms.""" + + def set_analog_period_microseconds(self, period: int) -> None: + """Ustaw okres wyjścia sygnału PWM na ``period`` w mikrosekundach. (ustaw mikrosekundy okresu analogowego) + +Example: ``pin0.set_analog_period_microseconds(512)`` + +:param period: Okres w mikrosekundach z minimalną poprawną wartością 256µs.""" + +class MicroBitAnalogDigitalPin(MicroBitDigitalPin): + """Pin z funkcjami analogowymi i cyfrowymi.""" + + def read_analog(self) -> int: + """Odczytaj napięcie przyłożone do pinu. + +Example: ``pin0.read_analog()`` + +:return: An integer between 0 (meaning 0V) and 1023 (meaning 3.3V).""" + +class MicroBitTouchPin(MicroBitAnalogDigitalPin): + """Pin z funkcjami analogowymi, cyfrowymi i dotykowymi.""" + CAPACITIVE: int + RESISTIVE: int + + def is_touched(self) -> bool: + """Sprawdź, czy pin został dotknięty. + +Example: ``pin0.is_touched()`` + +The default touch mode for the pins on the edge connector is ``resistive``. +The default for the logo pin **V2** is ``capacitive``. + +**Resistive touch** +This test is done by measuring how much resistance there is between the +pin and ground. A low resistance gives a reading of ``True``. To get +a reliable reading using a finger you may need to touch the ground pin +with another part of your body, for example your other hand. + +**Capacitive touch** +This test is done by interacting with the electric field of a capacitor +using a finger as a conductor. `Capacitive touch +`_ +does not require you to make a ground connection as part of a circuit. + +:return: ``True`` if the pin is being touched with a finger, otherwise return ``False``.""" + ... + + def set_touch_mode(self, value: int) -> None: + """Ustaw tryb dotykowy dla pinu. + +Example: ``pin0.set_touch_mode(pin0.CAPACITIVE)`` + +The default touch mode for the pins on the edge connector is +``resistive``. The default for the logo pin **V2** is ``capacitive``. + +:param value: ``CAPACITIVE`` lub ``RESISTIVE`` z odpowiedniego pinu.""" + ... +pin0: MicroBitTouchPin +"""Pin z funkcjami cyfrową, analogową i dotykową.""" +pin1: MicroBitTouchPin +"""Pin z funkcjami cyfrową, analogową i dotykową.""" +pin2: MicroBitTouchPin +"""Pin z funkcjami cyfrową, analogową i dotykową.""" +pin3: MicroBitAnalogDigitalPin +"""Pin z funkcjami cyfrowymi i analogowymi.""" +pin4: MicroBitAnalogDigitalPin +"""Pin z funkcjami cyfrowymi i analogowymi.""" +pin5: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin6: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin7: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin8: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin9: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin10: MicroBitAnalogDigitalPin +"""Pin z funkcjami cyfrowymi i analogowymi.""" +pin11: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin12: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin13: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin14: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin15: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin16: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin19: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin20: MicroBitDigitalPin +"""Pin z funkcjami cyfrowymi.""" +pin_logo: MicroBitTouchPin +"""Wrażliwy na dotyk pin z logo z przodu micro:bita, który domyślnie jest ustawiony na pojemnościowy tryb dotykowy.""" +pin_speaker: MicroBitAnalogDigitalPin +"""Pin adresujący głośnik micro:bita. + +This API is intended only for use in Pulse-Width Modulation pin operations e.g. pin_speaker.write_analog(128). +""" + +class Image: + """Obraz wyświetlany na wyświetlaczu LED micro:bita. + +Given an image object it's possible to display it via the ``display`` API:: + + display.show(Image.HAPPY)""" + HEART: Image + """Obraz serca.""" + HEART_SMALL: Image + """Obraz małego serca.""" + HAPPY: Image + """Obraz szczęśliwej twarzy.""" + SMILE: Image + """Obraz uśmiechniętej twarzy.""" + SAD: Image + """Obraz smutnej twarzy.""" + CONFUSED: Image + """Obraz zmieszanej twarzy.""" + ANGRY: Image + """Obraz złej twarzy.""" + ASLEEP: Image + """Obraz śpiącej twarzy.""" + SURPRISED: Image + """Obraz zaskoczonej twarzy.""" + SILLY: Image + """Obraz głupiej twarzy.""" + FABULOUS: Image + """Obraz twarzy w okularach przeciwsłonecznych.""" + MEH: Image + """Obraz niewzruszonej twarzy.""" + YES: Image + """Haczyk na TAK.""" + NO: Image + """Krzyżyk na NIE.""" + CLOCK12: Image + """Obraz z linią wskazującą na godzinę 12.""" + CLOCK11: Image + """Obraz z linią wskazującą na godzinę 11.""" + CLOCK10: Image + """Obraz z linią wskazującą na godzinę 10.""" + CLOCK9: Image + """Obraz z linią wskazującą na godzinę 9.""" + CLOCK8: Image + """Obraz z linią wskazującą na godzinę 8.""" + CLOCK7: Image + """Obraz z linią wskazującą na godzinę 7.""" + CLOCK6: Image + """Obraz z linią wskazującą na godzinę 6.""" + CLOCK5: Image + """Obraz z linią wskazującą na godzinę 5.""" + CLOCK4: Image + """Obraz z linią wskazującą na godzinę 4.""" + CLOCK3: Image + """Obraz z linią wskazującą na godzinę 3.""" + CLOCK2: Image + """Obraz z linią wskazującą na godzinę 2.""" + CLOCK1: Image + """Obraz z linią wskazującą na godzinę 1.""" + ARROW_N: Image + """Obraz strzałki wskazującej północ.""" + ARROW_NE: Image + """Obraz strzałki wskazującej północny wschód.""" + ARROW_E: Image + """Obraz strzałki wskazującej wschód.""" + ARROW_SE: Image + """Obraz strzałki wskazującej południowy wschód.""" + ARROW_S: Image + """Obraz strzałki wskazującej południe.""" + ARROW_SW: Image + """Obraz strzałki wskazującej południowy zachód.""" + ARROW_W: Image + """Obraz strzałki wskazującej zachód.""" + ARROW_NW: Image + """Obraz strzałki wskazującej północny zachód.""" + TRIANGLE: Image + """Obraz trójkąta skierowanego do góry.""" + TRIANGLE_LEFT: Image + """Obraz trójkąta w lewym rogu.""" + CHESSBOARD: Image + """Diody LED świecą naprzemiennie w układzie szachownicy.""" + DIAMOND: Image + """Obraz diamentu.""" + DIAMOND_SMALL: Image + """Obraz małego diamentu.""" + SQUARE: Image + """Obraz kwadratu.""" + SQUARE_SMALL: Image + """Obraz małego kwadratu.""" + RABBIT: Image + """Obraz królika.""" + COW: Image + """Obraz krowy.""" + MUSIC_CROTCHET: Image + """Obraz ćwierćnuty.""" + MUSIC_QUAVER: Image + """Obraz nuty ósemki.""" + MUSIC_QUAVERS: Image + """Obraz pary nut ósemek.""" + PITCHFORK: Image + """Obraz kamertonu.""" + XMAS: Image + """Obraz choinki.""" + PACMAN: Image + """Obrazek postaci arcade Pac-Man""" + TARGET: Image + """Obraz celu.""" + TSHIRT: Image + """Obraz t-shirt.""" + ROLLERSKATE: Image + """Obraz Rollerskate.""" + DUCK: Image + """Obraz kaczki.""" + HOUSE: Image + """Obraz domu.""" + TORTOISE: Image + """Obraz żółwia.""" + BUTTERFLY: Image + """Obraz motyla.""" + STICKFIGURE: Image + """Obraz przyklejonej figury.""" + GHOST: Image + """Obraz ducha.""" + SWORD: Image + """Obraz miecza.""" + GIRAFFE: Image + """Obraz żyrafy.""" + SKULL: Image + """Obraz czaszki.""" + UMBRELLA: Image + """Obraz parasola.""" + SNAKE: Image + """Obraz węża.""" + SCISSORS: Image + """Obraz nożyczek.""" + ALL_CLOCKS: List[Image] + """Lista zawierająca wszystkie obrazy CLOCK_ po kolei.""" + ALL_ARROWS: List[Image] + """Lista zawierająca wszystkie obrazy ARROW_ po kolei.""" + + @overload + def __init__(self, string: str) -> None: + """Utwórz obraz z łańcucha opisującego, które diody LED są zapalone. + +``string`` has to consist of digits 0-9 arranged into lines, +describing the image, for example:: + + image = Image("90009:" + "09090:" + "00900:" + "09090:" + "90009") + +will create a 5×5 image of an X. The end of a line is indicated by a +colon. It's also possible to use newlines (\\n) insead of the colons. + +:param string: Łańcuch opisujący obraz.""" + ... + + @overload + def __init__(self, width: int=5, height: int=5, buffer: ReadableBuffer=None) -> None: + """Utwórz pusty obraz z ``width`` kolumnami i ``height`` wierszami. + +:param width: Opcjonalna szerokość obrazu +:param height: Opcjonalna wysokość obrazu +:param buffer: Opcjonalna tablica lub bajty ``width``×``height`` liczb całkowitych w zakresie 0-9 do zainicjowania obrazu + +Examples:: + + Image(2, 2, b'\x08\x08\x08\x08') + Image(2, 2, bytearray([9,9,9,9])) + +These create 2 x 2 pixel images at full brightness.""" + ... + + def width(self) -> int: + """Ustal liczbę kolumn + +:return: The number of columns in the image""" + ... + + def height(self) -> int: + """Uzyskaj liczbę wierszy + +:return: The number of rows in the image""" + ... + + def set_pixel(self, x: int, y: int, value: int) -> None: + """Ustaw jasność piksela. + +Example: ``my_image.set_pixel(0, 0, 9)`` + +:param x: Numer kolumny +:param y: Numer wiersza +:param value: Jasność jako liczba całkowita między 0 (ciemny) i 9 (jasna) + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def get_pixel(self, x: int, y: int) -> int: + """uzyskaj jasność piksela. + +Example: ``my_image.get_pixel(0, 0)`` + +:param x: Numer kolumny +:param y: Numer wiersza +:return: The brightness as an integer between 0 and 9.""" + ... + + def shift_left(self, n: int) -> Image: + """Utwórz nowy obraz przesuwając ten obraz w lewo. + +Example: ``Image.HEART_SMALL.shift_left(1)`` + +:param n: Liczba kolumn do przesunięcia +:return: The shifted image""" + ... + + def shift_right(self, n: int) -> Image: + """Utwórz nowy obraz, przesuwając ten obraz w prawo. + +Example: ``Image.HEART_SMALL.shift_right(1)`` + +:param n: Liczba kolumn do przesunięcia +:return: The shifted image""" + ... + + def shift_up(self, n: int) -> Image: + """Utwórz nowy obraz, przesuwając obraz do góry. + +Example: ``Image.HEART_SMALL.shift_up(1)`` + +:param n: Liczba wierszy do przesunięcia o +:return: The shifted image""" + ... + + def shift_down(self, n: int) -> Image: + """Utwórz nowy obraz, przesuwając obraz do dołu. + +Example: ``Image.HEART_SMALL.shift_down(1)`` + +:param n: Liczba wierszy do przesunięcia o +:return: The shifted image""" + ... + + def crop(self, x: int, y: int, w: int, h: int) -> Image: + """Utwórz nowy obraz przez przycięcie zdjęcia. + +Example: ``Image.HEART.crop(1, 1, 3, 3)`` + +:param x: Kolumna przesunięcia przycięcia +:param y: Wiersz przesunięcia przycięcia +:param w: Szerokość przycięcia +:param h: Wysokość przycięcia +:return: The new image""" + ... + + def copy(self) -> Image: + """Utwórz dokładną kopię obrazu. + +Example: ``Image.HEART.copy()`` + +:return: The new image""" + ... + + def invert(self) -> Image: + """Utwórz nowy obraz przez odwrócenie jasności pikseli w obrazie źródłowym. + +Example: ``Image.SMALL_HEART.invert()`` + +:return: The new image.""" + ... + + def fill(self, value: int) -> None: + """Ustaw jasność wszystkich pikseli obrazka. + +Example: ``my_image.fill(5)`` + +:param value: Nowa jasność jako liczba między 0 (ciemny) a 9 (jasny). + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def blit(self, src: Image, x: int, y: int, w: int, h: int, xdest: int=0, ydest: int=0) -> None: + """Skopiuj obszar z innego obrazu na ten obraz. + +Example: ``my_image.blit(Image.HEART, 1, 1, 3, 3, 1, 1)`` + +:param src: Zdjęcie źródłowe +:param x: Początkowe przesunięcie kolumny w obrazie źródłowym +:param y: Początkowe przesunięcie wiersza na obrazie źródłowym +:param w: Liczba kolumn do skopiowania +:param h: Liczba wierszy do skopiowania +:param xdest: Przesunięcie kolumny do modyfikacji na tym obrazie +:param ydest: Przesunięcie wiersza do modyfikacji na tym obrazie + +Pixels outside the source image are treated as having a brightness of 0. + +``shift_left()``, ``shift_right()``, ``shift_up()``, ``shift_down()`` +and ``crop()`` can are all implemented by using ``blit()``. + +For example, img.crop(x, y, w, h) can be implemented as:: + + def crop(self, x, y, w, h): + res = Image(w, h) + res.blit(self, x, y, w, h) + return res""" + ... + + def __repr__(self) -> str: + """Uzyskaj kompaktową reprezentację obrazu w postaci łańcucha.""" + ... + + def __str__(self) -> str: + """Uzyskaj czytelną reprezentację obrazu w postaci łańcucha.""" + ... + + def __add__(self, other: Image) -> Image: + """Utwórz nowy obraz, dodając wartości jasności z dwóch +obrazów dla każdego piksela. + +Example: ``Image.HEART + Image.HAPPY`` + +:param other: Obraz do dodania.""" + ... + + def __sub__(self, other: Image) -> Image: + """Utwórz nowy obraz, odejmując wartości jasności +innego obrazu od tego obrazu. + +Example: ``Image.HEART - Image.HEART_SMALL`` + +:param other: Obraz do odjęcia.""" + ... + + def __mul__(self, n: float) -> Image: + """Utwórz nowy obraz, mnożąc jasność każdego piksela przez +``n``. + +Example: ``Image.HEART * 0.5`` + +:param n: Wartość do mnożenia przez.""" + ... + + def __truediv__(self, n: float) -> Image: + """Utwórz nowy obraz, dzieląc jasność każdego piksela przez +``n``. + +Example: ``Image.HEART / 2`` + +:param n: Wartość do dzielenia przez.""" + ... + +class SoundEvent: + LOUD: SoundEvent + """Przedstawia przejście zdarzeń dźwiękowych z ``quiet`` do ``loud``, jak klaskanie lub krzyczenie.""" + QUIET: SoundEvent + """Przedstawia przejście zdarzeń dźwiękowych z ``loud`` do ``quiet``, jak mówienie lub muzyka w tle.""" + +class Sound: + """Wbudowane dźwięki można wywołać za pomocą ``audio.play(Sound.NAME)``.""" + GIGGLE: Sound + """Chichoczący dźwięk.""" + HAPPY: Sound + """Szczęśliwy dźwięk.""" + HELLO: Sound + """Dźwięk powitania.""" + MYSTERIOUS: Sound + """Tajemniczy dźwięk.""" + SAD: Sound + """Smutny dźwięk.""" + SLIDE: Sound + """Przesuwający się dźwięk.""" + SOARING: Sound + """Wznoszący się dźwięk.""" + SPRING: Sound + """Wiosny dźwięk.""" + TWINKLE: Sound + """Migoczący dźwięk.""" + YAWN: Sound + """Dźwięk ziewania.""" \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/accelerometer.pyi b/lang/pl/typeshed/stdlib/microbit/accelerometer.pyi new file mode 100644 index 0000000..e47dc08 --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/accelerometer.pyi @@ -0,0 +1,103 @@ +"""Zmierz przyspieszenie micro:bita i rozpoznawaj gesty.""" +from typing import Tuple + +def get_x() -> int: + """Uzyskaj pomiar przyspieszenia na osi ``x`` w mili-g. + +Example: ``accelerometer.get_x()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_y() -> int: + """Uzyskaj pomiar przyspieszenia na osi ``y`` w mili-g. + +Example: ``accelerometer.get_y()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_z() -> int: + """Uzyskaj pomiar przyspieszenia na osi ``z`` w mili-g. + +Example: ``accelerometer.get_z()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_values() -> Tuple[int, int, int]: + """Uzyskaj pomiary przyspieszenia na wszystkich osiach jednocześnie, jako krotkę. + +Example: ``x, y, z = accelerometer.get_values()`` + +:return: a three-element tuple of integers ordered as X, Y, Z, each value a positive or negative integer depending on direction in the range +/- 2000mg""" + ... + +def get_strength() -> int: + """Uzyskaj pomiar przyspieszenia wszystkich osi łącznie jako dodatnią liczbę całkowitą. Jest to suma pitagorejska osi X, Y i Z. + +Example: ``accelerometer.get_strength()`` + +:return: The combined acceleration strength of all the axes, in milli-g.""" + ... + +def current_gesture() -> str: + """Pobierz nazwę aktualnego gestu. + +Example: ``accelerometer.current_gesture()`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:return: The current gesture""" + ... + +def is_gesture(name: str) -> bool: + """Sprawdź, czy nazwany gest jest aktualnie aktywny. + +Example: ``accelerometer.is_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: Nazwa gestu. +:return: ``True`` if the gesture is active, ``False`` otherwise.""" + ... + +def was_gesture(name: str) -> bool: + """Sprawdź, czy nazwany gest był aktywny od ostatniego połączenia. + +Example: ``accelerometer.was_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: Nazwa gestu. +:return: ``True`` if the gesture was active since the last call, ``False`` otherwise.""" + +def get_gestures() -> Tuple[str, ...]: + """Zwróć krotkę historii gestów. + +Example: ``accelerometer.get_gestures()`` + +Clears the gesture history before returning. + +Gestures are not updated in the background so there needs to be constant +calls to some accelerometer method to do the gesture detection. Usually +gestures can be detected using a loop with a small :func:`microbit.sleep` delay. + +:return: The history as a tuple, most recent last.""" + ... + +def set_range(value: int) -> None: + """Ustaw zakres czułości akcelerometru w g (standardowa grawitacja) na najbliższe wartości obsługiwane przez sprzęt tak, aby zaokrąglał się do ``2``, ``4`` lub ``8`` g. + +Example: ``accelerometer.set_range(8)`` + +:param value: Nowy zakres dla akcelerometru, liczba całkowita w ``g``.""" \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/audio.pyi b/lang/pl/typeshed/stdlib/microbit/audio.pyi new file mode 100644 index 0000000..3a3fe4b --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/audio.pyi @@ -0,0 +1,123 @@ +"""Odtwarzaj dźwięki za pomocą micro:bita (importuj ``audio`` dla kompatybilności V1).""" +from ..microbit import MicroBitDigitalPin, Sound, pin0 +from typing import ClassVar, Iterable, Union + +def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: + """Odtwórz wbudowany dźwięk, efekt dźwiękowy lub niestandardowe ramki audio. + +Example: ``audio.play(Sound.GIGGLE)`` + +:param source: Wbudowany ``Sound``, taki jak ``Sound.GIGGLE``, ``SoundEffect`` lub przykładowe dane jako iteracja obiektów ``AudioFrame``. +:param wait: Jeśli ``wait`` jest ``True``, ta funkcja będzie blokować, aż dźwięk zostanie zakończony. +:param pin: Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości ``pin0``. Jeśli nie chcemy, aby żaden dźwięk nie był odtwarzany, możemy użyć ``pin=None``. +:param return_pin: Określa pin łącznika różnicowego, aby podłączyć płytkę do zewnętrznego głośnika zamiast do ziemi. Jest to ignorowane dla **V2**.""" + +def is_playing() -> bool: + """Sprawdź, czy dźwięk jest odtwarzany. + +Example: ``audio.is_playing()`` + +:return: ``True`` if audio is playing, otherwise ``False``.""" + ... + +def stop() -> None: + """Zatrzymaj odtwarzania audio. + +Example: ``audio.stop()``""" + ... + +class SoundEffect: + """Efekt dźwiękowy, utworzony przez zestaw parametrów skonfigurowanych za pomocą konstruktora lub atrybutów.""" + WAVEFORM_SINE: ClassVar[int] + """Opcja sinusoidalnej fali używana dla parametru ``waveform``.""" + WAVEFORM_SAWTOOTH: ClassVar[int] + """Opcja fali piłokształtnej używana dla parametru ``waveform``.""" + WAVEFORM_TRIANGLE: ClassVar[int] + """Opcja fali trójkątnej używana dla parametru ``waveform``.""" + WAVEFORM_SQUARE: ClassVar[int] + """Opcja fali kwadratowj używana dla parametru ``waveform``.""" + WAVEFORM_NOISE: ClassVar[int] + """Opcja szumu używana dla parametru ``waveform``.""" + SHAPE_LINEAR: ClassVar[int] + """Opcja interpolacji liniowej używana dla parametru ``shape``.""" + SHAPE_CURVE: ClassVar[int] + """Opcja interpolacji krzywej używana dla parametru ``shape``.""" + SHAPE_LOG: ClassVar[int] + """Opcja interpolacji logarytmicznej używana dla parametru ``shape``.""" + FX_NONE: ClassVar[int] + """Opcja braku efektu użyta dla parametru ``fx``.""" + FX_TREMOLO: ClassVar[int] + """Opcja efektu Tremelo użyta dla parametru ``fx``.""" + FX_VIBRATO: ClassVar[int] + """Opcja efektu Vibrato użyta dla parametru ``fx``.""" + FX_WARBLE: ClassVar[int] + """Opcja efektu Warble użyta dla parametru ``fx``.""" + freq_start: int + """Częstotliwość początkowa w hercach (Hz), liczba między ``0`` i ``9999``""" + freq_end: int + """Częstotliwość końcowa w hercach (Hz), liczba między ``0`` i ``9999``""" + duration: int + """Czas trwania dźwięku w milisekundach, liczba pomiędzy ``0`` i ``9999``""" + vol_start: int + """Wartość głośności początkowej, liczba między ``0`` i ``255``""" + vol_end: int + """Wartość głośności końcowej, liczba między ``0`` i ``255``""" + waveform: int + """Rodzaj kształtu fali, jedna z tych wartości:``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (losowo generowany szum)""" + fx: int + """Efekt do dodania do dźwięku, jedna z następujących wartości: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE`` lub ``FX_NONE``""" + shape: int + """Rodzaj krzywej interpolacji między częstotliwością początkową i końcową, różne kształty fal mają różne szybkości zmian częstotliwości. Jedna z następujących wartości: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``""" + + def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): + """Utwórz nowy efekt dźwiękowy. + +Example: ``my_effect = SoundEffect(duration=1000)`` + +All the parameters are optional, with default values as shown above, and +they can all be modified via attributes of the same name. For example, we +can first create an effect ``my_effect = SoundEffect(duration=1000)``, +and then change its attributes ``my_effect.duration = 500``. + +:param freq_start: Częstotliwość początkowa w hercach (Hz), liczba między ``0`` i ``9999``. +:param freq_end: Częstotliwość końcowa w hercach (Hz), liczba między ``0`` i ``9999``. +:param duration: Czas trwania dźwięku w milisekundach, liczba między ``0`` i ``9999``. +:param vol_start: Początkowa wartość głośności, liczba pomiędzy ``0`` i ``255``. +:param vol_end: Końcowa wartość głośności, liczba pomiędzy ``0`` i ``255``. +:param waveform: Rodzaj kształtu fali, jedna z tych wartości: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (losowo generowany szum). +:param fx: Efekt do dodania do dźwięku, jedna z następujących wartości: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE`` lub ``FX_NONE``. +:param shape: Rodzaj krzywej interpolacji między częstotliwością początkową i końcową, różne kształty fal mają różne szybkości zmian częstotliwości. Jedna z następujących wartości: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" + + def copy(self) -> SoundEffect: + """Utwórz kopię ``SoundEffect``. + +Example: ``sound_2 = sound_1.copy()`` + +:return: A copy of the SoundEffect.""" + +class AudioFrame: + """Obiekt ``AudioFrame`` jest listą 32 próbek, z których każda jest niepodpisanym bajtem (liczba całkowita między 0 a 255). + +It takes just over 4 ms to play a single frame. + +Example:: + + frame = AudioFrame() + for i in range(len(frame)): + frame[i] = 252 - i * 8""" + + def copyfrom(self, other: AudioFrame) -> None: + """Zastąp dane w tym ``AudioFrame`` danymi z innej instancji ``AudioFrame``. + +Example: ``my_frame.copyfrom(source_frame)`` + +:param other: Instancja ``AudioFrame``, z której skopiowane są dane.""" + + def __len__(self) -> int: + ... + + def __setitem__(self, key: int, value: int) -> None: + ... + + def __getitem__(self, key: int) -> int: + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/compass.pyi b/lang/pl/typeshed/stdlib/microbit/compass.pyi new file mode 100644 index 0000000..cd6c9c7 --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/compass.pyi @@ -0,0 +1,70 @@ +"""Użyj wbudowanego kompasu.""" + +def calibrate() -> None: + """Rozpoczyna proces kalibracji. + +Example: ``compass.calibrate()`` + +An instructive message will be scrolled to the user after which they will need +to rotate the device in order to draw a circle on the LED display.""" + ... + +def is_calibrated() -> bool: + """Sprawdź, czy kompas jest skalibrowany. + +Example: ``compass.is_calibrated()`` + +:return: ``True`` if the compass has been successfully calibrated, ``False`` otherwise.""" + ... + +def clear_calibration() -> None: + """Cofnij kalibrację, czyniąc kompas ponownie niekalibrowanym. + +Example: ``compass.clear_calibration()``""" + ... + +def get_x() -> int: + """Uzyskaj natężenie pola magnetycznego na osi ``x``. + +Example: ``compass.get_x()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_y() -> int: + """Uzyskaj natężenie pola magnetycznego na osi ``y``. + +Example: ``compass.get_y()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_z() -> int: + """Uzyskaj natężenie pola magnetycznego na osi ``z``. + +Example: ``compass.get_z()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def heading() -> int: + """Pobierz kierunek kompasu. + +Example: ``compass.heading()`` + +:return: An integer in the range from 0 to 360, representing the angle in degrees, clockwise, with north as 0.""" + ... + +def get_field_strength() -> int: + """Uzyskaj wielkość pola magnetycznego wokół urządzenia. + +Example: ``compass.get_field_strength()`` + +:return: An integer indication of the magnitude of the magnetic field in nano tesla.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/display.pyi b/lang/pl/typeshed/stdlib/microbit/display.pyi new file mode 100644 index 0000000..25ee96c --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/display.pyi @@ -0,0 +1,92 @@ +"""Pokaż tekst, obrazy i animacje na wyświetlaczu 5x5 LED.""" +from ..microbit import Image +from typing import Union, overload, Iterable + +def get_pixel(x: int, y: int) -> int: + """Uzyskaj jasność LED w kolumnie ``x`` i w wierszu ``y``. + +Example: ``display.get_pixel(0, 0)`` + +:param x: Wyświetlana kolumna (0..4) +:param y: Wyświetlany wiersz (0..4) +:return: A number between 0 (off) and 9 (bright)""" + ... + +def set_pixel(x: int, y: int, value: int) -> None: + """Ustaw jasność LED w kolumnie ``x`` i wierszu ``y``. + +Example: ``display.set_pixel(0, 0, 9)`` + +:param x: Wyświetlana kolumna (0..4) +:param y: Wyświetlany wiersz (0..4) +:param value: Jasność między 0 (wyłączona) i 9 (jasna)""" + ... + +def clear() -> None: + """Ustaw jasność wszystkich diod LED na 0 (wyłączone). + +Example: ``display.clear()``""" + ... + +def show(image: Union[str, float, int, Image, Iterable[Image]], delay: int=400, wait: bool=True, loop: bool=False, clear: bool=False) -> None: + """Pokazuje obrazy, litery lub cyfry na wyświetlaczu LED. + +Example: ``display.show(Image.HEART)`` + +When ``image`` is an image or a list of images then each image is displayed in turn. +If ``image`` is a string or number, each letter or digit is displayed in turn. + +:param image: Łańcuch, liczba, obraz lub lista obrazów do pokazania. +:param delay: Każda litera, cyfra lub obraz są wyświetlane z ``delay`` milisekundami między sobą. +:param wait: Jeśli ``wait`` jest ``True``, ta funkcja będzie blokować, aż zakończy się animacja, w przeciwnym razie animacja pojawi się w tle. +:param loop: Jeśli ``loop`` jest ``True``, animacja będzie powtarzana w nieskończoność. +:param clear: Jeśli ``clear`` jest ``True``, wyświetlacz zostanie wyczyszczony po zakończeniu sekwencji. + +The ``wait``, ``loop`` and ``clear`` arguments must be specified using their keyword.""" + ... + +def scroll(text: Union[str, float, int], delay: int=150, wait: bool=True, loop: bool=False, monospace: bool=False) -> None: + """Przewija liczbę lub tekst na wyświetlaczu LED. + +Example: ``display.scroll('micro:bit')`` + +:param text: Łańcuch do przewinięcia. Jeśli ``text`` jest liczbą całkowitą lub zmiennopozycyjną, najpierw zostanie przekonwertowany na łańcuch za pomocą ``str()``. +:param delay: Parametr ``delay`` kontroluje szybkość przewijania tekstu. +:param wait: Jeśli ``wait`` jest ``True``, ta funkcja będzie blokować, aż zakończy się animacja, w przeciwnym razie animacja pojawi się w tle. +:param loop: Jeśli ``loop`` jest ``True``, animacja będzie powtarzana w nieskończoność. +:param monospace: Jeśli ``monospace`` jest ``True``, wszystkie znaki zajmą co najwyżej 5 kolumn pikseli na szerokość, w przeciwnym razie będzie dokładnie 1 pusta kolumna pikseli pomiędzy każdym znakiem, gdy się przewijają. + +The ``wait``, ``loop`` and ``monospace`` arguments must be specified +using their keyword.""" + ... + +def on() -> None: + """Włącz wyświetlacz LED. + +Example: ``display.on()``""" + ... + +def off() -> None: + """Wyłącz wyświetlacz LED (wyłączenie wyświetlania pozwala na ponowne użycie pinów GPIO do innych celów). + +Example: ``display.off()``""" + ... + +def is_on() -> bool: + """Sprawdź, czy wyświetlacz LED jest włączony. + +Example: ``display.is_on()`` + +:return: ``True`` if the display is on, otherwise returns ``False``.""" + ... + +def read_light_level() -> int: + """Odczytuj poziom światła. + +Example: ``display.read_light_level()`` + +Uses the display's LEDs in reverse-bias mode to sense the amount of light +falling on the display. + +:return: An integer between 0 and 255 representing the light level, with larger meaning more light.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/i2c.pyi b/lang/pl/typeshed/stdlib/microbit/i2c.pyi new file mode 100644 index 0000000..0adc4a4 --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/i2c.pyi @@ -0,0 +1,49 @@ +"""Komunikuj się z urządzeniami za pomocą protokołu magistrali I2C.""" +from _typeshed import ReadableBuffer +from ..microbit import MicroBitDigitalPin, pin19, pin20 +from typing import List + +def init(freq: int=100000, sda: MicroBitDigitalPin=pin20, scl: MicroBitDigitalPin=pin19) -> None: + """Ponownie zainicjuj peryferia. + +Example: ``i2c.init()`` + +:param freq: clock frequency +:param sda: ``sda`` pin (domyślnie 20) +:param scl: ``scl`` pin (domyślnie 19) + +On a micro:bit V1 board, changing the I²C pins from defaults will make +the accelerometer and compass stop working, as they are connected +internally to those pins. This warning does not apply to the **V2** +revision of the micro:bit as this has `separate I²C lines `_ +for the motion sensors and the edge connector.""" + ... + +def scan() -> List[int]: + """Przeskanuj magistralę w poszukiwaniu urządzeń. + +Example: ``i2c.scan()`` + +:return: A list of 7-bit addresses corresponding to those devices that responded to the scan.""" + ... + +def read(addr: int, n: int, repeat: bool=False) -> bytes: + """Odczytaj bajty z urządzenia.. + +Example: ``i2c.read(0x50, 64)`` + +:param addr: 7-bitowy adres urządzenia +:param n: Liczba bajtów do odczytu +:param repeat: Jeśli ``True``, nie zostaną wysłane żadne bity zatrzymania +:return: The bytes read""" + ... + +def write(addr: int, buf: ReadableBuffer, repeat: bool=False) -> None: + """Zapisz bajty na urządzenie. + +Example: ``i2c.write(0x50, bytes([1, 2, 3]))`` + +:param addr: 7-bitowy adres urządzenia +:param buf: Bufor zawierający bajty do zapisu +:param repeat: Jeśli ``True``, nie zostaną wysłane żadne bity zatrzymania""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/microphone.pyi b/lang/pl/typeshed/stdlib/microbit/microphone.pyi new file mode 100644 index 0000000..368df6f --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/microphone.pyi @@ -0,0 +1,62 @@ +"""Odpowiedz na dźwięk przy użyciu wbudowanego mikrofonu (tylko V2).""" +from typing import Optional, Tuple +from ..microbit import SoundEvent + +def current_event() -> Optional[SoundEvent]: + """Pobierz ostatnie nagrane zdarzenie dźwiękowe + +Example: ``microphone.current_event()`` + +:return: The event, ``SoundEvent('loud')`` or ``SoundEvent('quiet')``.""" + ... + +def was_event(event: SoundEvent) -> bool: + """Sprawdź, czy dźwięk był słyszany co najmniej raz od ostatniego połączenia. + +Example: ``microphone.was_event(SoundEvent.LOUD)`` + +This call clears the sound history before returning. + +:param event: Zdarzenie do sprawdzenia, takie jak ``SoundEvent.LOUD`` lub ``SoundEvent.QUIET`` +:return: ``True`` if sound was heard at least once since the last call, otherwise ``False``.""" + ... + +def is_event(event: SoundEvent) -> bool: + """Sprawdź najnowsze wykryte zdarzenie dźwiękowe. + +Example: ``microphone.is_event(SoundEvent.LOUD)`` + +This call does not clear the sound event history. + +:param event: Zdarzenie do sprawdzenia, takie jak ``SoundEvent.LOUD`` lub ``SoundEvent.QUIET`` +:return: ``True`` if sound was the most recent heard, ``False`` otherwise.""" + ... + +def get_events() -> Tuple[SoundEvent, ...]: + """Pobierz historię zdarzeń dźwiękowych jako krotkę. + +Example: ``microphone.get_events()`` + +This call clears the sound history before returning. + +:return: A tuple of the event history with the most recent event last.""" + ... + +def set_threshold(event: SoundEvent, value: int) -> None: + """Ustaw próg dla zdarzenia dźwiękowego. + +Example: ``microphone.set_threshold(SoundEvent.LOUD, 250)`` + +A high threshold means the event will only trigger if the sound is very loud (>= 250 in the example). + +:param event: Zdarzenie dźwiękowe, takie jak ``SoundEvent.LOUD`` lub ``SoundEvent.QUIET``. +:param value: Poziom progu w zakresie 0-255.""" + ... + +def sound_level() -> int: + """Uzyskaj poziom ciśnienia akustycznego. + +Example: ``microphone.sound_level()`` + +:return: A representation of the sound pressure level in the range 0 to 255.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/speaker.pyi b/lang/pl/typeshed/stdlib/microbit/speaker.pyi new file mode 100644 index 0000000..9cd1b88 --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/speaker.pyi @@ -0,0 +1,15 @@ +"""Sprawdź wbudowany głośnik (tylko V2).""" + +def off() -> None: + """Wyłącz głośnik. + +Example: ``speaker.off()`` + +This does not disable sound output to an edge connector pin.""" + ... + +def on() -> None: + """Włącz głośnik. + +Example: ``speaker.on()``""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/spi.pyi b/lang/pl/typeshed/stdlib/microbit/spi.pyi new file mode 100644 index 0000000..b6e67aa --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/spi.pyi @@ -0,0 +1,47 @@ +"""Komunikuj się z urządzeniami za pomocą magistrali szeregowego interfejsu (SPI).""" +from _typeshed import ReadableBuffer, WriteableBuffer +from ..microbit import pin13, pin14, pin15, MicroBitDigitalPin + +def init(baudrate: int=1000000, bits: int=8, mode: int=0, sclk: MicroBitDigitalPin=pin13, mosi: MicroBitDigitalPin=pin15, miso: MicroBitDigitalPin=pin14) -> None: + """Zainicjuj komunikację SPI. + +Example: ``spi.init()`` + +For correct communication, the parameters have to be the same on both communicating devices. + +:param baudrate: Szybkość komunikacji. +:param bits: Szerokość w bitach każdego transferu. Obecnie obsługiwanych jest tylko ``bits=8``. Może to jednak ulec zmianie w przyszłości. +:param mode: Określa połączenie polarności zegara i fazy - `zobacz tabelę online `_. +:param sclk: pin sclk (domyślnie 13) +:param mosi: pin mosi (domyślnie 15) +:param miso: pin miso (domyślnie 14)""" + ... + +def read(nbytes: int, out: int=0) -> bytes: + """Czytaj bajty. + +Example: ``spi.read(64)`` + +:param nbytes: Maksymalna liczba bajtów do odczytu. +:param out: The byte value to write (default 0). +:return: The bytes read.""" + ... + +def write(buffer: ReadableBuffer) -> None: + """Zapisz bajty na magistrali. + +Example: ``spi.write(bytes([1, 2, 3]))`` + +:param buffer: Bufor do odczytu danych.""" + ... + +def write_readinto(out: WriteableBuffer, in_: ReadableBuffer) -> None: + """Zapisz bufor ``out`` do magistrali i wczytaj dowolną odpowiedź do bufora ``in_``. + +Example: ``spi.write_readinto(out_buffer, in_buffer)`` + +The length of the buffers should be the same. The buffers can be the same object. + +:param out: Bufor do zapisu dowolnej odpowiedzi. +:param in_: Bufor do odczytu danych.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/microbit/uart.pyi b/lang/pl/typeshed/stdlib/microbit/uart.pyi new file mode 100644 index 0000000..375b560 --- /dev/null +++ b/lang/pl/typeshed/stdlib/microbit/uart.pyi @@ -0,0 +1,79 @@ +"""Komunikuj się z urządzeniem za pomocą interfejsu szeregowego.""" +from _typeshed import WriteableBuffer +from ..microbit import MicroBitDigitalPin +from typing import Optional, Union +ODD: int +"""Nieparzysta parzystość""" +EVEN: int +"""Parzysta parzystość""" + +def init(baudrate: int=9600, bits: int=8, parity: Optional[int]=None, stop: int=1, tx: Optional[MicroBitDigitalPin]=None, rx: Optional[MicroBitDigitalPin]=None) -> None: + """Zainicjuj komunikację seryjną. + +Example: ``uart.init(115200, tx=pin0, rx=pin1)`` + +:param baudrate: Szybkość komunikacji. +:param bits: Rozmiar przesyłanych bajtów. micro:bit obsługuje tylko 8. +:param parity: Jak sprawdzana jest parzystość, ``None``, ``uart.ODD`` lub ``uart.EVEN``. +:param stop: Liczba bitów stopu musi wynosić 1 dla micro:bita. +:param tx: Transmitując pin. +:param rx: Odbieranie pinu. + +Initializing the UART on external pins will cause the Python console on +USB to become unaccessible, as it uses the same hardware. To bring the +console back you must reinitialize the UART without passing anything for +``tx`` or ``rx`` (or passing ``None`` to these arguments). This means +that calling ``uart.init(115200)`` is enough to restore the Python console. + +For more details see `the online documentation `_.""" + ... + +def any() -> bool: + """Sprawdź, czy czekają jakieś dane. + +Example: ``uart.any()`` + +:return: ``True`` if any data is waiting, else ``False``.""" + ... + +def read(nbytes: Optional[int]=None) -> Optional[bytes]: + """Czytaj bajty. + +Example: ``uart.read()`` + +:param nbytes: Jeśli ``nbytes`` jest określony, przeczytaj co najwyżej tę liczbę bajtów, w przeciwnym razie przeczytaj jak najwięcej bajtów +:return: A bytes object or ``None`` on timeout""" + ... + +def readinto(buf: WriteableBuffer, nbytes: Optional[int]=None) -> Optional[int]: + """Przeczytaj bajty do ``buf``. + +Example: ``uart.readinto(input_buffer)`` + +:param buf: Bufor do zapisu. +:param nbytes: Jeśli ``nbytes`` jest określony, przeczytaj co najwyżej tę liczbę bajtów, w przeciwnym razie przeczytaj ``len(buf)`` bajtów. +:return: number of bytes read and stored into ``buf`` or ``None`` on timeout.""" + ... + +def readline() -> Optional[bytes]: + """Przeczytaj wiersz kończący się znakiem nowej linii. + +Example: ``uart.readline()`` + +:return: The line read or ``None`` on timeout. The newline character is included in the returned bytes.""" + ... + +def write(buf: Union[bytes, str]) -> Optional[int]: + """Zapisz bufor na magistrali. + +Example: ``uart.write('hello world')`` + +:param buf: Obiekt bajtów lub łańcuch. +:return: The number of bytes written, or ``None`` on timeout. + +Examples:: + + uart.write('hello world') + uart.write(b'hello world') + uart.write(bytes([1, 2, 3]))""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/micropython.pyi b/lang/pl/typeshed/stdlib/micropython.pyi new file mode 100644 index 0000000..7e87975 --- /dev/null +++ b/lang/pl/typeshed/stdlib/micropython.pyi @@ -0,0 +1,132 @@ +"""Wewnątrz MicroPythona. (microPython)""" +from typing import Any, TypeVar, overload +_T = TypeVar('_T') + +def const(expr: _T) -> _T: + """Służy do zadeklarowania, że wyrażenie jest stałą tak, że kompilator może +je zoptymalizować. + +The use of this function should be as follows:: + + from micropython import const + CONST_X = const(123) + CONST_Y = const(2 * CONST_X + 1) + +Constants declared this way are still accessible as global variables from +outside the module they are declared in. On the other hand, if a constant +begins with an underscore then it is hidden, it is not available as a +global variable, and does not take up any memory during execution. + +:param expr: Wyrażenie stałe.""" + ... + +@overload +def opt_level() -> int: + """Uzyskaj obecny poziom optymalizacji dla kompilacji skryptów. + +Example: ``micropython.opt_level()`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +:return: An integer representing the current level.""" + ... + +@overload +def opt_level(level: int) -> None: + """Ustawia poziom optymalizacji dla późniejszej kompilacji skryptów. + +Example: ``micropython.opt_level(1)`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +The default optimisation level is usually level 0. + +:param level: Poziom optymalizacji całkowity.""" + ... + +def mem_info(verbose: Any=None) -> None: + """Drukuj informacje o aktualnie używanej pamięci. + +Example: ``micropython.mem_info()`` + +:param verbose: Jeśli dany jest argument ``verbose``, drukowane są dodatkowe informacje.""" + ... + +def qstr_info(verbose: Any=None) -> None: + """Drukuj informacje o aktualnie internowanych łańcuchach. + +Example: ``micropython.qstr_info()`` + +:param verbose: Jeśli dany jest argument ``verbose``, drukowane są dodatkowe informacje. + +The information that is printed is implementation dependent, but currently +includes the number of interned strings and the amount of RAM they use. In +verbose mode it prints out the names of all RAM-interned strings.""" + ... + +def stack_use() -> int: + """Zwróć liczbę całkowitą reprezentującą aktualną wielkość używanego stosu + +Example: ``micropython.stack_use()`` + +The absolute value of this is not particularly useful, rather it +should be used to compute differences in stack usage at different points. + +:return: An integer representing current stack use.""" + ... + +def heap_lock() -> None: + """Zablokuj stos. + +Example: ``micropython.heap_lock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def heap_unlock() -> None: + """Odblokuj stos. + +Example: ``micropython.heap_unlock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def kbd_intr(chr: int) -> None: + """Ustaw znak, który zgłosi wyjątek ``KeyboardInterrupt``. + +Example: ``micropython.kbd_intr(-1)`` + +:param chr: Kod znaku, aby zwiększyć przerwę lub -1, aby wyłączyć przechwytywanie Ctrl-C. + +By default this is set to 3 during script execution, corresponding to Ctrl-C. +Passing -1 to this function will disable capture of Ctrl-C, and passing 3 +will restore it. + +This function can be used to prevent the capturing of Ctrl-C on the +incoming stream of characters that is usually used for the REPL, in case +that stream is used for other purposes.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/music.pyi b/lang/pl/typeshed/stdlib/music.pyi new file mode 100644 index 0000000..cee40a5 --- /dev/null +++ b/lang/pl/typeshed/stdlib/music.pyi @@ -0,0 +1,128 @@ +"""Twórz i graj w melodie.""" +from typing import Optional, Tuple, Union, List +from .microbit import MicroBitDigitalPin, pin0 +DADADADUM: Tuple[str, ...] +"""Melodia: otwarcie 5. symfonii Beethovena w C minor""" +ENTERTAINER: Tuple[str, ...] +"""Melodia: fragment otwierający klasyczny Scott Joplin Ragtime "The Entertainer".""" +PRELUDE: Tuple[str, ...] +"""Melodia: otwarcie pierwszego Preludium w C Major, 48 preludiów i Fug J.S.Bacha.""" +ODE: Tuple[str, ...] +"""Melodia: motyw Ody do radości z 9. Symfonii Beethovena w D minor.""" +NYAN: Tuple[str, ...] +"""Melodia: motyw Nyan Kot (http://www.nyan.cat/). + +The composer is unknown. This is fair use for educational porpoises (as they say in New York).""" +RINGTONE: Tuple[str, ...] +"""Melodia: coś, co brzmi jak dzwonek telefonu komórkowego. + +To be used to indicate an incoming message. +""" +FUNK: Tuple[str, ...] +"""Melody: funkowa linia basu dla tajnych agentów i geniuszy kryminalnych.""" +BLUES: Tuple[str, ...] +"""Melodia: 12-taktowy bluesowy chodzący bas w stylu boogie-woogie.""" +BIRTHDAY: Tuple[str, ...] +"""Melodia: "Wszystkiego najlepszego…" + +For copyright status see: http://www.bbc.co.uk/news/world-us-canada-34332853 +""" +WEDDING: Tuple[str, ...] +"""Melodia: chór panny młodej z opery Wagnera „Lohengrin”. (ślub)""" +FUNERAL: Tuple[str, ...] +"""Melodia: »Marsz pogrzebowy« znany jako Sonata Fortepianowa No. 2 w B♭ minor, Op. 35 Fryderyka Chopina. (pogrzeb)""" +PUNCHLINE: Tuple[str, ...] +"""Melodia: zabawny fragment oznaczający, że zażartowano.""" +PYTHON: Tuple[str, ...] +"""Melodia: Marsz John Philip Sousa „Liberty Bell” aka, motyw „Monty Python Flating Circus” (po którym nazwano język programowania Pythona).""" +BADDY: Tuple[str, ...] +"""Melodia: wejście złego człowieka do ery kina niemego.""" +CHASE: Tuple[str, ...] +"""Melodia: scena pościgu z epoki kina niemego.""" +BA_DING: Tuple[str, ...] +"""Melodia: krótki sygnał informujący, że coś się wydarzyło.""" +WAWAWAWAA: Tuple[str, ...] +"""Melodia: bardzo smutny puzon.""" +JUMP_UP: Tuple[str, ...] +"""Melodia: do użytku w grze, wskazujący ruch w górę.""" +JUMP_DOWN: Tuple[str, ...] +"""Melodia: do użytku w grze, wskazujący ruch w górę.""" +POWER_UP: Tuple[str, ...] +"""Melodia: fanfara oznaczająca odblokowanie osiągnięcia.""" +POWER_DOWN: Tuple[str, ...] +"""Melodia: smutna fanfara oznaczająca utracenie osiągnięcia.""" + +def set_tempo(ticks: int=4, bpm: int=120) -> None: + """Ustawia przybliżone tempo dla odtwarzania. + +Example: ``music.set_tempo(bpm=120)`` + +:param ticks: Liczba taktów składających się na uderzenie. +:param bpm: Liczba całkowita określająca liczbę uderzeń na minutę. + +Suggested default values allow the following useful behaviour: + +- music.set_tempo() – reset the tempo to default of ticks = 4, bpm = 120 +- music.set_tempo(ticks=8) – change the “definition” of a beat +- music.set_tempo(bpm=180) – just change the tempo + +To work out the length of a tick in milliseconds is very simple arithmetic: +60000/bpm/ticks_per_beat. For the default values that’s +60000/120/4 = 125 milliseconds or 1 beat = 500 milliseconds.""" + ... + +def get_tempo() -> Tuple[int, int]: + """Pobiera bieżące tempo jako parę liczb całkowitych: ``(ticks, bpm)``. + +Example: ``ticks, beats = music.get_tempo()`` + +:return: The temp as a tuple with two integer values, the ticks then the beats per minute.""" + ... + +def play(music: Union[str, List[str], Tuple[str, ...]], pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True, loop: bool=False) -> None: + """Odtwarzaj muzykę. + +Example: ``music.play(music.NYAN)`` + +:param music: muzyka określona w `specjalnej notacji `_ +:param pin: pin wyjściowy do użycia z zewnętrznym głośnikiem (domyślnie ``pin0``), ``None`` dla braku dźwięku. +:param wait: Jeśli ``wait`` jest ustawiony na ``True``, ta funkcja jest blokowana. +:param loop: Jeśli ``loop`` jest ustawiony na ``True``, melodia powtarza się, aż ``stop`` jest wywołana lub połączenie blokujące zostanie przerwane. + +Many built-in melodies are defined in this module.""" + ... + +def pitch(frequency: int, duration: int=-1, pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True) -> None: + """Zagraj nutę. + +Example: ``music.pitch(185, 1000)`` + +:param frequency: Częstotliwość całkowitoliczbowa +:param duration: Czas trwania w milisekundach. Jeśli ujemny, to dźwięk jest ciągły aż do następnego połączenia lub połączenia z ``stop``. +:param pin: Opcjonalny pin wyjściowy (domyślny ``pin0``). +:param wait: Jeśli ``wait`` jest ustawiony na ``True``, ta funkcja jest blokowana. + +For example, if the frequency is set to 440 and the length to +1000 then we hear a standard concert A for one second. + +You can only play one pitch on one pin at any one time.""" + ... + +def stop(pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Zatrzymuje odtwarzanie muzyki na wbudowanym głośniku i jakimkolwiek pinie wyjściowym dźwięku. + +Example: ``music.stop()`` + +:param pin: Opcjonalny argument może być podany do określenia pinu, np. ``music.stop(pin1)``.""" + +def reset() -> None: + """Resetuje takty, bpm, czas trwania i oktawę do ich wartości domyślnych. + +Example: ``music.reset()`` + +Values: +- ``ticks = 4`` +- ``bpm = 120`` +- ``duration = 4`` +- ``octave = 4``""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/neopixel.pyi b/lang/pl/typeshed/stdlib/neopixel.pyi new file mode 100644 index 0000000..822e46b --- /dev/null +++ b/lang/pl/typeshed/stdlib/neopixel.pyi @@ -0,0 +1,81 @@ +"""Indywidualnie adresowalne paski LED RGB i RGBW.""" +from .microbit import MicroBitDigitalPin +from typing import Tuple + +class NeoPixel: + + def __init__(self, pin: MicroBitDigitalPin, n: int, bpp: int=3) -> None: + """Zainicjuj nowy pasek neopikselowych diod LED sterowanych za pomocą pinu. + +Example: ``np = neopixel.NeoPixel(pin0, 8)`` + +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. + +See `the online docs `_ for warnings and other advice. + +:param pin: Pin kontrolujący pasek neopikseli. +:param n: Liczba neopikseli w pasku. +:param bpp: Bajty na piksel. W przypadku obsługi neopikseli RGBW należy przekazać 4 zamiast domyślnych 3 dla RGB i GRB.""" + ... + + def clear(self) -> None: + """Wyczyść wszystkie piksele. + +Example: ``np.clear()``""" + ... + + def show(self) -> None: + """Pokaż piksele. + +Example: ``np.show()`` + +Must be called for any updates to become visible.""" + ... + + def write(self) -> None: + """Pokaż piksele (tylko micro:bit V2). + +Example: ``np.write()`` + +Must be called for any updates to become visible. + +Equivalent to ``show``.""" + ... + + def fill(self, colour: Tuple[int, ...]) -> None: + """Pokoloruj wszystkie piksele określoną wartością RGB/RGBW (tylko micro:bit V2). + +Example: ``np.fill((0, 0, 255))`` + +:param colour: Krotka o takiej samej długości jak liczba bajtów na piksel (bpp). + +Use in conjunction with ``show()`` to update the neopixels.""" + ... + + def __setitem__(self, key: int, value: Tuple[int, ...]) -> None: + """Ustaw kolor pikseli. + +Example: ``np[0] = (255, 0, 0)`` + +:param key: Liczba pikseli. +:param value: Kolor""" + + def __getitem__(self, key: int) -> Tuple[int, ...]: + """Uzyskaj kolor piksela. + +Example: ``r, g, b = np[0]`` + +:param key: Liczba pikseli. +:return: The colour tuple.""" + + def __len__(self) -> int: + """Uzyskaj długość tego paska pikseli. + +Example: ``len(np)``""" \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/os.pyi b/lang/pl/typeshed/stdlib/os.pyi new file mode 100644 index 0000000..dec924c --- /dev/null +++ b/lang/pl/typeshed/stdlib/os.pyi @@ -0,0 +1,63 @@ +"""Uzyskaj dostęp do systemu plików.""" +from typing import Tuple +from typing import List + +def listdir() -> List[str]: + """Lista plików. + +Example: ``os.listdir()`` + +:return: A list of the names of all the files contained within the local +persistent on-device file system.""" + ... + +def remove(filename: str) -> None: + """Usuń (usuń) plik. + +Example: ``os.remove('data.txt')`` + +:param filename: Plik do usunięcia. + +If the file does not exist an ``OSError`` exception will occur.""" + ... + +def size(filename: str) -> int: + """Zwraca rozmiar pliku. + +Example: ``os.size('data.txt')`` + +:param filename: Plik +:return: The size in bytes. + +If the file does not exist an ``OSError`` exception will occur.""" + +class uname_result(Tuple[str, str, str, str, str]): + """Wynik ``os.uname()``""" + sysname: str + """Nazwa systemu operacyjnego.""" + nodename: str + """Nazwa maszyny w sieci (zdefiniowana w implementacji).""" + release: str + """Wydanie systemu operacyjnego.""" + version: str + """Wersja systemu operacyjnego""" + machine: str + """Identyfikator sprzętu.""" + +def uname() -> uname_result: + """Zwraca informacje identyfikujące bieżący system operacyjny. + +Example: ``os.uname()`` + +The return value is an object with five attributes: + +- ``sysname`` - operating system name +- ``nodename`` - name of machine on network (implementation-defined) +- ``release`` - operating system release +- ``version`` - operating system version +- ``machine`` - hardware identifier + +There is no underlying operating system in MicroPython. As a result the +information returned by the ``uname`` function is mostly useful for +versioning details.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/power.pyi b/lang/pl/typeshed/stdlib/power.pyi new file mode 100644 index 0000000..2be8b27 --- /dev/null +++ b/lang/pl/typeshed/stdlib/power.pyi @@ -0,0 +1,53 @@ +"""Manage the power modes of the micro:bit (V2 only). +""" + +from microbit import MicroBitDigitalPin, Button +from typing import Optional, Tuple, Union + +def off() -> None: + """Power down the board to the lowest possible power mode. + + Example: ``power.off()`` + + This is the equivalent to pressing the reset button for a few seconds, + to set the board in "Off mode". + + The micro:bit will only wake up if the reset button is pressed or, + if on battery power, when a USB cable is connected. + + When the board wakes up it will start for a reset state, so your program + will start running from the beginning. + """ + ... + +def deep_sleep( + ms: Optional[int] = None, + wake_on: Optional[ + Union[MicroBitDigitalPin, Button] | Tuple[MicroBitDigitalPin | Button, ...] + ] = None, + run_every: bool = True, +) -> None: + """Set the micro:bit into a low power mode where it can wake up and continue operation. + + Example: ``power.deep_sleep(wake_on=(button_a, button_b))`` + + The program state is preserved and when it wakes up it will resume + operation where it left off. + + Deep Sleep mode will consume more battery power than Off mode. + + The wake up sources are configured via arguments. + + The board will always wake up when receiving UART data, when the reset + button is pressed (which resets the board) or, in battery power, + when the USB cable is inserted. + + When the ``run_every`` parameter is set to ``True`` (the default), any + function scheduled with ``run_every`` will momentarily wake up the board + to run and when it finishes it will go back to sleep. + + :param ms: A time in milliseconds to wait before it wakes up. + :param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``. + :param run_every: A boolean to configure if the functions scheduled with ``microbit.run_every`` will continue to run while it sleeps. + """ + ... diff --git a/lang/pl/typeshed/stdlib/radio.pyi b/lang/pl/typeshed/stdlib/radio.pyi new file mode 100644 index 0000000..bc27b9e --- /dev/null +++ b/lang/pl/typeshed/stdlib/radio.pyi @@ -0,0 +1,130 @@ +"""Komunikuj się pomiędzy micro:bitami za pomocą wbudowanego radia.""" +from _typeshed import WriteableBuffer +from typing import Optional, Tuple +RATE_1MBIT: int +"""Stała używana do wskazania przepustowości 1 MBit na sekundę.""" +RATE_2MBIT: int +"""Stała używana do wskazania przepustowości 2 MBit na sekundę.""" + +def on() -> None: + """Włącza radio + +Example: ``radio.on()`` + +This needs to be explicitly called since the radio draws power and takes +up memory that you may otherwise need.""" + ... + +def off() -> None: + """Wyłącza radio, oszczędzając energię i pamięć. + +Example: ``radio.off()``""" + ... + +def config(length: int=32, queue: int=3, channel: int=7, power: int=6, address: int=1969383796, group: int=0, data_rate: int=RATE_1MBIT) -> None: + """Konfiguruje radio. + +Example: ``radio.config(group=42)`` + +The default configuration is suitable for most use. + +:param length: (default=32) definiuje maksymalną długość w bajtach wiadomości wysyłanej przez radio. +Może mieć długość do 251 bajtów (254 - 3 bajty dla S0, LENGTH i S1). +:param queue: (default=3) określa liczbę wiadomości, które mogą być przechowywane w kolejce przychodzących wiadomości. +Jeśli w kolejce na wiadomości przychodzące nie ma już wolnych miejsc, wiadomość przychodząca jest odrzucana. +:param channel: (default=7) wartość całkowita od 0 do 83 (włącznie), która definiuje dowolny „kanał”, do którego dostrojone jest radio. +Wiadomości będą wysyłane za pośrednictwem tego kanału i tylko wiadomości otrzymane za pośrednictwem tego kanału zostaną umieszczone w kolejce wiadomości przychodzących. Każdy stopień ma szerokość 1 MHz w oparciu o częstotliwość 2400 MHz. +:param power: (default=6) jest liczb całkowitą od 0 do 7 (włącznie) do oznaczenia siły sygnału używanego podczas nadawania wiadomości. +Im wyższa wartość, tym silniejszy jest sygnał, ale tym większa moc jest zużywana przez urządzenie. Numeracja przekłada się na pozycje w następującym wykazie wartości dBm (decybel miliwat): -30, -20, -16, -12, -8, -4, 0, 4. +:param address: (default=0x75626974) dowolna nazwa wyrażona jako 32-bitowy adres, używana do filtrowania przychodzących pakietów na poziomie sprzętowym, zatrzymując tylko te, które odpowiadają ustawionemu adresowi. +Domyślnym ustawieniem używanym przez inne platformy powiązane z micro:bitem jest ustawienie domyślne używane tutaj. +:param group: (default=0) 8-bitowa wartość (0-255) używana wraz z ``address`` podczas filtrowania wiadomości. +Koncepcyjnie, "adres" jest jak adres domu/biura, a "grupa" jest jak osoba pod tym adresem, na który chcesz wysłać swoją wiadomość. +:param data_rate: (default=``radio.RATE_1MBIT``) wskazuje prędkość, z jaką odbywa się przesyłanie danych. +Może być jedną z następujących stałych zdefiniowanych w module ``radio``:``RATE_250KBIT``, ``RATE_1MBIT`` lub ``RATE_2MBIT``. + +If ``config`` is not called then the defaults described above are assumed.""" + ... + +def reset() -> None: + """Resetuj ustawienia do ich wartości domyślnych. + +Example: ``radio.reset()`` + +The defaults as as per the ``config`` function above.""" + ... + +def send_bytes(message: bytes) -> None: + """Wysyła wiadomość zawierającą bajty. + +Example: ``radio.send_bytes(b'hello')`` + +:param message: Bajty do wysłania.""" + ... + +def receive_bytes() -> Optional[bytes]: + """Otrzymuj następną przychodzącą wiadomość w kolejce wiadomości. + +Example: ``radio.receive_bytes()`` + +:return: The message bytes if any, otherwise ``None``.""" + ... + +def receive_bytes_into(buffer: WriteableBuffer) -> Optional[int]: + """Skopiuj następną wiadomość przychodzącą do kolejki wiadomości w buforze. + +Example: ``radio.receive_bytes_info(buffer)`` + +:param buffer: Bufor docelowy. Wiadomość jest obcinana, jeśli jest większa niż bufor. +:return: ``None`` if there are no pending messages, otherwise it returns the length of the message (which might be more than the length of the buffer).""" + ... + +def send(message: str) -> None: + """Wysyła łańcuch wiadomości. + +Example: ``radio.send('hello')`` + +This is the equivalent of ``radio.send_bytes(bytes(message, 'utf8'))`` but with ``b'\x01\x00\x01'`` +prepended to the front (to make it compatible with other platforms that target the micro:bit). + +:param message: Łańcuch do wysłania.""" + ... + +def receive() -> Optional[str]: + """Działa dokładnie w taki sam sposób, jak ``receive_bytes``, ale zwraca cokolwiek zostało wysłane. (odbierz) + +Example: ``radio.receive()`` + +Equivalent to ``str(receive_bytes(), 'utf8')`` but with a check that the the first +three bytes are ``b'\x01\x00\x01'`` (to make it compatible with other platforms that +may target the micro:bit). + +:return: The message with the prepended bytes stripped and converted to a string. + +A ``ValueError`` exception is raised if conversion to string fails.""" + ... + +def receive_full() -> Optional[Tuple[bytes, int, int]]: + """Zwraca krotkę zawierającą trzy wartości reprezentujące następną wiadomość przychodzącą do kolejki wiadomości. + +Example: ``radio.receive_full()`` + +If there are no pending messages then ``None`` is returned. + +The three values in the tuple represent: + +- the next incoming message on the message queue as bytes. +- the RSSI (signal strength): a value between 0 (strongest) and -255 (weakest) as measured in dBm. +- a microsecond timestamp: the value returned by ``time.ticks_us()`` when the message was received. + +For example:: + + details = radio.receive_full() + if details: + msg, rssi, timestamp = details + +This function is useful for providing information needed for triangulation +and/or trilateration with other micro:bit devices. + +:return: ``None`` if there is no message, otherwise a tuple of length three with the bytes, strength and timestamp values.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/random.pyi b/lang/pl/typeshed/stdlib/random.pyi new file mode 100644 index 0000000..c6431c6 --- /dev/null +++ b/lang/pl/typeshed/stdlib/random.pyi @@ -0,0 +1,81 @@ +"""Generuj liczb losowe. (losowy)""" +from typing import TypeVar, Sequence, Union, overload + +def getrandbits(n: int) -> int: + """Wygeneruj liczbę całkowitą z ``n`` losowymi bitami. + +Example: ``random.getrandbits(1)`` + +:param n: Wartość między 1–30 (włącznie).""" + ... + +def seed(n: int) -> None: + """Zainicjuj generator liczb losowych. + +Example: ``random.seed(0)`` + +:param n: Całkowity zarodek + +This will give you reproducibly deterministic randomness from a given starting +state (``n``).""" + ... + +def randint(a: int, b: int) -> int: + """Wybierz losową liczbę całkowitą pomiędzy ``a`` i ``b`` włącznie. + +Example: ``random.randint(0, 9)`` + +:param a: Wartość początkowa dla zakresu (włącznie) +:param b: Wartość końcowa dla zakresu (wyłącznie) + +Alias for ``randrange(a, b + 1)``.""" + ... + +@overload +def randrange(stop: int) -> int: + """Wybierz losowo wybraną liczbę całkowitą między zero aż do (ale nie +włącznie) ``stop``. + +Example: ``random.randrange(10)`` + +:param stop: Wartość końcowa zakresu (wyłącznie)""" + ... + +@overload +def randrange(start: int, stop: int, step: int=1) -> int: + """Wybierz losowo wybrany element z ``range(start, stop, step)``. + +Example: ``random.randrange(0, 10)`` + +:param start: Początek zakresu (włącznie) +:param stop: Koniec zakresu (wyłącznie) +:param step: Krok""" + ... +_T = TypeVar('_T') + +def choice(seq: Sequence[_T]) -> _T: + """Wybierz losowy element z niepustego cigu ``seq``. + +Example: ``random.choice([Image.HAPPY, Image.SAD])`` + +:param seq: Cig. + +If ``seq`` is empty, raises ``IndexError``.""" + ... + +def random() -> float: + """Wygeneruj losową liczbę zmiennopozycyjną w zakresie [0.0, 1.0). + +Example: ``random.random()`` + +:return: The random floating point number""" + ... + +def uniform(a: float, b: float) -> float: + """Zwróć losową liczbę zmiennopozycyjnłą między ``a`` i ``b``. + +Example: ``random.uniform(0, 9)`` + +:param a: Wartość początkowa dla zakresu (włącznie) +:param b: Wartość końcowa dla zakresu (wyłącznie)""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/speech.pyi b/lang/pl/typeshed/stdlib/speech.pyi new file mode 100644 index 0000000..cf7dced --- /dev/null +++ b/lang/pl/typeshed/stdlib/speech.pyi @@ -0,0 +1,79 @@ +"""Spraw, by micro:bit mówił, śpiewał i tworzył inne dźwięki podobne do mowy.""" +from typing import Optional +from .microbit import MicroBitDigitalPin, pin0 + +def translate(words: str) -> str: + """Tłumacz angielskie słowa na fonemy. + +Example: ``speech.translate('hello world')`` + +:param words: Łańcuch słów angielskich. +:return: A string containing a best guess at the appropriate phonemes to pronounce. +The output is generated from this `text to phoneme translation table `_. + +This function should be used to generate a first approximation of phonemes +that can be further hand-edited to improve accuracy, inflection and +emphasis. + +See `the online documentation `_ for detailed information.""" + ... + +def pronounce(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Wymów fonemy. + +Example: ``speech.pronounce(' /HEHLOW WERLD')`` + +:param phonemes: Łańcuch fonemów do wymówienia +:param pitch: Liczba reprezentująca wysokość głosu +:param speed: Liczba reprezentująca szybkość głosu +:param mouth: Liczba reprezentująca usta głosu +:param throat: Liczba reprezentująca gardło głosu +:param pin: Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości ``pin0``. +Jeśli nie chcemy, aby jakikolwiek dźwięk wydobywał się z pinów, możemy użyć ``pin=None``. Tylko micro:bit V2. + +Override the optional pitch, speed, mouth and throat settings to change the +timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... + +def say(words: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Powiedz angielskie słowa. + +Example: ``speech.say('hello world')`` + +:param words: Łańcuch słów do powiedzenia. +:param pitch: Liczba reprezentująca wysokość głosu +:param speed: Liczba reprezentująca szybkość głosu +:param mouth: Liczba reprezentująca usta głosu +:param throat: Liczba reprezentująca gardło głosu +:param pin: Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości ``pin0``. +Jeśli nie chcemy, aby jakikolwiek dźwięk wydobywał się z pinów, możemy użyć ``pin=None``. Tylko micro:bit V2. + +The result is semi-accurate for English. Override the optional pitch, speed, +mouth and throat settings to change the timbre (quality) of the voice. + +This is a short-hand equivalent of: +``speech.pronounce(speech.translate(words))`` + +See `the online documentation `_ for detailed information.""" + ... + +def sing(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Zaśpiewaj fonemy. + +Example: ``speech.sing(' /HEHLOW WERLD')`` + +:param phonemes: Łańcuch słów do zaśpiewania. +:param pitch: Liczba reprezentująca wysokość głosu +:param speed: Liczba reprezentująca szybkość głosu +:param mouth: Liczba reprezentująca usta głosu +:param throat: Liczba reprezentująca gardło głosu +:param pin: Opcjonalny argument do określenia pinu wyjściowego może być użyty do nadpisania domyślnej wartości ``pin0``. +Jeśli nie chcemy, aby jakikolwiek dźwięk wydobywał się z pinów, możemy użyć ``pin=None``. Tylko micro:bit V2. + +Override the optional pitch, speed, mouth and throat settings to change +the timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/struct.pyi b/lang/pl/typeshed/stdlib/struct.pyi new file mode 100644 index 0000000..ea3d443 --- /dev/null +++ b/lang/pl/typeshed/stdlib/struct.pyi @@ -0,0 +1,56 @@ +"""Pakuj i rozpakowuj prymitywne typy danych.""" +from _typeshed import ReadableBuffer, WriteableBuffer +from typing import Any, Tuple, Union + +def calcsize(fmt: str) -> int: + """Uzyskaj liczbę bajtów potrzebnych do przechowywania podanego ``fmt``. + +Example: ``struct.calcsize('hf')`` + +:param fmt: Łańcuch formatu. +:return The number of bytes needed to store such a value.""" + ... + +def pack(fmt: str, v1: Any, *vn: Any) -> bytes: + """Upakuj wartości zgodnie z łńcuchem formatu. + +Example: ``struct.pack('hf', 1, 3.1415)`` + +:param fmt: Łańcuch formatu. +:param v1: Pierwsza wartość. +:param *vn: Pozostałe wartości. +:return A bytes object encoding the values.""" + ... + +def pack_into(fmt: str, buffer: WriteableBuffer, offset: int, v1: Any, *vn: Any) -> None: + """Upakuj wartości zgodnie z łńcuchem formatu. + +Example: ``struct.pack_info('hf', buffer, 1, 3.1415)`` + +:param fmt: Łańcuch formatu. +:param buffer: Bufor docelowy do zapisu. +:param offset: Przesunięcie do bufora. Wartość ujemna może być liczona od końca bufora. +:param v1: (w1) Pierwsza wartość. +:param *vn: Pozostałe wartości.""" + ... + +def unpack(fmt: str, data: ReadableBuffer) -> Tuple[Any, ...]: + """Rozpakuj dane zgodnie z łańcuchem formatu. + +Example: ``v1, v2 = struct.unpack('hf', buffer)`` + +:param fmt: Łańcuch formatu. +:param data: Dane +:return: A tuple of the unpacked values.""" + ... + +def unpack_from(fmt: str, buffer: ReadableBuffer, offset: int=0) -> Tuple: + """Rozpakuj dane z buforu zgodnie z łańcuchem formatu. + +Example: ``v1, v2 = struct.unpack_from('hf', buffer)`` + +:param fmt: Łańcuch formatu. +:param buffer: Bufor źródłowy do odczytu. +:param offset: Przesunięcie do bufora. Wartość ujemna może być liczona od końca bufora. +:return: A tuple of the unpacked values.""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/sys.pyi b/lang/pl/typeshed/stdlib/sys.pyi new file mode 100644 index 0000000..c0683cb --- /dev/null +++ b/lang/pl/typeshed/stdlib/sys.pyi @@ -0,0 +1,96 @@ +"""Funkcje specyficzne dla systemu""" +from typing import Any, Dict, List, NoReturn, TextIO, Tuple + +def exit(retval: object=...) -> NoReturn: + """Zakończ bieżący program z podanym kodem wyjścia. + +Example: ``sys.exit(1)`` + +This function raises a ``SystemExit`` exception. If an argument is given, its +value given as an argument to ``SystemExit``. + +:param retval: Kod lub wiadomość wyjściowa.""" + ... + +def print_exception(exc: Exception) -> None: + """Wydrukuj wyjątek ze śledzeniem. + +Example: ``sys.print_exception(e)`` + +:param exc: Wyjątek do wydrukowania + +This is simplified version of a function which appears in the +``traceback`` module in CPython.""" +argv: List[str] +"""Zmienna lista argumentów, od których uruchomiono bieżący program.""" +byteorder: str +"""Kolejność bajtów systemu (``"little"`` lub ``"big"``).""" + +class _implementation: + name: str + version: Tuple[int, int, int] +implementation: _implementation +"""Obiekt z informacjami o bieżącej implementacji Pythona. + +For MicroPython, it has following attributes: + +- ``name`` - string "micropython" +- ``version`` - tuple (major, minor, micro), e.g. (1, 7, 0) + +This object is the recommended way to distinguish MicroPython from other +Python implementations (note that it still may not exist in the very +minimal ports). + +CPython mandates more attributes for this object, but the actual useful +bare minimum is implemented in MicroPython. +""" +maxsize: int +""" +Maksymalna wartość, jaką może przechowywać natywny typ całkowity na bieżącej platformie, +lub maksymalna wartość reprezentowana przez typ całkowity MicroPythona, jeśli jest mniejsza +niż maksymalna wartość platformy (tak jest w przypadku portów MicroPython bez +wsparcia long int). + +This attribute is useful for detecting "bitness" of a platform (32-bit vs +64-bit, etc.). It's recommended to not compare this attribute to some +value directly, but instead count number of bits in it:: + + bits = 0 + v = sys.maxsize + while v: + bits += 1 + v >>= 1 + if bits > 32: + # 64-bit (or more) platform + ... + else: + # 32-bit (or less) platform + # Note that on 32-bit platform, value of bits may be less than 32 + # (e.g. 31) due to peculiarities described above, so use "> 16", + # "> 32", "> 64" style of comparisons. +""" +modules: Dict[str, Any] +"""Słownik załadowanych modułów. + +On some ports, it may not include builtin modules.""" +path: List[str] +"""Zmienna lista katalogów do wyszukiwania importowanych modułów.""" +platform: str +"""Platforma na której działa MicroPython. + +For OS/RTOS ports, this is usually an identifier of the OS, e.g. ``"linux"``. +For baremetal ports it is an identifier of a board, e.g. ``"pyboard"`` for +the original MicroPython reference board. It thus can be used to +distinguish one board from another. + +If you need to check whether your program runs on MicroPython (vs other +Python implementation), use ``sys.implementation`` instead. +""" +version: str +"""Wersja Pythona, z którą ta implementacja jest zgodna, jako łańcuch.""" +version_info: Tuple[int, int, int] +"""Wersja Pythona, z którą ta implementacja jest zgodna, jako krotka typu int. + +Only the first three version numbers (major, minor, micro) are supported and +they can be referenced only by index, not by name. +""" \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/this.pyi b/lang/pl/typeshed/stdlib/this.pyi new file mode 100644 index 0000000..faf492b --- /dev/null +++ b/lang/pl/typeshed/stdlib/this.pyi @@ -0,0 +1 @@ +def authors() -> str: ... diff --git a/lang/pl/typeshed/stdlib/time.pyi b/lang/pl/typeshed/stdlib/time.pyi new file mode 100644 index 0000000..cc4cf6e --- /dev/null +++ b/lang/pl/typeshed/stdlib/time.pyi @@ -0,0 +1,117 @@ +"""Zmierz czas i dodaj opóźnienia do programów.""" +from typing import Union + +def sleep(seconds: Union[int, float]) -> None: + """Opóźnij kilka sekund. + +Example: ``time.sleep(1)`` + +:param seconds: Liczba sekund snu. +Użyj liczby zmiennopozycyjnej, aby spać przez ułamkową część sekund.""" + ... + +def sleep_ms(ms: int) -> None: + """Opóźnij o podaną liczbę milisekund. + +Example: ``time.sleep_ms(1_000_000)`` + +:param ms: Liczba milisekund opóźnienia (>= 0).""" + ... + +def sleep_us(us: int) -> None: + """Opóźnij o podaną liczbę milisekund. + +Example: ``time.sleep_us(1000)`` + +:param us: Liczba milisekund opóźnienia (>= 0).""" + ... + +def ticks_ms() -> int: + """Uzyskaj rosnący licznik milisekundowy z dowolnym punktem odniesienia, +który zawija się po pewnej wartości. + +Example: ``time.ticks_ms()`` + +:return: The counter value in milliseconds.""" + ... + +def ticks_us() -> int: + """Uzyskaj rosnący licznik milisekundowy z dowolnym punktem odniesienia, +który zawija się po pewnej wartości. + +Example: ``time.ticks_us()`` + +:return: The counter value in microseconds.""" + ... + +def ticks_add(ticks: int, delta: int) -> int: + """Przesunięcie zaznacza wartość o podaną liczbę, która może być dodatnia lub +negatywny. +. + +Example: ``time.ticks_add(time.ticks_ms(), 200)`` + +Given a ticks value, this function allows to calculate ticks +value delta ticks before or after it, following modular-arithmetic +definition of tick values. + +:param ticks: Wartość ticków +:param delta: Przesunięcie o liczbę całkowitą + +Example:: + + # Find out what ticks value there was 100ms ago + print(ticks_add(time.ticks_ms(), -100)) + + # Calculate deadline for operation and test for it + deadline = ticks_add(time.ticks_ms(), 200) + while ticks_diff(deadline, time.ticks_ms()) > 0: + do_a_little_of_something() + + # Find out TICKS_MAX used by this port + print(ticks_add(0, -1))""" + ... + +def ticks_diff(ticks1: int, ticks2: int) -> int: + """Zmierz różnicę ticków między wartościami zwróconymi z +``time.ticks_ms()`` lub ``ticks_us()``, jako wartość ze znakiem, +która może się zawijać. + +Example: ``time.ticks_diff(scheduled_time, now)`` + +:param ticks1: Wartość do odejmowania od +:param ticks2: Wartość do odejmowania + +The argument order is the same as for subtraction operator, +``ticks_diff(ticks1, ticks2)`` has the same meaning as ``ticks1 - ticks2``. + +``ticks_diff()`` is designed to accommodate various usage +patterns, among them: + +Polling with timeout. In this case, the order of events is known, and you +will deal only with positive results of :func:`time.ticks_diff()`:: + + # Wait for GPIO pin to be asserted, but at most 500us + start = time.ticks_us() + while pin.value() == 0: + if time.ticks_diff(time.ticks_us(), start) > 500: + raise TimeoutError + + +Scheduling events. In this case, :func:`time.ticks_diff()` result may be +negative if an event is overdue:: + + # This code snippet is not optimized + now = time.ticks_ms() + scheduled_time = task.scheduled_time() + if ticks_diff(scheduled_time, now) > 0: + print("Too early, let's nap") + sleep_ms(ticks_diff(scheduled_time, now)) + task.run() + elif ticks_diff(scheduled_time, now) == 0: + print("Right at time!") + task.run() + elif ticks_diff(scheduled_time, now) < 0: + print("Oops, running late, tell task to run faster!") + task.run(run_faster=True)""" + ... \ No newline at end of file diff --git a/lang/pl/typeshed/stdlib/types.pyi b/lang/pl/typeshed/stdlib/types.pyi new file mode 100644 index 0000000..752b2de --- /dev/null +++ b/lang/pl/typeshed/stdlib/types.pyi @@ -0,0 +1,413 @@ +import sys +from typing import ( + Any, + AsyncGenerator, + Awaitable, + Callable, + Generator, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + Tuple, + Type, + TypeVar, + ValuesView, + overload, +) +from typing_extensions import Literal, final + +# Note, all classes "defined" here require special handling. + +_T = TypeVar("_T") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT_co = TypeVar("_VT_co", covariant=True) +_V_co = TypeVar("_V_co", covariant=True) + +@final +class _Cell: + __hash__: None # type: ignore + cell_contents: Any + +@final +class FunctionType: + __closure__: Tuple[_Cell, ...] | None + __code__: CodeType + __defaults__: Tuple[Any, ...] | None + __dict__: dict[str, Any] + __globals__: dict[str, Any] + __name__: str + __qualname__: str + __annotations__: dict[str, Any] + __kwdefaults__: dict[str, Any] + def __init__( + self, + code: CodeType, + globals: dict[str, Any], + name: str | None = ..., + argdefs: Tuple[object, ...] | None = ..., + closure: Tuple[_Cell, ...] | None = ..., + ) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: object | None, type: type | None) -> MethodType: ... + +LambdaType = FunctionType + +@final +class CodeType: + """Create a code object. Not for the faint of heart.""" + + co_argcount: int + if sys.version_info >= (3, 8): + co_posonlyargcount: int + co_kwonlyargcount: int + co_nlocals: int + co_stacksize: int + co_flags: int + co_code: bytes + co_consts: Tuple[Any, ...] + co_names: Tuple[str, ...] + co_varnames: Tuple[str, ...] + co_filename: str + co_name: str + co_firstlineno: int + co_lnotab: bytes + co_freevars: Tuple[str, ...] + co_cellvars: Tuple[str, ...] + if sys.version_info >= (3, 8): + def __init__( + self, + argcount: int, + posonlyargcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + else: + def __init__( + self, + argcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + if sys.version_info >= (3, 8): + def replace( + self, + *, + co_argcount: int = ..., + co_posonlyargcount: int = ..., + co_kwonlyargcount: int = ..., + co_nlocals: int = ..., + co_stacksize: int = ..., + co_flags: int = ..., + co_firstlineno: int = ..., + co_code: bytes = ..., + co_consts: Tuple[Any, ...] = ..., + co_names: Tuple[str, ...] = ..., + co_varnames: Tuple[str, ...] = ..., + co_freevars: Tuple[str, ...] = ..., + co_cellvars: Tuple[str, ...] = ..., + co_filename: str = ..., + co_name: str = ..., + co_lnotab: bytes = ..., + ) -> CodeType: ... + +@final +class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]): + __hash__: None # type: ignore + def __init__(self, mapping: Mapping[_KT, _VT_co]) -> None: ... + def __getitem__(self, k: _KT) -> _VT_co: ... + def __iter__(self) -> Iterator[_KT]: ... + def __len__(self) -> int: ... + def copy(self) -> dict[_KT, _VT_co]: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def items(self) -> ItemsView[_KT, _VT_co]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __reversed__(self) -> Iterator[_KT]: ... + def __or__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + def __ror__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + +class SimpleNamespace: + __hash__: None # type: ignore + def __init__(self, **kwargs: Any) -> None: ... + def __getattribute__(self, name: str) -> Any: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __delattr__(self, name: str) -> None: ... + +class ModuleType: + __name__: str + __file__: str + __dict__: dict[str, Any] + __package__: str | None + def __init__(self, name: str, doc: str | None = ...) -> None: ... + +@final +class GeneratorType(Generator[_T_co, _T_contra, _V_co]): + gi_code: CodeType + gi_frame: FrameType + gi_running: bool + gi_yieldfrom: GeneratorType[_T_co, _T_contra, Any] | None + def __iter__(self) -> GeneratorType[_T_co, _T_contra, _V_co]: ... + def __next__(self) -> _T_co: ... + def close(self) -> None: ... + def send(self, __arg: _T_contra) -> _T_co: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> _T_co: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> _T_co: ... + +@final +class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]): + ag_await: Awaitable[Any] | None + ag_frame: FrameType + ag_running: bool + ag_code: CodeType + def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ... + def __anext__(self) -> Awaitable[_T_co]: ... + def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Awaitable[_T_co]: ... + def aclose(self) -> Awaitable[None]: ... + +@final +class CoroutineType: + cr_await: Any | None + cr_code: CodeType + cr_frame: FrameType + cr_running: bool + def close(self) -> None: ... + def send(self, __arg: Any) -> Any: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Any: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Any: ... + +class _StaticFunctionType: + """Fictional type to correct the type of MethodType.__func__. + + FunctionType is a descriptor, so mypy follows the descriptor protocol and + converts MethodType.__func__ back to MethodType (the return type of + FunctionType.__get__). But this is actually a special case; MethodType is + implemented in C and its attribute access doesn't go through + __getattribute__. + + By wrapping FunctionType in _StaticFunctionType, we get the right result; + similar to wrapping a function in staticmethod() at runtime to prevent it + being bound as a method. + """ + + def __get__(self, obj: object | None, type: type | None) -> FunctionType: ... + +@final +class MethodType: + __closure__: Tuple[_Cell, ...] | None # inherited from the added function + __defaults__: Tuple[Any, ...] | None # inherited from the added function + __func__: _StaticFunctionType + __self__: object + __name__: str # inherited from the added function + __qualname__: str # inherited from the added function + def __init__(self, func: Callable[..., Any], obj: object) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +@final +class BuiltinFunctionType: + __self__: object | ModuleType + __name__: str + __qualname__: str + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +BuiltinMethodType = BuiltinFunctionType + +if sys.version_info >= (3, 7): + @final + class WrapperDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class MethodWrapperType: + __self__: object + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __eq__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + @final + class MethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class ClassMethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + +@final +class TracebackType: + if sys.version_info >= (3, 7): + def __init__( + self, + tb_next: TracebackType | None, + tb_frame: FrameType, + tb_lasti: int, + tb_lineno: int, + ) -> None: ... + tb_next: TracebackType | None + else: + @property + def tb_next(self) -> TracebackType | None: ... + # the rest are read-only even in 3.7 + @property + def tb_frame(self) -> FrameType: ... + @property + def tb_lasti(self) -> int: ... + @property + def tb_lineno(self) -> int: ... + +@final +class FrameType: + f_back: FrameType | None + f_builtins: dict[str, Any] + f_code: CodeType + f_globals: dict[str, Any] + f_lasti: int + f_lineno: int + f_locals: dict[str, Any] + f_trace: Callable[[FrameType, str, Any], Any] | None + if sys.version_info >= (3, 7): + f_trace_lines: bool + f_trace_opcodes: bool + def clear(self) -> None: ... + +@final +class GetSetDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +@final +class MemberDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +if sys.version_info >= (3, 7): + def new_class( + name: str, + bases: Iterable[object] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + def resolve_bases(bases: Iterable[object]) -> Tuple[Any, ...]: ... + +else: + def new_class( + name: str, + bases: Tuple[type, ...] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + +def prepare_class( + name: str, bases: Tuple[type, ...] = ..., kwds: dict[str, Any] | None = ... +) -> Tuple[type, dict[str, Any], dict[str, Any]]: ... + +# Actually a different type, but `property` is special and we want that too. +DynamicClassAttribute = property + +def coroutine(func: Callable[..., Any]) -> CoroutineType: ... + +if sys.version_info >= (3, 8): + CellType = _Cell + +if sys.version_info >= (3, 9): + class GenericAlias: + __origin__: type + __args__: Tuple[Any, ...] + __parameters__: Tuple[Any, ...] + def __init__(self, origin: type, args: Any) -> None: ... + def __getattr__(self, name: str) -> Any: ... # incomplete + +if sys.version_info >= (3, 10): + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... + EllipsisType = ellipsis # noqa F811 from builtins + from builtins import _NotImplementedType + + NotImplementedType = _NotImplementedType # noqa F811 from builtins + @final + class UnionType: + __args__: Tuple[Any, ...] + def __or__(self, obj: Any) -> UnionType: ... + def __ror__(self, obj: Any) -> UnionType: ... diff --git a/lang/pl/typeshed/stdlib/typing.pyi b/lang/pl/typeshed/stdlib/typing.pyi new file mode 100644 index 0000000..a494557 --- /dev/null +++ b/lang/pl/typeshed/stdlib/typing.pyi @@ -0,0 +1,716 @@ +import collections # Needed by aliases like DefaultDict, see mypy issue 2986 +import sys +from abc import ABCMeta, abstractmethod +from types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType +from typing_extensions import Literal as _Literal + +if sys.version_info >= (3, 7): + from types import MethodDescriptorType, MethodWrapperType, WrapperDescriptorType + +if sys.version_info >= (3, 9): + from types import GenericAlias + +# Definitions of special type checking related constructs. Their definitions +# are not used, so their value does not matter. + +Any = object() + +class TypeVar: + __name__: str + __bound__: Optional[Type[Any]] + __constraints__: Tuple[Type[Any], ...] + __covariant__: bool + __contravariant__: bool + def __init__( + self, + name: str, + *constraints: Type[Any], + bound: Union[None, Type[Any], str] = ..., + covariant: bool = ..., + contravariant: bool = ..., + ) -> None: ... + +_promote = object() + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> object: ... + +_F = TypeVar("_F", bound=Callable[..., Any]) + +def overload(func: _F) -> _F: ... + +Union: _SpecialForm = ... +Optional: _SpecialForm = ... +Tuple: _SpecialForm = ... +Generic: _SpecialForm = ... +# Protocol is only present in 3.8 and later, but mypy needs it unconditionally +Protocol: _SpecialForm = ... +Callable: _SpecialForm = ... +Type: _SpecialForm = ... +ClassVar: _SpecialForm = ... +if sys.version_info >= (3, 8): + Final: _SpecialForm = ... + def final(f: _F) -> _F: ... + Literal: _SpecialForm = ... + # TypedDict is a (non-subscriptable) special form. + TypedDict: object + +if sys.version_info < (3, 7): + class GenericMeta(type): ... + +if sys.version_info >= (3, 10): + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Optional[Type[Any]] + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: Union[None, Type[Any], str] = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... + +# Return type that indicates a function does not return. +# This type is equivalent to the None type, but the no-op Union is necessary to +# distinguish the None type from the None value. +NoReturn = Union[None] + +# These type variables are used by the container types. +_T = TypeVar("_T") +_S = TypeVar("_S") +_KT = TypeVar("_KT") # Key type. +_VT = TypeVar("_VT") # Value type. +_T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers. +_V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers. +_KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers. +_VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers. +_T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant. +_TC = TypeVar("_TC", bound=Type[object]) + +def no_type_check(arg: _F) -> _F: ... +def no_type_check_decorator(decorator: _F) -> _F: ... + +# Type aliases and type constructors + +class _Alias: + # Class for defining generic aliases for library types. + def __getitem__(self, typeargs: Any) -> Any: ... + +List = _Alias() +Dict = _Alias() +DefaultDict = _Alias() +Set = _Alias() +FrozenSet = _Alias() +Counter = _Alias() +Deque = _Alias() +ChainMap = _Alias() + +if sys.version_info >= (3, 7): + OrderedDict = _Alias() + +if sys.version_info >= (3, 9): + Annotated: _SpecialForm = ... + +# Predefined type variables. +AnyStr = TypeVar("AnyStr", str, bytes) + +# Abstract base classes. + +def runtime_checkable(cls: _TC) -> _TC: ... +@runtime_checkable +class SupportsInt(Protocol, metaclass=ABCMeta): + @abstractmethod + def __int__(self) -> int: ... + +@runtime_checkable +class SupportsFloat(Protocol, metaclass=ABCMeta): + @abstractmethod + def __float__(self) -> float: ... + +@runtime_checkable +class SupportsComplex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __complex__(self) -> complex: ... + +@runtime_checkable +class SupportsBytes(Protocol, metaclass=ABCMeta): + @abstractmethod + def __bytes__(self) -> bytes: ... + +if sys.version_info >= (3, 8): + @runtime_checkable + class SupportsIndex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __index__(self) -> int: ... + +@runtime_checkable +class SupportsAbs(Protocol[_T_co]): + @abstractmethod + def __abs__(self) -> _T_co: ... + +@runtime_checkable +class SupportsRound(Protocol[_T_co]): + @overload + @abstractmethod + def __round__(self) -> int: ... + @overload + @abstractmethod + def __round__(self, ndigits: int) -> _T_co: ... + +@runtime_checkable +class Sized(Protocol, metaclass=ABCMeta): + @abstractmethod + def __len__(self) -> int: ... + +@runtime_checkable +class Hashable(Protocol, metaclass=ABCMeta): + # TODO: This is special, in that a subclass of a hashable class may not be hashable + # (for example, list vs. object). It's not obvious how to represent this. This class + # is currently mostly useless for static checking. + @abstractmethod + def __hash__(self) -> int: ... + +@runtime_checkable +class Iterable(Protocol[_T_co]): + @abstractmethod + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Iterator(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __next__(self) -> _T_co: ... + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Reversible(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __reversed__(self) -> Iterator[_T_co]: ... + +class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]): + def __next__(self) -> _T_co: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + def close(self) -> None: ... + def __iter__(self) -> Generator[_T_co, _T_contra, _V_co]: ... + @property + def gi_code(self) -> CodeType: ... + @property + def gi_frame(self) -> FrameType: ... + @property + def gi_running(self) -> bool: ... + @property + def gi_yieldfrom(self) -> Optional[Generator[Any, Any, Any]]: ... + +@runtime_checkable +class Awaitable(Protocol[_T_co]): + @abstractmethod + def __await__(self) -> Generator[Any, None, _T_co]: ... + +class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]): + __name__: str + __qualname__: str + @property + def cr_await(self) -> Optional[Any]: ... + @property + def cr_code(self) -> CodeType: ... + @property + def cr_frame(self) -> FrameType: ... + @property + def cr_running(self) -> bool: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + @abstractmethod + def close(self) -> None: ... + +# NOTE: This type does not exist in typing.py or PEP 484. +# The parameters correspond to Generator, but the 4th is the original type. +class AwaitableGenerator( + Awaitable[_V_co], Generator[_T_co, _T_contra, _V_co], Generic[_T_co, _T_contra, _V_co, _S], metaclass=ABCMeta +): ... + +@runtime_checkable +class AsyncIterable(Protocol[_T_co]): + @abstractmethod + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +@runtime_checkable +class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +class AsyncGenerator(AsyncIterator[_T_co], Generic[_T_co, _T_contra]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + @abstractmethod + def asend(self, __value: _T_contra) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ... + @abstractmethod + def aclose(self) -> Awaitable[None]: ... + @abstractmethod + def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ... + @property + def ag_await(self) -> Any: ... + @property + def ag_code(self) -> CodeType: ... + @property + def ag_frame(self) -> FrameType: ... + @property + def ag_running(self) -> bool: ... + +@runtime_checkable +class Container(Protocol[_T_co]): + @abstractmethod + def __contains__(self, __x: object) -> bool: ... + +@runtime_checkable +class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]): + # Implement Sized (but don't have it as a base class). + @abstractmethod + def __len__(self) -> int: ... + +_Collection = Collection[_T_co] + +class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]): + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T_co: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> Sequence[_T_co]: ... + # Mixin methods + def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ... + def count(self, value: Any) -> int: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __reversed__(self) -> Iterator[_T_co]: ... + +class MutableSequence(Sequence[_T], Generic[_T]): + @abstractmethod + def insert(self, index: int, value: _T) -> None: ... + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> MutableSequence[_T]: ... + @overload + @abstractmethod + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + @abstractmethod + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: int) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: slice) -> None: ... + # Mixin methods + def append(self, value: _T) -> None: ... + def clear(self) -> None: ... + def extend(self, values: Iterable[_T]) -> None: ... + def reverse(self) -> None: ... + def pop(self, index: int = ...) -> _T: ... + def remove(self, value: _T) -> None: ... + def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ... + +class AbstractSet(_Collection[_T_co], Generic[_T_co]): + @abstractmethod + def __contains__(self, x: object) -> bool: ... + # Mixin methods + def __le__(self, s: AbstractSet[Any]) -> bool: ... + def __lt__(self, s: AbstractSet[Any]) -> bool: ... + def __gt__(self, s: AbstractSet[Any]) -> bool: ... + def __ge__(self, s: AbstractSet[Any]) -> bool: ... + def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def isdisjoint(self, other: Iterable[Any]) -> bool: ... + +class MutableSet(AbstractSet[_T], Generic[_T]): + @abstractmethod + def add(self, value: _T) -> None: ... + @abstractmethod + def discard(self, value: _T) -> None: ... + # Mixin methods + def clear(self) -> None: ... + def pop(self) -> _T: ... + def remove(self, value: _T) -> None: ... + def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + +class MappingView(Sized): + def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocumented + def __len__(self) -> int: ... + +class ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]): + def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + +class KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]): + def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_KT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT_co]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + +class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]): + def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_VT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_VT_co]: ... + +@runtime_checkable +class ContextManager(Protocol[_T_co]): + def __enter__(self) -> _T_co: ... + def __exit__( + self, + __exc_type: Optional[Type[BaseException]], + __exc_value: Optional[BaseException], + __traceback: Optional[TracebackType], + ) -> Optional[bool]: ... + +@runtime_checkable +class AsyncContextManager(Protocol[_T_co]): + def __aenter__(self) -> Awaitable[_T_co]: ... + def __aexit__( + self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Awaitable[Optional[bool]]: ... + +class Mapping(_Collection[_KT], Generic[_KT, _VT_co]): + # TODO: We wish the key type could also be covariant, but that doesn't work, + # see discussion in https: //github.com/python/typing/pull/273. + @abstractmethod + def __getitem__(self, k: _KT) -> _VT_co: ... + # Mixin methods + @overload + def get(self, key: _KT) -> Optional[_VT_co]: ... + @overload + def get(self, key: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ... + def items(self) -> AbstractSet[Tuple[_KT, _VT_co]]: ... + def keys(self) -> AbstractSet[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def __contains__(self, o: object) -> bool: ... + +class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]): + @abstractmethod + def __setitem__(self, k: _KT, v: _VT) -> None: ... + @abstractmethod + def __delitem__(self, v: _KT) -> None: ... + def clear(self) -> None: ... + @overload + def pop(self, key: _KT) -> _VT: ... + @overload + def pop(self, key: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ... + # 'update' used to take a Union, but using overloading is better. + # The second overloaded type here is a bit too general, because + # Mapping[Tuple[_KT, _VT], W] is a subclass of Iterable[Tuple[_KT, _VT]], + # but will always have the behavior of the first overloaded type + # at runtime, leading to keys of a mix of types _KT and Tuple[_KT, _VT]. + # We don't currently have any way of forcing all Mappings to use + # the first overload, but by using overloading rather than a Union, + # mypy will commit to using the first overload when the argument is + # known to be a Mapping with unknown type parameters, which is closer + # to the behavior we want. See mypy issue #1430. + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + +Text = str + +TYPE_CHECKING = True + +class IO(Iterator[AnyStr], Generic[AnyStr]): + # TODO use abstract properties + @property + def mode(self) -> str: ... + @property + def name(self) -> str: ... + @abstractmethod + def close(self) -> None: ... + @property + def closed(self) -> bool: ... + @abstractmethod + def fileno(self) -> int: ... + @abstractmethod + def flush(self) -> None: ... + @abstractmethod + def isatty(self) -> bool: ... + @abstractmethod + def read(self, n: int = ...) -> AnyStr: ... + @abstractmethod + def readable(self) -> bool: ... + @abstractmethod + def readline(self, limit: int = ...) -> AnyStr: ... + @abstractmethod + def readlines(self, hint: int = ...) -> list[AnyStr]: ... + @abstractmethod + def seek(self, offset: int, whence: int = ...) -> int: ... + @abstractmethod + def seekable(self) -> bool: ... + @abstractmethod + def tell(self) -> int: ... + @abstractmethod + def truncate(self, size: Optional[int] = ...) -> int: ... + @abstractmethod + def writable(self) -> bool: ... + @abstractmethod + def write(self, s: AnyStr) -> int: ... + @abstractmethod + def writelines(self, lines: Iterable[AnyStr]) -> None: ... + @abstractmethod + def __next__(self) -> AnyStr: ... + @abstractmethod + def __iter__(self) -> Iterator[AnyStr]: ... + @abstractmethod + def __enter__(self) -> IO[AnyStr]: ... + @abstractmethod + def __exit__( + self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Optional[bool]: ... + +class BinaryIO(IO[bytes]): + @abstractmethod + def __enter__(self) -> BinaryIO: ... + +class TextIO(IO[str]): + # TODO use abstractproperty + @property + def buffer(self) -> BinaryIO: ... + @property + def encoding(self) -> str: ... + @property + def errors(self) -> Optional[str]: ... + @property + def line_buffering(self) -> int: ... # int on PyPy, bool on CPython + @property + def newlines(self) -> Any: ... # None, str or tuple + @abstractmethod + def __enter__(self) -> TextIO: ... + +class ByteString(Sequence[int], metaclass=ABCMeta): ... + +class Match(Generic[AnyStr]): + pos: int + endpos: int + lastindex: Optional[int] + lastgroup: Optional[AnyStr] + string: AnyStr + + # The regular expression object whose match() or search() method produced + # this match instance. + re: Pattern[AnyStr] + def expand(self, template: AnyStr) -> AnyStr: ... + # group() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def group(self, __group: _Literal[0] = ...) -> AnyStr: ... + @overload + def group(self, __group: str | int) -> AnyStr | Any: ... + @overload + def group(self, __group1: str | int, __group2: str | int, *groups: str | int) -> Tuple[AnyStr | Any, ...]: ... + # Each item of groups()'s return tuple is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groups(self) -> Tuple[AnyStr | Any, ...]: ... + @overload + def groups(self, default: _T) -> Tuple[AnyStr | _T, ...]: ... + # Each value in groupdict()'s return dict is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groupdict(self) -> dict[str, AnyStr | Any]: ... + @overload + def groupdict(self, default: _T) -> dict[str, AnyStr | _T]: ... + def start(self, __group: Union[int, str] = ...) -> int: ... + def end(self, __group: Union[int, str] = ...) -> int: ... + def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ... + @property + def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented + # __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def __getitem__(self, __key: _Literal[0]) -> AnyStr: ... + @overload + def __getitem__(self, __key: int | str) -> AnyStr | Any: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class Pattern(Generic[AnyStr]): + flags: int + groupindex: Mapping[str, int] + groups: int + pattern: AnyStr + def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ... + def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ... + def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ... + @overload + def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def sub(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def subn(self, repl: AnyStr, string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + @overload + def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +# Functions + +if sys.version_info >= (3, 7): + _get_type_hints_obj_allowed_types = Union[ + object, + Callable[..., Any], + FunctionType, + BuiltinFunctionType, + MethodType, + ModuleType, + WrapperDescriptorType, + MethodWrapperType, + MethodDescriptorType, + ] +else: + _get_type_hints_obj_allowed_types = Union[ + object, Callable[..., Any], FunctionType, BuiltinFunctionType, MethodType, ModuleType, + ] + +if sys.version_info >= (3, 9): + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, + globalns: Optional[Dict[str, Any]] = ..., + localns: Optional[Dict[str, Any]] = ..., + include_extras: bool = ..., + ) -> Dict[str, Any]: ... + +else: + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, globalns: Optional[Dict[str, Any]] = ..., localns: Optional[Dict[str, Any]] = ... + ) -> Dict[str, Any]: ... + +if sys.version_info >= (3, 8): + def get_origin(tp: Any) -> Optional[Any]: ... + def get_args(tp: Any) -> Tuple[Any, ...]: ... + +@overload +def cast(typ: Type[_T], val: Any) -> _T: ... +@overload +def cast(typ: str, val: Any) -> Any: ... +@overload +def cast(typ: object, val: Any) -> Any: ... + +# Type constructors + +# NamedTuple is special-cased in the type checker +class NamedTuple(Tuple[Any, ...]): + _field_types: collections.OrderedDict[str, Type[Any]] + _field_defaults: Dict[str, Any] = ... + _fields: Tuple[str, ...] + _source: str + def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., **kwargs: Any) -> None: ... + @classmethod + def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ... + if sys.version_info >= (3, 8): + def _asdict(self) -> Dict[str, Any]: ... + else: + def _asdict(self) -> collections.OrderedDict[str, Any]: ... + def _replace(self: _T, **kwargs: Any) -> _T: ... + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def __delitem__(self, k: NoReturn) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __or__(self: _T, __value: _T) -> _T: ... + def __ior__(self: _T, __value: _T) -> _T: ... + +def NewType(name: str, tp: Type[_T]) -> Type[_T]: ... + +# This itself is only available during type checking +def type_check_only(func_or_cls: _F) -> _F: ... + +if sys.version_info >= (3, 7): + class ForwardRef: + __forward_arg__: str + __forward_code__: CodeType + __forward_evaluated__: bool + __forward_value__: Optional[Any] + __forward_is_argument__: bool + def __init__(self, arg: str, is_argument: bool = ...) -> None: ... + def _evaluate(self, globalns: Optional[Dict[str, Any]], localns: Optional[Dict[str, Any]]) -> Optional[Any]: ... + def __eq__(self, other: Any) -> bool: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + +if sys.version_info >= (3, 10): + def is_typeddict(tp: Any) -> bool: ... diff --git a/lang/pl/typeshed/stdlib/typing_extensions.pyi b/lang/pl/typeshed/stdlib/typing_extensions.pyi new file mode 100644 index 0000000..59fe3df --- /dev/null +++ b/lang/pl/typeshed/stdlib/typing_extensions.pyi @@ -0,0 +1,115 @@ +import abc +import sys +from typing import ( + TYPE_CHECKING as TYPE_CHECKING, + Any, + AsyncContextManager as AsyncContextManager, + AsyncGenerator as AsyncGenerator, + AsyncIterable as AsyncIterable, + AsyncIterator as AsyncIterator, + Awaitable as Awaitable, + Callable, + ChainMap as ChainMap, + ClassVar as ClassVar, + ContextManager as ContextManager, + Coroutine as Coroutine, + Counter as Counter, + DefaultDict as DefaultDict, + Deque as Deque, + ItemsView, + KeysView, + Mapping, + NewType as NewType, + NoReturn as NoReturn, + Text as Text, + Tuple, + Type as Type, + TypeVar, + ValuesView, + _Alias, + overload as overload, +) + +_T = TypeVar("_T") +_F = TypeVar("_F", bound=Callable[..., Any]) +_TC = TypeVar("_TC", bound=Type[object]) + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> Any: ... + +def runtime_checkable(cls: _TC) -> _TC: ... + +# This alias for above is kept here for backwards compatibility. +runtime = runtime_checkable +Protocol: _SpecialForm = ... +Final: _SpecialForm = ... + +def final(f: _F) -> _F: ... + +Literal: _SpecialForm = ... + +def IntVar(name: str) -> Any: ... # returns a new TypeVar + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __delitem__(self, k: NoReturn) -> None: ... + +# TypedDict is a (non-subscriptable) special form. +TypedDict: object = ... + +OrderedDict = _Alias() + +def get_type_hints( + obj: Callable[..., Any], + globalns: dict[str, Any] | None = ..., + localns: dict[str, Any] | None = ..., + include_extras: bool = ..., +) -> dict[str, Any]: ... + +if sys.version_info >= (3, 7): + def get_args(tp: Any) -> Tuple[Any, ...]: ... + def get_origin(tp: Any) -> Any | None: ... + +Annotated: _SpecialForm = ... +_AnnotatedAlias: Any = ... # undocumented + +@runtime_checkable +class SupportsIndex(Protocol, metaclass=abc.ABCMeta): + @abc.abstractmethod + def __index__(self) -> int: ... + +# PEP 612 support for Python < 3.9 +if sys.version_info >= (3, 10): + from typing import Concatenate as Concatenate, ParamSpec as ParamSpec, TypeAlias as TypeAlias, TypeGuard as TypeGuard +else: + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Type[Any] | None + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: None | Type[Any] | str = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... diff --git a/lang/pl/typeshed/stdlib/uarray.pyi b/lang/pl/typeshed/stdlib/uarray.pyi new file mode 100644 index 0000000..d1ba4d9 --- /dev/null +++ b/lang/pl/typeshed/stdlib/uarray.pyi @@ -0,0 +1 @@ +from array import * diff --git a/lang/pl/typeshed/stdlib/ucollections.pyi b/lang/pl/typeshed/stdlib/ucollections.pyi new file mode 100644 index 0000000..9400561 --- /dev/null +++ b/lang/pl/typeshed/stdlib/ucollections.pyi @@ -0,0 +1 @@ +from collections import * diff --git a/lang/pl/typeshed/stdlib/uerrno.pyi b/lang/pl/typeshed/stdlib/uerrno.pyi new file mode 100644 index 0000000..5ecb44d --- /dev/null +++ b/lang/pl/typeshed/stdlib/uerrno.pyi @@ -0,0 +1 @@ +from errno import * diff --git a/lang/pl/typeshed/stdlib/urandom.pyi b/lang/pl/typeshed/stdlib/urandom.pyi new file mode 100644 index 0000000..1c31bde --- /dev/null +++ b/lang/pl/typeshed/stdlib/urandom.pyi @@ -0,0 +1 @@ +from random import * diff --git a/lang/pl/typeshed/stdlib/ustruct.pyi b/lang/pl/typeshed/stdlib/ustruct.pyi new file mode 100644 index 0000000..ee3a9fc --- /dev/null +++ b/lang/pl/typeshed/stdlib/ustruct.pyi @@ -0,0 +1 @@ +from struct import * diff --git a/lang/pl/typeshed/stdlib/usys.pyi b/lang/pl/typeshed/stdlib/usys.pyi new file mode 100644 index 0000000..104052c --- /dev/null +++ b/lang/pl/typeshed/stdlib/usys.pyi @@ -0,0 +1 @@ +from sys import * diff --git a/lang/pl/typeshed/stdlib/utime.pyi b/lang/pl/typeshed/stdlib/utime.pyi new file mode 100644 index 0000000..72705db --- /dev/null +++ b/lang/pl/typeshed/stdlib/utime.pyi @@ -0,0 +1 @@ +from time import * diff --git a/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi b/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi index eadfc2f..bbca0c1 100644 --- a/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi +++ b/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: (MISO) MISO引脚(默认值14)""" ... -def read(nbytes: int) -> bytes: - """读取字节。 (读取) +def read(nbytes: int, out: int=0) -> bytes: + """读取字节数。 (读取) Example: ``spi.read(64)`` :param nbytes: (字节数) 要读取的最大字节数。 +:param out: (写出) The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/lang/zh-tw/typeshed/stdlib/microbit/spi.pyi b/lang/zh-tw/typeshed/stdlib/microbit/spi.pyi index 94182e6..34e5f08 100644 --- a/lang/zh-tw/typeshed/stdlib/microbit/spi.pyi +++ b/lang/zh-tw/typeshed/stdlib/microbit/spi.pyi @@ -17,12 +17,13 @@ For correct communication, the parameters have to be the same on both communicat :param miso: miso 引腳 (預設 14)""" ... -def read(nbytes: int) -> bytes: +def read(nbytes: int, out: int=0) -> bytes: """讀取位元組。 Example: ``spi.read(64)`` :param nbytes: 要讀取的最大位元組數。 +:param out: The byte value to write (default 0). :return: The bytes read.""" ... diff --git a/scripts/build-translations.sh b/scripts/build-translations.sh index 21bebeb..2d7b383 100755 --- a/scripts/build-translations.sh +++ b/scripts/build-translations.sh @@ -5,7 +5,7 @@ set -euxo pipefail -languages="ca de fr es-ES ja ko nl zh-CN zh-TW lol" +languages="ca de fr es-ES ja ko nl pl zh-CN zh-TW lol" for language in $languages; do lower="${language,,}" @@ -13,4 +13,4 @@ for language in $languages; do cp -r lang/en "lang/${lower}" done npm run i18n:typeshed-to-crowdin -npm run i18n:crowdin-to-typeshed \ No newline at end of file +npm run i18n:crowdin-to-typeshed From 478a06199d4ac74b611e4793f44b6b5f6debf4fa Mon Sep 17 00:00:00 2001 From: Robert Knight <95928279+microbit-robert@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:55:44 +0000 Subject: [PATCH 13/15] Translation sync (#108) --- crowdin/translated/api.ca.json | 4 +- crowdin/translated/api.de.json | 182 +++++++++--------- crowdin/translated/api.es-es.json | 6 +- crowdin/translated/api.fr.json | 4 +- crowdin/translated/api.ja.json | 2 +- crowdin/translated/api.nl.json | 4 +- crowdin/translated/api.pl.json | 6 +- lang/ca/typeshed/stdlib/microbit/spi.pyi | 4 +- lang/de/typeshed/stdlib/log.pyi | 8 +- lang/de/typeshed/stdlib/math.pyi | 14 +- lang/de/typeshed/stdlib/microbit/__init__.pyi | 32 +-- .../stdlib/microbit/accelerometer.pyi | 6 +- lang/de/typeshed/stdlib/microbit/audio.pyi | 12 +- lang/de/typeshed/stdlib/microbit/compass.pyi | 6 +- lang/de/typeshed/stdlib/microbit/display.pyi | 6 +- lang/de/typeshed/stdlib/microbit/i2c.pyi | 2 +- .../typeshed/stdlib/microbit/microphone.pyi | 6 +- lang/de/typeshed/stdlib/microbit/speaker.pyi | 4 +- lang/de/typeshed/stdlib/microbit/spi.pyi | 2 +- lang/de/typeshed/stdlib/microbit/uart.pyi | 10 +- lang/de/typeshed/stdlib/micropython.pyi | 4 +- lang/de/typeshed/stdlib/music.pyi | 16 +- lang/de/typeshed/stdlib/neopixel.pyi | 6 +- lang/de/typeshed/stdlib/os.pyi | 2 +- lang/de/typeshed/stdlib/radio.pyi | 4 +- lang/de/typeshed/stdlib/random.pyi | 2 +- lang/de/typeshed/stdlib/speech.pyi | 36 ++-- lang/de/typeshed/stdlib/sys.pyi | 2 +- lang/de/typeshed/stdlib/time.pyi | 2 +- lang/es-es/typeshed/stdlib/microbit/spi.pyi | 4 +- lang/fr/typeshed/stdlib/microbit/spi.pyi | 2 +- lang/ja/typeshed/stdlib/microbit/spi.pyi | 2 +- lang/nl/typeshed/stdlib/microbit/spi.pyi | 4 +- lang/pl/typeshed/stdlib/gc.pyi | 2 +- lang/pl/typeshed/stdlib/microbit/spi.pyi | 4 +- 35 files changed, 206 insertions(+), 206 deletions(-) diff --git a/crowdin/translated/api.ca.json b/crowdin/translated/api.ca.json index 6206889..079bb59 100644 --- a/crowdin/translated/api.ca.json +++ b/crowdin/translated/api.ca.json @@ -3460,7 +3460,7 @@ "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "Llegeix bytes", + "message": "Llegeix com a màxim {{nbytes}} mentre escriu contínuament l'únic byte donat per {{out}}.", "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { @@ -3476,7 +3476,7 @@ "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "El valor del byte a escriure (per defecte 0).", "description": "Parameter docs" }, "microbit.spi.write": { diff --git a/crowdin/translated/api.de.json b/crowdin/translated/api.de.json index 3050b28..cf9f751 100644 --- a/crowdin/translated/api.de.json +++ b/crowdin/translated/api.de.json @@ -84,7 +84,7 @@ "description": "(field name) Milliseconds timestamp format." }, "log.MILLISECONDS.summary": { - "message": "Millisekunden Zeitstempelformat.", + "message": "Zeitstempelformat: Millisekunden", "description": "Milliseconds timestamp format." }, "log.SECONDS": { @@ -92,7 +92,7 @@ "description": "(field name) Seconds timestamp format." }, "log.SECONDS.summary": { - "message": "Sekunden Zeitstempelformat.", + "message": "Zeitstempelformat: Sekunden", "description": "Seconds timestamp format." }, "log.MINUTES": { @@ -100,7 +100,7 @@ "description": "(field name) Minutes timestamp format." }, "log.MINUTES.summary": { - "message": "Minuten Zeitstempelformat.", + "message": "Zeitstempelformat: Minuten", "description": "Minutes timestamp format." }, "log.HOURS": { @@ -108,7 +108,7 @@ "description": "(field name) Hours timestamp format." }, "log.HOURS.summary": { - "message": "Stunden Zeitstempelformat.", + "message": "Zeitstempelformat: Stunden", "description": "Hours timestamp format." }, "log.DAYS": { @@ -460,7 +460,7 @@ "description": "(function name) Calculate ``x`` with the sign of ``y``." }, "math.copysign.summary": { - "message": "Berechne {{x}} mit dem Vorzeichen von {{y}}.", + "message": "Berechnet {{x}} mit dem Vorzeichen von {{y}}.", "description": "Calculate ``x`` with the sign of ``y``." }, "math.copysign.param-name.x": { @@ -564,7 +564,7 @@ "description": "(function name) Calculate the remainder of ``x/y``." }, "math.fmod.summary": { - "message": "Berechne den Rest von {{x/y}}.", + "message": "Berechnet den Rest von {{x/y}}.", "description": "Calculate the remainder of ``x/y``." }, "math.fmod.param-name.x": { @@ -636,7 +636,7 @@ "description": "(function name) Check if a value is not-a-number (NaN)." }, "math.isnan.summary": { - "message": "Prüft, ob ein Wert keine Zahl (NaN ... Not A Number) ist.", + "message": "Prüft, ob ein Wert keine Zahl (NaN bzw. Not A Number) ist.", "description": "Check if a value is not-a-number (NaN)." }, "math.isnan.param-name.x": { @@ -652,7 +652,7 @@ "description": "(function name) Calculate ``x * (2**exp)``." }, "math.ldexp.summary": { - "message": "Berechne {{x * (2**exp)}}.", + "message": "Berechnet {{x * (2**exp)}}.", "description": "Calculate ``x * (2**exp)``." }, "math.ldexp.param-name.exp": { @@ -700,7 +700,7 @@ "description": "(function name) Calculate the fractional and integral parts of ``x``." }, "math.modf.summary": { - "message": "Berechne die gebrochenen und ganzzahligen Teile von {{x}}.", + "message": "Berechnet die gebrochenen und ganzzahligen Teile von {{x}}.", "description": "Calculate the fractional and integral parts of ``x``." }, "math.modf.param-name.x": { @@ -820,7 +820,7 @@ "description": "(field name) Base of the natural logarithm" }, "math.e.summary": { - "message": "Basis des natürlichen Logarithmus", + "message": "Basis des natürlichen Logarithmus.", "description": "Base of the natural logarithm" }, "math.pi": { @@ -828,7 +828,7 @@ "description": "(field name) The ratio of a circle's circumference to its diameter" }, "math.pi.summary": { - "message": "Das Verhältnis des Umfangs eines Kreises zu seinem Durchmesser", + "message": "Das Verhältnis des Umfangs eines Kreises zu seinem Durchmesser.", "description": "The ratio of a circle's circumference to its diameter" }, "microbit": { @@ -844,7 +844,7 @@ "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.summary": { - "message": "Plant die Ausführung einer Funktion in dem durch die Zeitargumente festgelegten Intervall **nur V2**.", + "message": "Plant die Ausführung einer Funktion in dem durch die Zeitargumente festgelegten Intervall. **Nur micro:bit V2**.", "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." }, "microbit.run_every.param-name.callback": { @@ -988,7 +988,7 @@ "description": "(function name) Wait for ``n`` milliseconds." }, "microbit.sleep.summary": { - "message": "Warte auf {{n}} Millisekunden.", + "message": "Wartet {{n}} Millisekunden.", "description": "Wait for ``n`` milliseconds." }, "microbit.sleep.param-name.n": { @@ -1068,7 +1068,7 @@ "description": "(field name) The left button ``Button`` object." }, "microbit.button_a.summary": { - "message": "Das {{Button}}-Objekt der linken Taste.", + "message": "Das Objekt {{Button}} der linken Taste.", "description": "The left button ``Button`` object." }, "microbit.button_b": { @@ -1076,7 +1076,7 @@ "description": "(field name) The right button ``Button`` object." }, "microbit.button_b.summary": { - "message": "Das {{Button}}-Objekt der rechten Taste.", + "message": "Das Objekt {{Button}} der rechten Taste.", "description": "The right button ``Button`` object." }, "microbit.MicroBitDigitalPin": { @@ -1148,7 +1148,7 @@ "description": "(function name) Output a PWM signal on the pin, with the duty cycle proportional to ``value``." }, "microbit.MicroBitDigitalPin.write_analog.summary": { - "message": "Erzeugt ein PWM-Signal am Pin mit der Einschaltdauer proportional zu {{value}}.", + "message": "Gib ein PWM-Signal am Pin aus, bei dem das Verhältnis von An- zu Auszeit proportional zu {{value}} ist.", "description": "Output a PWM signal on the pin, with the duty cycle proportional to ``value``." }, "microbit.MicroBitDigitalPin.write_analog.param-name.value": { @@ -1164,7 +1164,7 @@ "description": "(function name) Set the period of the PWM signal being output to ``period`` in milliseconds." }, "microbit.MicroBitDigitalPin.set_analog_period.summary": { - "message": "Setzt die Periodendauer des PWM-Signals, das ausgegeben wird, auf {{period}} in Millisekunden.", + "message": "Setze die Periodendauer für die Ausgabe des PWM-Signals auf {{period}} in Mikrosekunden.", "description": "Set the period of the PWM signal being output to ``period`` in milliseconds." }, "microbit.MicroBitDigitalPin.set_analog_period.param-name.period": { @@ -1180,7 +1180,7 @@ "description": "(function name) Set the period of the PWM signal being output to ``period`` in microseconds." }, "microbit.MicroBitDigitalPin.set_analog_period_microseconds.summary": { - "message": "Setze die Periodendauer für die Ausgabe des PWM-Signals auf {{period}} in Mikrosekunden.", + "message": "Setzt den Zeitraum des PWM-Signals, das ausgegeben wird, auf {{period}} in Mikrosekunden.", "description": "Set the period of the PWM signal being output to ``period`` in microseconds." }, "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-name.period": { @@ -1188,7 +1188,7 @@ "description": "(parameter name) The period in microseconds with a minimum valid value of 256µs." }, "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-doc.period": { - "message": "Die Periodendauer in Mikrosekunden mit einem Mindestwert von 256μs.", + "message": "Die Periodendauer in Mikrosekunden mit einem Mindestwert von 256 μs.", "description": "Parameter docs" }, "microbit.MicroBitAnalogDigitalPin": { @@ -1228,7 +1228,7 @@ "description": "(function name) Set the touch mode for the pin." }, "microbit.MicroBitTouchPin.set_touch_mode.summary": { - "message": "Legt den Touchmodus für den Pin fest.", + "message": "Legt den Berührungsmodus für den Pin fest.", "description": "Set the touch mode for the pin." }, "microbit.MicroBitTouchPin.set_touch_mode.param-name.value": { @@ -1396,7 +1396,7 @@ "description": "(field name) A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." }, "microbit.pin_logo.summary": { - "message": "Ein berührungsempfindlicher Logo-Pin auf der Vorderseite des micro:bit, der standardmäßig auf den kapazitiven Touch-Modus eingestellt ist.", + "message": "Ein berührungsempfindlicher Logo-Pin auf der Vorderseite des micro:bit, der standardmäßig auf den kapazitiven Berührungsmodus eingestellt ist.", "description": "A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." }, "microbit.pin_speaker": { @@ -1404,7 +1404,7 @@ "description": "(field name) A pin to address the micro:bit speaker." }, "microbit.pin_speaker.summary": { - "message": "Ein Pin zur Ansteuerung des micro:bit Lautsprechers.", + "message": "Ein Pin zur Ansteuerung des micro:bit-Lautsprechers.", "description": "A pin to address the micro:bit speaker." }, "microbit.Image": { @@ -1948,7 +1948,7 @@ "description": "(function name) Create an image from a string describing which LEDs are lit." }, "microbit.Image.__init__-1.summary": { - "message": "Erstellen Sie ein Bild aus einer Zeichenkette, die beschreibt, welche LEDs leuchten.", + "message": "Erstellt ein Bild aus einer Zeichenkette, die beschreibt, welche LEDs leuchten.", "description": "Create an image from a string describing which LEDs are lit." }, "microbit.Image.__init__-1.param-name.string": { @@ -2068,7 +2068,7 @@ "description": "(function name) Create a new image by shifting the picture left." }, "microbit.Image.shift_left.summary": { - "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach links verschieben.", + "message": "Erstellt ein neues Bild, indem das Bild nach links verschoben wird.", "description": "Create a new image by shifting the picture left." }, "microbit.Image.shift_left.param-name.n": { @@ -2084,7 +2084,7 @@ "description": "(function name) Create a new image by shifting the picture right." }, "microbit.Image.shift_right.summary": { - "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach rechts verschieben.", + "message": "Erstellt ein neues Bild, indem das Bild nach rechts verschoben wird.", "description": "Create a new image by shifting the picture right." }, "microbit.Image.shift_right.param-name.n": { @@ -2100,7 +2100,7 @@ "description": "(function name) Create a new image by shifting the picture up." }, "microbit.Image.shift_up.summary": { - "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach oben verschoben wird.", + "message": "Erstellt ein neues Bild, indem das Bild nach oben verschoben wird.", "description": "Create a new image by shifting the picture up." }, "microbit.Image.shift_up.param-name.n": { @@ -2116,7 +2116,7 @@ "description": "(function name) Create a new image by shifting the picture down." }, "microbit.Image.shift_down.summary": { - "message": "Erstellen Sie ein neues Bild, indem Sie das Bild nach unten verschoben wird.", + "message": "Erstellt ein neues Bild, indem das Bild nach unten verschoben wird.", "description": "Create a new image by shifting the picture down." }, "microbit.Image.shift_down.param-name.n": { @@ -2484,7 +2484,7 @@ "description": "(function name) Get the acceleration measurements in all axes at once as a tuple." }, "microbit.accelerometer.get_values.summary": { - "message": "Erhalten Sie die Beschleunigungsmessungen in allen Achsen auf einmal als Tupel.", + "message": "Erhalte die Beschleunigungsmessung in allen Achsen auf einmal als Tupel.", "description": "Get the acceleration measurements in all axes at once as a tuple." }, "microbit.accelerometer.get_strength": { @@ -2492,7 +2492,7 @@ "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.get_strength.summary": { - "message": "Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der X-, Y- und Z-Achsen.", + "message": "Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der x-, y- und z-Achsen.", "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." }, "microbit.accelerometer.current_gesture": { @@ -2548,7 +2548,7 @@ "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.summary": { - "message": "Legen Sie den Bereich des Beschleunigungsmessers in g (Fallbeschleunigung) auf den nächstgelegenen Wert fest, welcher von der Hardware unterstützt wird. Diese sind {{2}}, {{4}}oder {{8}} g.", + "message": "Legt den Bereich des Beschleunigungsmessers in g (Fallbeschleunigung) auf den nächstgelegenen Wert fest, welcher von der Hardware unterstützt wird. Diese sind {{2}}, {{4}}oder {{8}} g.", "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." }, "microbit.accelerometer.set_range.param-name.value": { @@ -2612,7 +2612,7 @@ "description": "(function name) Check whether a sound is playing." }, "microbit.audio.is_playing.summary": { - "message": "Überprüfen Sie, ob ein Ton abgespielt wird.", + "message": "Überprüft, ob ein Ton abgespielt wird.", "description": "Check whether a sound is playing." }, "microbit.audio.stop": { @@ -2620,7 +2620,7 @@ "description": "(function name) Stop all audio playback." }, "microbit.audio.stop.summary": { - "message": "Stoppe jede Audio-Wiedergabe.", + "message": "Stoppt jede Audio-Wiedergabe.", "description": "Stop all audio playback." }, "microbit.audio.SoundEffect": { @@ -2780,7 +2780,7 @@ "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" }, "microbit.audio.SoundEffect.fx.summary": { - "message": "Effekt, der dem Sound hinzugefügt werden soll, in Frage kommende Werte: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, oder {{FX_NONE}}", + "message": "Effekt, der dem Sound hinzugefügt werden soll. Mögliche Werte: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}} oder {{FX_NONE}}", "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" }, "microbit.audio.SoundEffect.shape": { @@ -2796,7 +2796,7 @@ "description": "(function name) Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.summary": { - "message": "Erstelle einen neuen Soundeffekt. ", + "message": "Erstellt einen neuen Soundeffekt. ", "description": "Create a new sound effect." }, "microbit.audio.SoundEffect.__init__.param-name.duration": { @@ -2868,7 +2868,7 @@ "description": "(function name) Create a copy of this ``SoundEffect``." }, "microbit.audio.SoundEffect.copy.summary": { - "message": "Erstelle eine Kopie dieses {{SoundEffect}}. ", + "message": "Erstellt eine Kopie dieses {{SoundEffect}}. ", "description": "Create a copy of this ``SoundEffect``." }, "microbit.audio.AudioFrame": { @@ -2884,7 +2884,7 @@ "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.summary": { - "message": "Überschreibe die Daten in diesem {{AudioFrame}} mit den Daten einer anderen {{AudioFrame}} Instanz. ", + "message": "Überschreibt die Daten in diesem {{AudioFrame}} mit den Daten einer anderen {{AudioFrame}}-Instanz. ", "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." }, "microbit.audio.AudioFrame.copyfrom.param-name.other": { @@ -2916,7 +2916,7 @@ "description": "(function name) Check is the compass is calibrated." }, "microbit.compass.is_calibrated.summary": { - "message": "Überprüfe, dass der Kompass kalibriert ist. ", + "message": "Überprüft, dass der Kompass kalibriert ist. ", "description": "Check is the compass is calibrated." }, "microbit.compass.clear_calibration": { @@ -2956,7 +2956,7 @@ "description": "(function name) Get the compass heading." }, "microbit.compass.heading.summary": { - "message": "Ermittle die Kompassrichtung. ", + "message": "Ermittelt die Kompassrichtung. ", "description": "Get the compass heading." }, "microbit.compass.get_field_strength": { @@ -2964,7 +2964,7 @@ "description": "(function name) Get the magnitude of the magnetic field around the device." }, "microbit.compass.get_field_strength.summary": { - "message": "Ermittle die Größe des Magnetfelds um das Gerät herum.", + "message": "Ermittelt die Größe des Magnetfelds um das Gerät herum.", "description": "Get the magnitude of the magnetic field around the device." }, "microbit.display": { @@ -3140,7 +3140,7 @@ "description": "(function name) Turn on the LED display." }, "microbit.display.on.summary": { - "message": "Das LED-Display einschalten.", + "message": "Schaltet das LED-Display ein.", "description": "Turn on the LED display." }, "microbit.display.off": { @@ -3148,7 +3148,7 @@ "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." }, "microbit.display.off.summary": { - "message": "Die LED-Anzeige ausschalten (Deaktivieren des Displays ermöglicht es dir, die GPIO-Pins für andere Zwecke zu verwenden).", + "message": "Schaltet das LED-Display aus (Deaktivieren des Displays ermöglicht es dir, die GPIO-Pins für andere Zwecke zu verwenden).", "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." }, "microbit.display.is_on": { @@ -3156,7 +3156,7 @@ "description": "(function name) Check whether the LED display is enabled." }, "microbit.display.is_on.summary": { - "message": "Überprüfung, ob die LED-Anzeige aktiviert ist.", + "message": "Überprüft, ob die LED-Anzeige aktiviert ist.", "description": "Check whether the LED display is enabled." }, "microbit.display.read_light_level": { @@ -3252,7 +3252,7 @@ "description": "(function name) Write bytes to a device." }, "microbit.i2c.write.summary": { - "message": "Schreibe Bytes auf ein Gerät.", + "message": "Schreibt Bytes auf ein Gerät.", "description": "Write bytes to a device." }, "microbit.i2c.write.param-name.addr": { @@ -3300,7 +3300,7 @@ "description": "(function name) Check if a sound was heard at least once since the last call." }, "microbit.microphone.was_event.summary": { - "message": "Überprüfung, ob seit dem letzten Anruf mindestens einmal ein Geräusch gehört wurde.", + "message": "Überprüft, ob seit dem letzten Anruf mindestens einmal ein Geräusch gehört wurde.", "description": "Check if a sound was heard at least once since the last call." }, "microbit.microphone.was_event.param-name.event": { @@ -3316,7 +3316,7 @@ "description": "(function name) Check the most recent sound event detected." }, "microbit.microphone.is_event.summary": { - "message": "Überprüfe das zuletzt erkannte Sound-Ereignis.", + "message": "Überprüft das zuletzt erkannte Sound-Ereignis.", "description": "Check the most recent sound event detected." }, "microbit.microphone.is_event.param-name.event": { @@ -3364,7 +3364,7 @@ "description": "(function name) Get the sound pressure level." }, "microbit.microphone.sound_level.summary": { - "message": "Ermittle den Schalldruckpegel. ", + "message": "Ermittelt den Schalldruckpegel. ", "description": "Get the sound pressure level." }, "microbit.speaker": { @@ -3380,7 +3380,7 @@ "description": "(function name) Turn the speaker off." }, "microbit.speaker.off.summary": { - "message": "Lautsprecher ausschalten. ", + "message": "Schaltet den Lautsprecher aus.", "description": "Turn the speaker off." }, "microbit.speaker.on": { @@ -3388,7 +3388,7 @@ "description": "(function name) Turn the speaker on." }, "microbit.speaker.on.summary": { - "message": "Lautsprecher einschalten. ", + "message": "Schaltet den Lautsprecher ein.", "description": "Turn the speaker on." }, "microbit.spi": { @@ -3484,7 +3484,7 @@ "description": "(function name) Write bytes to the bus." }, "microbit.spi.write.summary": { - "message": "Schreibe Bytes auf den Bus. ", + "message": "Schreibt Bytes auf den Bus. ", "description": "Write bytes to the bus." }, "microbit.spi.write.param-name.buffer": { @@ -3524,7 +3524,7 @@ "description": "(module name) Communicate with a device using a serial interface." }, "microbit.uart.summary": { - "message": "Verbindet mit einem Gerät über eine serielle Schnittstelle.", + "message": "Kommunikation mit einem Gerät über eine serielle Schnittstelle.", "description": "Communicate with a device using a serial interface." }, "microbit.uart.ODD": { @@ -3548,7 +3548,7 @@ "description": "(function name) Initialize serial communication." }, "microbit.uart.init.summary": { - "message": "Initialisiere die serielle Kommunikation.", + "message": "Initialisiert die serielle Kommunikation.", "description": "Initialize serial communication." }, "microbit.uart.init.param-name.baudrate": { @@ -3604,7 +3604,7 @@ "description": "(function name) Check if any data is waiting." }, "microbit.uart.any.summary": { - "message": "Überprüfen Sie, ob irgendwelche Daten warten.", + "message": "Überprüft, ob irgendwelche Daten warten.", "description": "Check if any data is waiting." }, "microbit.uart.read": { @@ -3628,7 +3628,7 @@ "description": "(function name) Read bytes into the ``buf``." }, "microbit.uart.readinto.summary": { - "message": "Lese Bytes in {{buf}}.", + "message": "Liest Bytes in {{buf}}.", "description": "Read bytes into the ``buf``." }, "microbit.uart.readinto.param-name.buf": { @@ -3652,7 +3652,7 @@ "description": "(function name) Read a line, ending in a newline character." }, "microbit.uart.readline.summary": { - "message": "Liest eine Zeile bis zum Zeilenumbruch.", + "message": "Liest eine Zeile bis zu einem Zeilenumbruch.", "description": "Read a line, ending in a newline character." }, "microbit.uart.write": { @@ -3764,7 +3764,7 @@ "description": "(function name) Lock the heap." }, "micropython.heap_lock.summary": { - "message": "Heap-Speicher sperren.", + "message": "Sperrt den Heap-Speicher.", "description": "Lock the heap." }, "micropython.heap_unlock": { @@ -3772,7 +3772,7 @@ "description": "(function name) Unlock the heap." }, "micropython.heap_unlock.summary": { - "message": "Heap-Speicher entsperren.", + "message": "Entsperrt den Heap-Speicher.", "description": "Unlock the heap." }, "micropython.kbd_intr": { @@ -3804,7 +3804,7 @@ "description": "(field name) Melody: the opening to Beethoven’s 5th Symphony in C minor." }, "music.DADADADUM.summary": { - "message": "Melodie: der Anfang von Beethovens 5. Symphonie in c-Moll.", + "message": "Melodie: Der Anfang von Beethovens 5. Symphonie in c-Moll.", "description": "Melody: the opening to Beethoven’s 5th Symphony in C minor." }, "music.ENTERTAINER": { @@ -3812,7 +3812,7 @@ "description": "(field name) Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." }, "music.ENTERTAINER.summary": { - "message": "Melodie: die ersten Takte des Ragtime-Klassikers \"The Entertainer\" von Scott Joplin.", + "message": "Melodie: Die ersten Takte des Ragtime-Klassikers „The Entertainer“ von Scott Joplin.", "description": "Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." }, "music.PRELUDE": { @@ -3836,7 +3836,7 @@ "description": "(field name) Melody: the Nyan Cat theme (http://www.nyan.cat/)." }, "music.NYAN.summary": { - "message": "Melodie: Die Nyan-Katze (http://www.nyan.cat/)", + "message": "Melodie: Nyan-Katze (http://www.nyan.cat/).", "description": "Melody: the Nyan Cat theme (http://www.nyan.cat/)." }, "music.RINGTONE": { @@ -3844,7 +3844,7 @@ "description": "(field name) Melody: something that sounds like a mobile phone ringtone." }, "music.RINGTONE.summary": { - "message": "Melodie: Etwas das wie ein Handy-Klingelton klingt.", + "message": "Melodie: Etwas, das wie ein Handy-Klingelton klingt.", "description": "Melody: something that sounds like a mobile phone ringtone." }, "music.FUNK": { @@ -3868,7 +3868,7 @@ "description": "(field name) Melody: “Happy Birthday to You…”" }, "music.BIRTHDAY.summary": { - "message": "Melodie: „Alles Gute zum Geburtstag…“", + "message": "Melodie: „Alles Gute zum Geburtstag …“", "description": "Melody: “Happy Birthday to You…”" }, "music.WEDDING": { @@ -3876,7 +3876,7 @@ "description": "(field name) Melody: the bridal chorus from Wagner’s opera “Lohengrin”." }, "music.WEDDING.summary": { - "message": "Melodie: der Hochzeitschor aus Wagners Oper \"Lohengrin\".", + "message": "Melodie: der Hochzeitschor aus Wagners Oper „Lohengrin“.", "description": "Melody: the bridal chorus from Wagner’s opera “Lohengrin”." }, "music.FUNERAL": { @@ -3884,7 +3884,7 @@ "description": "(field name) Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." }, "music.FUNERAL.summary": { - "message": "Melodie: der \"Trauermarsch\", auch bekannt als Frédéric Chopins Klaviersonate Nr. 2 in b-Moll, op. 35.", + "message": "Melodie: Der „Trauermarsch“, auch bekannt als Frédéric Chopins Klaviersonate Nr. 2 in b-Moll, op. 35.", "description": "Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." }, "music.PUNCHLINE": { @@ -3900,7 +3900,7 @@ "description": "(field name) Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." }, "music.PYTHON.summary": { - "message": "Melodie: John Philip Sousas Marsch \"Liberty Bell\", auch bekannt als das Thema von \"Monty Python's Flying Circus\" (nach dem die Programmiersprache Python benannt ist).", + "message": "Melodie: John Philip Sousas Marsch „Liberty Bell“, auch bekannt als die Titelmusik von „Monty Python's Flying Circus“ (nach dem die Programmiersprache Python benannt ist).", "description": "Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." }, "music.BADDY": { @@ -4116,7 +4116,7 @@ "description": "(function name) Initialise a new strip of neopixel LEDs controlled via a pin." }, "neopixel.NeoPixel.__init__.summary": { - "message": "Initialisierung eines neuen Streifens von Neopixel-LEDs, die über einen Pin gesteuert werden.", + "message": "Initialisiert einen neuen Streifen von Neopixel-LEDs, die über einen Pin gesteuert werden.", "description": "Initialise a new strip of neopixel LEDs controlled via a pin." }, "neopixel.NeoPixel.__init__.param-name.bpp": { @@ -4148,7 +4148,7 @@ "description": "(function name) Clear all the pixels." }, "neopixel.NeoPixel.clear.summary": { - "message": "Lösche alle Pixel.", + "message": "Löscht alle Pixel.", "description": "Clear all the pixels." }, "neopixel.NeoPixel.show": { @@ -4172,7 +4172,7 @@ "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.summary": { - "message": "Alle Pixel mit einem bestimmten RGB/RGBW-Wert färben.", + "message": "Färbt alle Pixel mit einem bestimmten RGB/RGBW-Wert (nur micro:bit V2).", "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." }, "neopixel.NeoPixel.fill.param-name.colour": { @@ -4252,7 +4252,7 @@ "description": "(function name) Remove (delete) a file." }, "os.remove.summary": { - "message": "Entferne (lösche) eine Datei.", + "message": "Entfernt / Löscht eine Datei.", "description": "Remove (delete) a file." }, "os.remove.param-name.filename": { @@ -4348,7 +4348,7 @@ "description": "(field name) Constant used to indicate a throughput of 1 MBit a second." }, "radio.RATE_1MBIT.summary": { - "message": "Konstante zur Angabe eines Durchsatzes von 1 MBit pro Sekunde.", + "message": "Konstante zur Angabe eines Durchsatzes von 1 MBit pro Sekunde.", "description": "Constant used to indicate a throughput of 1 MBit a second." }, "radio.RATE_2MBIT": { @@ -4356,7 +4356,7 @@ "description": "(field name) Constant used to indicate a throughput of 2 MBit a second." }, "radio.RATE_2MBIT.summary": { - "message": "Konstante zur Angabe eines Durchsatzes von 2 MBit pro Sekunde.", + "message": "Konstante zur Angabe eines Durchsatzes von 2 MBit pro Sekunde.", "description": "Constant used to indicate a throughput of 2 MBit a second." }, "radio.on": { @@ -4524,7 +4524,7 @@ "description": "(module name) Generate random numbers." }, "random.summary": { - "message": "Gibt eine Zufallszahl zurück.", + "message": "Zufallszahlen generieren.", "description": "Generate random numbers." }, "random.getrandbits": { @@ -4684,7 +4684,7 @@ "description": "(module name) Make the micro:bit talk, sing and make other speech like sounds." }, "speech.summary": { - "message": "Bringe den micro:bit dazu zu Sprechen, zu Singen und andere sprachähnliche Geräusche zu machen.", + "message": "Bringe den micro:bit zum Sprechen, singen und dazu, andere sprachähnliche Geräusche zu machen.", "description": "Make the micro:bit talk, sing and make other speech like sounds." }, "speech.translate": { @@ -4692,7 +4692,7 @@ "description": "(function name) Translate English words to phonemes." }, "speech.translate.summary": { - "message": "Übersetze englische Wörter in Sprache.", + "message": "Übersetzt englische Wörter in Sprache.", "description": "Translate English words to phonemes." }, "speech.translate.param-name.words": { @@ -4708,7 +4708,7 @@ "description": "(function name) Pronounce phonemes." }, "speech.pronounce.summary": { - "message": "Laute aussprechen.", + "message": "Spricht Laute aus.", "description": "Pronounce phonemes." }, "speech.pronounce.param-name.mouth": { @@ -4716,7 +4716,7 @@ "description": "(parameter name) A number representing the mouth of the voice" }, "speech.pronounce.param-doc.mouth": { - "message": "Eine Zahl, die den Mund der Stimme repräsentiert", + "message": "Eine Zahl, die den Mund der Stimme repräsentiert.", "description": "Parameter docs" }, "speech.pronounce.param-name.phonemes": { @@ -4724,7 +4724,7 @@ "description": "(parameter name) The string of phonemes to pronounce" }, "speech.pronounce.param-doc.phonemes": { - "message": "Die auszusprechenden Phoneme als Zeichenkette", + "message": "Die auszusprechende Laut als Zeichenkette.", "description": "Parameter docs" }, "speech.pronounce.param-name.pin": { @@ -4740,7 +4740,7 @@ "description": "(parameter name) A number representing the pitch of the voice" }, "speech.pronounce.param-doc.pitch": { - "message": "Eine Zahl, die die Tonhöhe der Stimme angibt", + "message": "Eine Zahl, die die Tonhöhe der Stimme angibt.", "description": "Parameter docs" }, "speech.pronounce.param-name.speed": { @@ -4748,7 +4748,7 @@ "description": "(parameter name) A number representing the speed of the voice" }, "speech.pronounce.param-doc.speed": { - "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt", + "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt.", "description": "Parameter docs" }, "speech.pronounce.param-name.throat": { @@ -4756,7 +4756,7 @@ "description": "(parameter name) A number representing the throat of the voice" }, "speech.pronounce.param-doc.throat": { - "message": "Eine Zahl, die den Klang der Stimme angibt", + "message": "Eine Zahl, die den Klang der Stimme angibt.", "description": "Parameter docs" }, "speech.say": { @@ -4772,7 +4772,7 @@ "description": "(parameter name) A number representing the mouth of the voice" }, "speech.say.param-doc.mouth": { - "message": "Eine Zahl, die den Mund der Stimme repräsentiert", + "message": "Eine Zahl, die den Mund der Stimme repräsentiert.", "description": "Parameter docs" }, "speech.say.param-name.pin": { @@ -4788,7 +4788,7 @@ "description": "(parameter name) A number representing the pitch of the voice" }, "speech.say.param-doc.pitch": { - "message": "Eine Zahl, die die Tonhöhe der Stimme angibt", + "message": "Eine Zahl, die die Tonhöhe der Stimme angibt.", "description": "Parameter docs" }, "speech.say.param-name.speed": { @@ -4796,7 +4796,7 @@ "description": "(parameter name) A number representing the speed of the voice" }, "speech.say.param-doc.speed": { - "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt", + "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt.", "description": "Parameter docs" }, "speech.say.param-name.throat": { @@ -4804,7 +4804,7 @@ "description": "(parameter name) A number representing the throat of the voice" }, "speech.say.param-doc.throat": { - "message": "Eine Zahl, die den Klang der Stimme angibt", + "message": "Eine Zahl, die den Klang der Stimme angibt.", "description": "Parameter docs" }, "speech.say.param-name.words": { @@ -4820,7 +4820,7 @@ "description": "(function name) Sing phonemes." }, "speech.sing.summary": { - "message": "Singe Phoneme", + "message": "Singt Laute.", "description": "Sing phonemes." }, "speech.sing.param-name.mouth": { @@ -4828,7 +4828,7 @@ "description": "(parameter name) A number representing the mouth of the voice" }, "speech.sing.param-doc.mouth": { - "message": "Eine Zahl, die den Mund der Stimme repräsentiert", + "message": "Eine Zahl, die den Mund der Stimme repräsentiert.", "description": "Parameter docs" }, "speech.sing.param-name.phonemes": { @@ -4836,7 +4836,7 @@ "description": "(parameter name) The string of words to sing." }, "speech.sing.param-doc.phonemes": { - "message": "Der zu singende String", + "message": "Der zu singende String.", "description": "Parameter docs" }, "speech.sing.param-name.pin": { @@ -4852,7 +4852,7 @@ "description": "(parameter name) A number representing the pitch of the voice" }, "speech.sing.param-doc.pitch": { - "message": "Eine Zahl, die die Tonhöhe der Stimme angibt", + "message": "Eine Zahl, die die Tonhöhe der Stimme angibt.", "description": "Parameter docs" }, "speech.sing.param-name.speed": { @@ -4860,7 +4860,7 @@ "description": "(parameter name) A number representing the speed of the voice" }, "speech.sing.param-doc.speed": { - "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt", + "message": "Eine Zahl, die die Geschwindigkeit der Stimme angibt.", "description": "Parameter docs" }, "speech.sing.param-name.throat": { @@ -4868,7 +4868,7 @@ "description": "(parameter name) A number representing the throat of the voice" }, "speech.sing.param-doc.throat": { - "message": "Eine Zahl, die den Klang der Stimme angibt", + "message": "Eine Zahl, die den Klang der Stimme angibt.", "description": "Parameter docs" }, "struct": { @@ -5044,7 +5044,7 @@ "description": "(function name) Terminate current program with a given exit code." }, "sys.exit.summary": { - "message": "Ein Programm mit dem gegebenen Exit-Code beenden.", + "message": "Beendet ein Programm mit dem gegeneben Exit-Code.", "description": "Terminate current program with a given exit code." }, "sys.exit.param-name.retval": { @@ -5148,7 +5148,7 @@ "description": "(module name) Measure time and add delays to programs." }, "time.summary": { - "message": "Messe Zeit und füge Verzögerung zu Programmen hinzu.", + "message": "Miss Zeit und füge Verzögerung zu Programmen hinzu.", "description": "Measure time and add delays to programs." }, "time.sleep": { diff --git a/crowdin/translated/api.es-es.json b/crowdin/translated/api.es-es.json index afb04f1..212e182 100644 --- a/crowdin/translated/api.es-es.json +++ b/crowdin/translated/api.es-es.json @@ -3460,7 +3460,7 @@ "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "Lee bytes.", + "message": "Lee como máximo {{nbytes}} mientras está escribiendo continuamente el byte individual dado por {{out}}.", "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { @@ -3472,11 +3472,11 @@ "description": "Parameter docs" }, "microbit.spi.read.param-name.out": { - "message": "a", + "message": "salida", "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "El valor del byte a escribir (por defecto 0).", "description": "Parameter docs" }, "microbit.spi.write": { diff --git a/crowdin/translated/api.fr.json b/crowdin/translated/api.fr.json index 14b6a92..cd4d7f1 100644 --- a/crowdin/translated/api.fr.json +++ b/crowdin/translated/api.fr.json @@ -3472,11 +3472,11 @@ "description": "Parameter docs" }, "microbit.spi.read.param-name.out": { - "message": "out", + "message": "Sortie", "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "La valeur d'octet à écrire (0 par défaut).", "description": "Parameter docs" }, "microbit.spi.write": { diff --git a/crowdin/translated/api.ja.json b/crowdin/translated/api.ja.json index ea86681..eac225d 100644 --- a/crowdin/translated/api.ja.json +++ b/crowdin/translated/api.ja.json @@ -3476,7 +3476,7 @@ "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "書き込むバイト値(初期値は'0')", "description": "Parameter docs" }, "microbit.spi.write": { diff --git a/crowdin/translated/api.nl.json b/crowdin/translated/api.nl.json index 84a0a03..b335d22 100644 --- a/crowdin/translated/api.nl.json +++ b/crowdin/translated/api.nl.json @@ -3460,7 +3460,7 @@ "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "Lees bytes.", + "message": "Lees minstens {{nbytes}} terwijl het enkele byte gegeven in {{out}} continu geschreven wordt.", "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { @@ -3476,7 +3476,7 @@ "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "De byte-waarde om te schrijven (standaard 0).", "description": "Parameter docs" }, "microbit.spi.write": { diff --git a/crowdin/translated/api.pl.json b/crowdin/translated/api.pl.json index 4738739..c746506 100644 --- a/crowdin/translated/api.pl.json +++ b/crowdin/translated/api.pl.json @@ -4,7 +4,7 @@ "description": "(module name) Control the garbage collector" }, "gc.summary": { - "message": "Steruj zbieraniem sieci", + "message": "Steruj zbieraniem śmieci", "description": "Control the garbage collector" }, "gc.enable": { @@ -3460,7 +3460,7 @@ "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "Czytaj bajty.", + "message": "Przeczytaj co najwyżej {{nbytes}} podczas ciągłego pisania pojedynczego bajtu danego przez {{out}}.", "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { @@ -3476,7 +3476,7 @@ "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "Wartość bajtu do zapisu (domyślnie 0).", "description": "Parameter docs" }, "microbit.spi.write": { diff --git a/lang/ca/typeshed/stdlib/microbit/spi.pyi b/lang/ca/typeshed/stdlib/microbit/spi.pyi index d905f08..9bfac9f 100644 --- a/lang/ca/typeshed/stdlib/microbit/spi.pyi +++ b/lang/ca/typeshed/stdlib/microbit/spi.pyi @@ -18,12 +18,12 @@ For correct communication, the parameters have to be the same on both communicat ... def read(nbytes: int, out: int=0) -> bytes: - """Llegeix bytes (llegeix) + """Llegeix com a màxim ``nbytes`` mentre escriu contínuament l'únic byte donat per ``out``. (llegeix) Example: ``spi.read(64)`` :param nbytes: Nombre màxim de bytes per llegir. -:param out: The byte value to write (default 0). +:param out: El valor del byte a escriure (per defecte 0). :return: The bytes read.""" ... diff --git a/lang/de/typeshed/stdlib/log.pyi b/lang/de/typeshed/stdlib/log.pyi index 4ba6cce..24b39f8 100644 --- a/lang/de/typeshed/stdlib/log.pyi +++ b/lang/de/typeshed/stdlib/log.pyi @@ -1,13 +1,13 @@ """Zeichne Daten auf deinem micro:bit V2 auf.""" from typing import Literal, Mapping, Optional, Union, overload MILLISECONDS = 1 -"""Millisekunden Zeitstempelformat. (millisekunden)""" +"""Zeitstempelformat: Millisekunden (millisekunden)""" SECONDS = 10 -"""Sekunden Zeitstempelformat. (sekunden)""" +"""Zeitstempelformat: Sekunden (sekunden)""" MINUTES = 600 -"""Minuten Zeitstempelformat. (minuten)""" +"""Zeitstempelformat: Minuten (minuten)""" HOURS = 36000 -"""Stunden Zeitstempelformat. (stunden)""" +"""Zeitstempelformat: Stunden (stunden)""" DAYS = 864000 """Tage Zeitstempelformat.""" diff --git a/lang/de/typeshed/stdlib/math.pyi b/lang/de/typeshed/stdlib/math.pyi index c81f9d0..574d825 100644 --- a/lang/de/typeshed/stdlib/math.pyi +++ b/lang/de/typeshed/stdlib/math.pyi @@ -48,7 +48,7 @@ Example: ``math.ceil(0.1)`` ... def copysign(x: float, y: float) -> float: - """Berechne ``x`` mit dem Vorzeichen von ``y``. + """Berechnet ``x`` mit dem Vorzeichen von ``y``. Example: ``math.copysign(1, -1)`` @@ -103,7 +103,7 @@ Example: ``math.floor(0.9)`` ... def fmod(x: float, y: float) -> float: - """Berechne den Rest von ``x/y``. + """Berechnet den Rest von ``x/y``. Example: ``math.fmod(10, 3)`` @@ -143,7 +143,7 @@ Example: ``math.isinf(float('-inf'))`` ... def isnan(x: float) -> bool: - """Prüft, ob ein Wert keine Zahl (NaN ... Not A Number) ist. + """Prüft, ob ein Wert keine Zahl (NaN bzw. Not A Number) ist. Example: ``math.isnan(float('nan'))`` @@ -152,7 +152,7 @@ Example: ``math.isnan(float('nan'))`` ... def ldexp(x: float, exp: int) -> float: - """Berechne ``x * (2**exp)``. + """Berechnet ``x * (2**exp)``. Example: ``math.ldexp(0.5, 2)`` @@ -176,7 +176,7 @@ With two arguments, return the logarithm of x to the given base, calculated as ` ... def modf(x: float) -> Tuple[float, float]: - """Berechne die gebrochenen und ganzzahligen Teile von ``x``. + """Berechnet die gebrochenen und ganzzahligen Teile von ``x``. Example: ``fractional, integral = math.modf(1.5)`` @@ -241,6 +241,6 @@ Example: ``math.trunc(-0.9)`` :return: ``x`` rounded towards zero.""" ... e: float -"""Basis des natürlichen Logarithmus""" +"""Basis des natürlichen Logarithmus.""" pi: float -"""Das Verhältnis des Umfangs eines Kreises zu seinem Durchmesser""" \ No newline at end of file +"""Das Verhältnis des Umfangs eines Kreises zu seinem Durchmesser.""" \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/__init__.pyi b/lang/de/typeshed/stdlib/microbit/__init__.pyi index 023ebc6..08c6d1c 100644 --- a/lang/de/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/de/typeshed/stdlib/microbit/__init__.pyi @@ -12,7 +12,7 @@ from . import spi as spi from . import uart as uart def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: - """Plant die Ausführung einer Funktion in dem durch die Zeitargumente festgelegten Intervall **nur V2**. + """Plant die Ausführung einer Funktion in dem durch die Zeitargumente festgelegten Intervall. **Nur micro:bit\xa0V2**. Example: ``run_every(my_logging, min=5)`` @@ -95,7 +95,7 @@ If they are both integers (i.e ``10``), it will return an integer:: :return: The ``value`` converted to the ``to`` range.""" def sleep(n: float) -> None: - """Warte auf ``n`` Millisekunden. + """Wartet ``n`` Millisekunden. Example: ``sleep(1000)`` @@ -152,9 +152,9 @@ that the button must be pressed again before this method will return :return: The number of presses since the device started or the last time this method was called""" ... button_a: Button -"""Das ``Button``-Objekt der linken Taste.""" +"""Das Objekt ``Button`` der linken Taste.""" button_b: Button -"""Das ``Button``-Objekt der rechten Taste.""" +"""Das Objekt ``Button`` der rechten Taste.""" class MicroBitDigitalPin: """Ein digitaler Pin. @@ -212,25 +212,25 @@ changes. ... def write_analog(self, value: int) -> None: - """Erzeugt ein PWM-Signal am Pin mit der Einschaltdauer proportional zu ``value``. (analog schreiben) + """Gib ein PWM-Signal am Pin aus, bei dem das Verhältnis von An- zu Auszeit proportional zu ``value`` ist. (analog schreiben) Example: ``pin0.write_analog(254)`` :param value: (wert) Eine Ganzzahl oder eine Gleitpunktzahl zwischen 0 (0% Einschaltdauer) und 1023 (100% Einschaltdauer).""" def set_analog_period(self, period: int) -> None: - """Setzt die Periodendauer des PWM-Signals, das ausgegeben wird, auf ``period`` in Millisekunden. (setze analoge Periodendauer) + """Setze die Periodendauer für die Ausgabe des PWM-Signals auf ``period`` in Mikrosekunden. (setze analoge Periodendauer) Example: ``pin0.set_analog_period(10)`` :param period: (Periodendauer) Der Periodendauer in Millisekunden mit einem Mindestwert von 1ms.""" def set_analog_period_microseconds(self, period: int) -> None: - """Setze die Periodendauer für die Ausgabe des PWM-Signals auf ``period`` in Mikrosekunden. (setze analoge Periodendauer) + """Setzt den Zeitraum des PWM-Signals, das ausgegeben wird, auf ``period`` in Mikrosekunden. (setze analoge Periodendauer) Example: ``pin0.set_analog_period_microseconds(512)`` -:param period: (Periodendauer) Die Periodendauer in Mikrosekunden mit einem Mindestwert von 256μs.""" +:param period: (Periodendauer) Die Periodendauer in Mikrosekunden mit einem Mindestwert von 256\xa0μs.""" class MicroBitAnalogDigitalPin(MicroBitDigitalPin): """Ein Pin, der analogen und digitalen Signale erlaubt.""" @@ -271,7 +271,7 @@ does not require you to make a ground connection as part of a circuit. ... def set_touch_mode(self, value: int) -> None: - """Legt den Touchmodus für den Pin fest. (definiert Berührungsmodus) + """Legt den Berührungsmodus für den Pin fest. (definiert Berührungsmodus) Example: ``pin0.set_touch_mode(pin0.CAPACITIVE)`` @@ -319,9 +319,9 @@ pin19: MicroBitDigitalPin pin20: MicroBitDigitalPin """Pin mit digitalen Funktionen.""" pin_logo: MicroBitTouchPin -"""Ein berührungsempfindlicher Logo-Pin auf der Vorderseite des micro:bit, der standardmäßig auf den kapazitiven Touch-Modus eingestellt ist.""" +"""Ein berührungsempfindlicher Logo-Pin auf der Vorderseite des micro:bit, der standardmäßig auf den kapazitiven Berührungsmodus eingestellt ist.""" pin_speaker: MicroBitAnalogDigitalPin -"""Ein Pin zur Ansteuerung des micro:bit Lautsprechers. +"""Ein Pin zur Ansteuerung des micro:bit-Lautsprechers. This API is intended only for use in Pulse-Width Modulation pin operations e.g. pin_speaker.write_analog(128). """ @@ -467,7 +467,7 @@ Given an image object it's possible to display it via the ``display`` API:: @overload def __init__(self, string: str) -> None: - """Erstellen Sie ein Bild aus einer Zeichenkette, die beschreibt, welche LEDs leuchten. + """Erstellt ein Bild aus einer Zeichenkette, die beschreibt, welche LEDs leuchten. ``string`` has to consist of digits 0-9 arranged into lines, describing the image, for example:: @@ -536,7 +536,7 @@ Example: ``my_image.get_pixel(0, 0)`` ... def shift_left(self, n: int) -> Image: - """Erstellen Sie ein neues Bild, indem Sie das Bild nach links verschieben. (links verschieben) + """Erstellt ein neues Bild, indem das Bild nach links verschoben wird. (links verschieben) Example: ``Image.HEART_SMALL.shift_left(1)`` @@ -545,7 +545,7 @@ Example: ``Image.HEART_SMALL.shift_left(1)`` ... def shift_right(self, n: int) -> Image: - """Erstellen Sie ein neues Bild, indem Sie das Bild nach rechts verschieben. (rechts verschieben) + """Erstellt ein neues Bild, indem das Bild nach rechts verschoben wird. (rechts verschieben) Example: ``Image.HEART_SMALL.shift_right(1)`` @@ -554,7 +554,7 @@ Example: ``Image.HEART_SMALL.shift_right(1)`` ... def shift_up(self, n: int) -> Image: - """Erstellen Sie ein neues Bild, indem Sie das Bild nach oben verschoben wird. (nach oben verschieben) + """Erstellt ein neues Bild, indem das Bild nach oben verschoben wird. (nach oben verschieben) Example: ``Image.HEART_SMALL.shift_up(1)`` @@ -563,7 +563,7 @@ Example: ``Image.HEART_SMALL.shift_up(1)`` ... def shift_down(self, n: int) -> Image: - """Erstellen Sie ein neues Bild, indem Sie das Bild nach unten verschoben wird. (nach unten verschieben) + """Erstellt ein neues Bild, indem das Bild nach unten verschoben wird. (nach unten verschieben) Example: ``Image.HEART_SMALL.shift_down(1)`` diff --git a/lang/de/typeshed/stdlib/microbit/accelerometer.pyi b/lang/de/typeshed/stdlib/microbit/accelerometer.pyi index 3274570..1d9f5d3 100644 --- a/lang/de/typeshed/stdlib/microbit/accelerometer.pyi +++ b/lang/de/typeshed/stdlib/microbit/accelerometer.pyi @@ -26,7 +26,7 @@ Example: ``accelerometer.get_z()`` ... def get_values() -> Tuple[int, int, int]: - """Erhalten Sie die Beschleunigungsmessungen in allen Achsen auf einmal als Tupel. + """Erhalte die Beschleunigungsmessung in allen Achsen auf einmal als Tupel. Example: ``x, y, z = accelerometer.get_values()`` @@ -34,7 +34,7 @@ Example: ``x, y, z = accelerometer.get_values()`` ... def get_strength() -> int: - """Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der X-, Y- und Z-Achsen. + """Erhalte die Beschleunigungsmessung aller Achsen als positive Ganzzahl. Dies ist die euklidische Summe der x-, y- und z-Achsen. Example: ``accelerometer.get_strength()`` @@ -96,7 +96,7 @@ gestures can be detected using a loop with a small :func:`microbit.sleep` delay. ... def set_range(value: int) -> None: - """Legen Sie den Bereich des Beschleunigungsmessers in g (Fallbeschleunigung) auf den nächstgelegenen Wert fest, welcher von der Hardware unterstützt wird. Diese sind ``2``, ``4``oder ``8`` g. (Bereich einstellen) + """Legt den Bereich des Beschleunigungsmessers in g (Fallbeschleunigung) auf den nächstgelegenen Wert fest, welcher von der Hardware unterstützt wird. Diese sind ``2``, ``4``oder ``8`` g. (Bereich einstellen) Example: ``accelerometer.set_range(8)`` diff --git a/lang/de/typeshed/stdlib/microbit/audio.pyi b/lang/de/typeshed/stdlib/microbit/audio.pyi index fad5da1..fceaf91 100644 --- a/lang/de/typeshed/stdlib/microbit/audio.pyi +++ b/lang/de/typeshed/stdlib/microbit/audio.pyi @@ -13,7 +13,7 @@ Example: ``audio.play(Sound.GIGGLE)`` :param return_pin: Bestimmt einen Pin, mit dem der externen Lautsprecher anstatt mit Ground verbunden wird. Dies wird bei der **V2** Revision ignoriert.""" def is_playing() -> bool: - """Überprüfen Sie, ob ein Ton abgespielt wird. (spielt gerade) + """Überprüft, ob ein Ton abgespielt wird. (spielt gerade) Example: ``audio.is_playing()`` @@ -21,7 +21,7 @@ Example: ``audio.is_playing()`` ... def stop() -> None: - """Stoppe jede Audio-Wiedergabe. (Stop) + """Stoppt jede Audio-Wiedergabe. (Stop) Example: ``audio.stop()``""" ... @@ -65,12 +65,12 @@ class SoundEffect: waveform: int """Typ der Sinuswelle, einer dieser Werte: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (zufällig generiertes Geräusch)""" fx: int - """Effekt, der dem Sound hinzugefügt werden soll, in Frage kommende Werte: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, oder ``FX_NONE``""" + """Effekt, der dem Sound hinzugefügt werden soll. Mögliche Werte: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE`` oder ``FX_NONE``""" shape: int """Die Art der Interpolationskurve zwischen der Anfangs- und der Endfrequenz. Verschiedene Wellenformen haben unterschiedliche Frequenzänderungsraten. In Frage kommende Werte: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``""" def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): - """Erstelle einen neuen Soundeffekt. + """Erstellt einen neuen Soundeffekt. Example: ``my_effect = SoundEffect(duration=1000)`` @@ -89,7 +89,7 @@ and then change its attributes ``my_effect.duration = 500``. :param shape: Die Art der Interpolationskurve zwischen der Anfangs- und der Endfrequenz. Verschiedene Wellenformen haben unterschiedliche Frequenzänderungsraten. In Frage kommende Werte: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" def copy(self) -> SoundEffect: - """Erstelle eine Kopie dieses ``SoundEffect``. (kopieren) + """Erstellt eine Kopie dieses ``SoundEffect``. (kopieren) Example: ``sound_2 = sound_1.copy()`` @@ -108,7 +108,7 @@ Example:: frame[i] = 252 - i * 8""" def copyfrom(self, other: AudioFrame) -> None: - """Überschreibe die Daten in diesem ``AudioFrame`` mit den Daten einer anderen ``AudioFrame`` Instanz. + """Überschreibt die Daten in diesem ``AudioFrame`` mit den Daten einer anderen ``AudioFrame``-Instanz. Example: ``my_frame.copyfrom(source_frame)`` diff --git a/lang/de/typeshed/stdlib/microbit/compass.pyi b/lang/de/typeshed/stdlib/microbit/compass.pyi index 6d515d9..9e25ff0 100644 --- a/lang/de/typeshed/stdlib/microbit/compass.pyi +++ b/lang/de/typeshed/stdlib/microbit/compass.pyi @@ -10,7 +10,7 @@ to rotate the device in order to draw a circle on the LED display.""" ... def is_calibrated() -> bool: - """Überprüfe, dass der Kompass kalibriert ist. (ist kalibriert) + """Überprüft, dass der Kompass kalibriert ist. (ist kalibriert) Example: ``compass.is_calibrated()`` @@ -54,7 +54,7 @@ Call ``calibrate`` first or the results will be inaccurate. ... def heading() -> int: - """Ermittle die Kompassrichtung. (Ausrichtung) + """Ermittelt die Kompassrichtung. (Ausrichtung) Example: ``compass.heading()`` @@ -62,7 +62,7 @@ Example: ``compass.heading()`` ... def get_field_strength() -> int: - """Ermittle die Größe des Magnetfelds um das Gerät herum. + """Ermittelt die Größe des Magnetfelds um das Gerät herum. Example: ``compass.get_field_strength()`` diff --git a/lang/de/typeshed/stdlib/microbit/display.pyi b/lang/de/typeshed/stdlib/microbit/display.pyi index bd6beb5..ad66782 100644 --- a/lang/de/typeshed/stdlib/microbit/display.pyi +++ b/lang/de/typeshed/stdlib/microbit/display.pyi @@ -61,19 +61,19 @@ using their keyword.""" ... def on() -> None: - """Das LED-Display einschalten. + """Schaltet das LED-Display ein. Example: ``display.on()``""" ... def off() -> None: - """Die LED-Anzeige ausschalten (Deaktivieren des Displays ermöglicht es dir, die GPIO-Pins für andere Zwecke zu verwenden). + """Schaltet das LED-Display aus (Deaktivieren des Displays ermöglicht es dir, die GPIO-Pins für andere Zwecke zu verwenden). Example: ``display.off()``""" ... def is_on() -> bool: - """Überprüfung, ob die LED-Anzeige aktiviert ist. + """Überprüft, ob die LED-Anzeige aktiviert ist. Example: ``display.is_on()`` diff --git a/lang/de/typeshed/stdlib/microbit/i2c.pyi b/lang/de/typeshed/stdlib/microbit/i2c.pyi index 5258d5b..401e1a3 100644 --- a/lang/de/typeshed/stdlib/microbit/i2c.pyi +++ b/lang/de/typeshed/stdlib/microbit/i2c.pyi @@ -39,7 +39,7 @@ Example: ``i2c.read(0x50, 64)`` ... def write(addr: int, buf: ReadableBuffer, repeat: bool=False) -> None: - """Schreibe Bytes auf ein Gerät. (schreiben) + """Schreibt Bytes auf ein Gerät. (schreiben) Example: ``i2c.write(0x50, bytes([1, 2, 3]))`` diff --git a/lang/de/typeshed/stdlib/microbit/microphone.pyi b/lang/de/typeshed/stdlib/microbit/microphone.pyi index 2b09e41..e932ee3 100644 --- a/lang/de/typeshed/stdlib/microbit/microphone.pyi +++ b/lang/de/typeshed/stdlib/microbit/microphone.pyi @@ -11,7 +11,7 @@ Example: ``microphone.current_event()`` ... def was_event(event: SoundEvent) -> bool: - """Überprüfung, ob seit dem letzten Anruf mindestens einmal ein Geräusch gehört wurde. + """Überprüft, ob seit dem letzten Anruf mindestens einmal ein Geräusch gehört wurde. Example: ``microphone.was_event(SoundEvent.LOUD)`` @@ -22,7 +22,7 @@ This call clears the sound history before returning. ... def is_event(event: SoundEvent) -> bool: - """Überprüfe das zuletzt erkannte Sound-Ereignis. + """Überprüft das zuletzt erkannte Sound-Ereignis. Example: ``microphone.is_event(SoundEvent.LOUD)`` @@ -54,7 +54,7 @@ A high threshold means the event will only trigger if the sound is very loud (>= ... def sound_level() -> int: - """Ermittle den Schalldruckpegel. (Lautstärke) + """Ermittelt den Schalldruckpegel. (Lautstärke) Example: ``microphone.sound_level()`` diff --git a/lang/de/typeshed/stdlib/microbit/speaker.pyi b/lang/de/typeshed/stdlib/microbit/speaker.pyi index 205091c..228cef0 100644 --- a/lang/de/typeshed/stdlib/microbit/speaker.pyi +++ b/lang/de/typeshed/stdlib/microbit/speaker.pyi @@ -1,7 +1,7 @@ """Steuere den integrierten Lautsprecher (nur V2). (Lautsprecher)""" def off() -> None: - """Lautsprecher ausschalten. + """Schaltet den Lautsprecher aus. Example: ``speaker.off()`` @@ -9,7 +9,7 @@ This does not disable sound output to an edge connector pin.""" ... def on() -> None: - """Lautsprecher einschalten. + """Schaltet den Lautsprecher ein. Example: ``speaker.on()``""" ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/microbit/spi.pyi b/lang/de/typeshed/stdlib/microbit/spi.pyi index 47bde2c..d5342ea 100644 --- a/lang/de/typeshed/stdlib/microbit/spi.pyi +++ b/lang/de/typeshed/stdlib/microbit/spi.pyi @@ -28,7 +28,7 @@ Example: ``spi.read(64)`` ... def write(buffer: ReadableBuffer) -> None: - """Schreibe Bytes auf den Bus. (schreiben) + """Schreibt Bytes auf den Bus. (schreiben) Example: ``spi.write(bytes([1, 2, 3]))`` diff --git a/lang/de/typeshed/stdlib/microbit/uart.pyi b/lang/de/typeshed/stdlib/microbit/uart.pyi index 979692c..0545494 100644 --- a/lang/de/typeshed/stdlib/microbit/uart.pyi +++ b/lang/de/typeshed/stdlib/microbit/uart.pyi @@ -1,4 +1,4 @@ -"""Verbindet mit einem Gerät über eine serielle Schnittstelle.""" +"""Kommunikation mit einem Gerät über eine serielle Schnittstelle.""" from _typeshed import WriteableBuffer from ..microbit import MicroBitDigitalPin from typing import Optional, Union @@ -8,7 +8,7 @@ EVEN: int """Gerade Parität (gerade)""" def init(baudrate: int=9600, bits: int=8, parity: Optional[int]=None, stop: int=1, tx: Optional[MicroBitDigitalPin]=None, rx: Optional[MicroBitDigitalPin]=None) -> None: - """Initialisiere die serielle Kommunikation. + """Initialisiert die serielle Kommunikation. Example: ``uart.init(115200, tx=pin0, rx=pin1)`` @@ -29,7 +29,7 @@ For more details see `the online documentation bool: - """Überprüfen Sie, ob irgendwelche Daten warten. + """Überprüft, ob irgendwelche Daten warten. Example: ``uart.any()`` @@ -46,7 +46,7 @@ Example: ``uart.read()`` ... def readinto(buf: WriteableBuffer, nbytes: Optional[int]=None) -> Optional[int]: - """Lese Bytes in ``buf``. + """Liest Bytes in ``buf``. Example: ``uart.readinto(input_buffer)`` @@ -56,7 +56,7 @@ Example: ``uart.readinto(input_buffer)`` ... def readline() -> Optional[bytes]: - """Liest eine Zeile bis zum Zeilenumbruch. + """Liest eine Zeile bis zu einem Zeilenumbruch. Example: ``uart.readline()`` diff --git a/lang/de/typeshed/stdlib/micropython.pyi b/lang/de/typeshed/stdlib/micropython.pyi index 78b3834..3273c46 100644 --- a/lang/de/typeshed/stdlib/micropython.pyi +++ b/lang/de/typeshed/stdlib/micropython.pyi @@ -97,7 +97,7 @@ should be used to compute differences in stack usage at different points. ... def heap_lock() -> None: - """Heap-Speicher sperren. + """Sperrt den Heap-Speicher. Example: ``micropython.heap_lock()`` @@ -106,7 +106,7 @@ raised if any heap allocation is attempted.""" ... def heap_unlock() -> None: - """Heap-Speicher entsperren. + """Entsperrt den Heap-Speicher. Example: ``micropython.heap_unlock()`` diff --git a/lang/de/typeshed/stdlib/music.pyi b/lang/de/typeshed/stdlib/music.pyi index 7204b55..6578875 100644 --- a/lang/de/typeshed/stdlib/music.pyi +++ b/lang/de/typeshed/stdlib/music.pyi @@ -2,19 +2,19 @@ from typing import Optional, Tuple, Union, List from .microbit import MicroBitDigitalPin, pin0 DADADADUM: Tuple[str, ...] -"""Melodie: der Anfang von Beethovens 5. Symphonie in c-Moll. (dadadadaam)""" +"""Melodie: Der Anfang von Beethovens 5. Symphonie in c-Moll. (dadadadaam)""" ENTERTAINER: Tuple[str, ...] -"""Melodie: die ersten Takte des Ragtime-Klassikers "The Entertainer" von Scott Joplin. (Entertainer)""" +"""Melodie: Die ersten Takte des Ragtime-Klassikers „The Entertainer“ von Scott Joplin. (Entertainer)""" PRELUDE: Tuple[str, ...] """Melodie: Beginn des ersten Präludiums in C-Dur der 48 Präludien und Fugen von J.S. Bach.""" ODE: Tuple[str, ...] """Melodie: Die „Ode an die Freude“ von Beethovens neunter Symphonie in d-Moll. (Ode)""" NYAN: Tuple[str, ...] -"""Melodie: Die Nyan-Katze (http://www.nyan.cat/) (Nyan) +"""Melodie: Nyan-Katze (http://www.nyan.cat/). (Nyan) The composer is unknown. This is fair use for educational porpoises (as they say in New York).""" RINGTONE: Tuple[str, ...] -"""Melodie: Etwas das wie ein Handy-Klingelton klingt. (Klingelton) +"""Melodie: Etwas, das wie ein Handy-Klingelton klingt. (Klingelton) To be used to indicate an incoming message. """ @@ -23,18 +23,18 @@ FUNK: Tuple[str, ...] BLUES: Tuple[str, ...] """Melodie: ein 12-taktiger Boogie-Woogie-Blues mit Walking Bass. (Blues)""" BIRTHDAY: Tuple[str, ...] -"""Melodie: „Alles Gute zum Geburtstag…“ (Geburtstag) +"""Melodie: „Alles Gute zum Geburtstag\xa0…“ (Geburtstag) For copyright status see: http://www.bbc.co.uk/news/world-us-canada-34332853 """ WEDDING: Tuple[str, ...] -"""Melodie: der Hochzeitschor aus Wagners Oper "Lohengrin". (Hochzeit)""" +"""Melodie: der Hochzeitschor aus Wagners Oper „Lohengrin“. (Hochzeit)""" FUNERAL: Tuple[str, ...] -"""Melodie: der "Trauermarsch", auch bekannt als Frédéric Chopins Klaviersonate Nr. 2 in b-Moll, op. 35. (Beerdigung)""" +"""Melodie: Der „Trauermarsch“, auch bekannt als Frédéric Chopins Klaviersonate Nr. 2 in b-Moll, op. 35. (Beerdigung)""" PUNCHLINE: Tuple[str, ...] """Melodie: ein lustiges Fragment, das anzeigt, dass ein Scherz gemacht worden ist.""" PYTHON: Tuple[str, ...] -"""Melodie: John Philip Sousas Marsch "Liberty Bell", auch bekannt als das Thema von "Monty Python's Flying Circus" (nach dem die Programmiersprache Python benannt ist).""" +"""Melodie: John Philip Sousas Marsch „Liberty Bell“, auch bekannt als die Titelmusik von „Monty Python's Flying Circus“ (nach dem die Programmiersprache Python benannt ist).""" BADDY: Tuple[str, ...] """Melodie: Auftritt eines Stummfilm-Bösewichts.""" CHASE: Tuple[str, ...] diff --git a/lang/de/typeshed/stdlib/neopixel.pyi b/lang/de/typeshed/stdlib/neopixel.pyi index 9c84fea..3d9915f 100644 --- a/lang/de/typeshed/stdlib/neopixel.pyi +++ b/lang/de/typeshed/stdlib/neopixel.pyi @@ -5,7 +5,7 @@ from typing import Tuple class NeoPixel: def __init__(self, pin: MicroBitDigitalPin, n: int, bpp: int=3) -> None: - """Initialisierung eines neuen Streifens von Neopixel-LEDs, die über einen Pin gesteuert werden. + """Initialisiert einen neuen Streifen von Neopixel-LEDs, die über einen Pin gesteuert werden. Example: ``np = neopixel.NeoPixel(pin0, 8)`` @@ -26,7 +26,7 @@ See `the online docs None: - """Lösche alle Pixel. + """Löscht alle Pixel. Example: ``np.clear()``""" ... @@ -50,7 +50,7 @@ Equivalent to ``show``.""" ... def fill(self, colour: Tuple[int, ...]) -> None: - """Alle Pixel mit einem bestimmten RGB/RGBW-Wert färben. + """Färbt alle Pixel mit einem bestimmten RGB/RGBW-Wert (nur micro:bit\xa0V2). Example: ``np.fill((0, 0, 255))`` diff --git a/lang/de/typeshed/stdlib/os.pyi b/lang/de/typeshed/stdlib/os.pyi index 1fd4638..d44a449 100644 --- a/lang/de/typeshed/stdlib/os.pyi +++ b/lang/de/typeshed/stdlib/os.pyi @@ -12,7 +12,7 @@ persistent on-device file system.""" ... def remove(filename: str) -> None: - """Entferne (lösche) eine Datei. (Entfernen) + """Entfernt\xa0/ Löscht eine Datei. (Entfernen) Example: ``os.remove('data.txt')`` diff --git a/lang/de/typeshed/stdlib/radio.pyi b/lang/de/typeshed/stdlib/radio.pyi index a75e188..99d5d61 100644 --- a/lang/de/typeshed/stdlib/radio.pyi +++ b/lang/de/typeshed/stdlib/radio.pyi @@ -2,9 +2,9 @@ from _typeshed import WriteableBuffer from typing import Optional, Tuple RATE_1MBIT: int -"""Konstante zur Angabe eines Durchsatzes von 1 MBit pro Sekunde.""" +"""Konstante zur Angabe eines Durchsatzes von 1\xa0MBit pro Sekunde.""" RATE_2MBIT: int -"""Konstante zur Angabe eines Durchsatzes von 2 MBit pro Sekunde.""" +"""Konstante zur Angabe eines Durchsatzes von 2\xa0MBit pro Sekunde.""" def on() -> None: """Schaltet den Funk ein. diff --git a/lang/de/typeshed/stdlib/random.pyi b/lang/de/typeshed/stdlib/random.pyi index 10b688e..bf675d2 100644 --- a/lang/de/typeshed/stdlib/random.pyi +++ b/lang/de/typeshed/stdlib/random.pyi @@ -1,4 +1,4 @@ -"""Gibt eine Zufallszahl zurück.""" +"""Zufallszahlen generieren.""" from typing import TypeVar, Sequence, Union, overload def getrandbits(n: int) -> int: diff --git a/lang/de/typeshed/stdlib/speech.pyi b/lang/de/typeshed/stdlib/speech.pyi index 237802a..7f0c979 100644 --- a/lang/de/typeshed/stdlib/speech.pyi +++ b/lang/de/typeshed/stdlib/speech.pyi @@ -1,9 +1,9 @@ -"""Bringe den micro:bit dazu zu Sprechen, zu Singen und andere sprachähnliche Geräusche zu machen.""" +"""Bringe den micro:bit zum Sprechen, singen und dazu, andere sprachähnliche Geräusche zu machen.""" from typing import Optional from .microbit import MicroBitDigitalPin, pin0 def translate(words: str) -> str: - """Übersetze englische Wörter in Sprache. + """Übersetzt englische Wörter in Sprache. Example: ``speech.translate('hello world')`` @@ -19,15 +19,15 @@ See `the online documentation None: - """Laute aussprechen. + """Spricht Laute aus. Example: ``speech.pronounce(' /HEHLOW WERLD')`` -:param phonemes: (Phoneme) Die auszusprechenden Phoneme als Zeichenkette -:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt -:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt -:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert -:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt +:param phonemes: (Phoneme) Die auszusprechende Laut als Zeichenkette. +:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt. +:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt. +:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert. +:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt. :param pin: Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von ``pin0`` zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir ``pin=None`` verwenden. nur micro:bit V2. Override the optional pitch, speed, mouth and throat settings to change the @@ -42,10 +42,10 @@ def say(words: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=12 Example: ``speech.say('hello world')`` :param words: (Wörter) Der zu sagene String -:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt -:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt -:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert -:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt +:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt. +:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt. +:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert. +:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt. :param pin: Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von ``pin0`` zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir ``pin=None`` verwenden. nur micro:bit V2. The result is semi-accurate for English. Override the optional pitch, speed, @@ -58,15 +58,15 @@ See `the online documentation None: - """Singe Phoneme + """Singt Laute. Example: ``speech.sing(' /HEHLOW WERLD')`` -:param phonemes: (Phoneme) Der zu singende String -:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt -:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt -:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert -:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt +:param phonemes: (Phoneme) Der zu singende String. +:param pitch: (Tonhöhe) Eine Zahl, die die Tonhöhe der Stimme angibt. +:param speed: (tempo) Eine Zahl, die die Geschwindigkeit der Stimme angibt. +:param mouth: (Mund) Eine Zahl, die den Mund der Stimme repräsentiert. +:param throat: (klang) Eine Zahl, die den Klang der Stimme angibt. :param pin: Optionales Argument, um den Ausgangspin anzugeben, kann verwendet werden, um den Standardwert von ``pin0`` zu überschreiben. Wenn wir keinen Ton über die Pins abspielen wollen, können wir ``pin=None`` verwenden. nur micro:bit V2. Override the optional pitch, speed, mouth and throat settings to change diff --git a/lang/de/typeshed/stdlib/sys.pyi b/lang/de/typeshed/stdlib/sys.pyi index c6fe0f5..de796e0 100644 --- a/lang/de/typeshed/stdlib/sys.pyi +++ b/lang/de/typeshed/stdlib/sys.pyi @@ -2,7 +2,7 @@ from typing import Any, Dict, List, NoReturn, TextIO, Tuple def exit(retval: object=...) -> NoReturn: - """Ein Programm mit dem gegebenen Exit-Code beenden. + """Beendet ein Programm mit dem gegeneben Exit-Code. Example: ``sys.exit(1)`` diff --git a/lang/de/typeshed/stdlib/time.pyi b/lang/de/typeshed/stdlib/time.pyi index b60805f..aa32a98 100644 --- a/lang/de/typeshed/stdlib/time.pyi +++ b/lang/de/typeshed/stdlib/time.pyi @@ -1,4 +1,4 @@ -"""Messe Zeit und füge Verzögerung zu Programmen hinzu. (Zeit)""" +"""Miss Zeit und füge Verzögerung zu Programmen hinzu. (Zeit)""" from typing import Union def sleep(seconds: Union[int, float]) -> None: diff --git a/lang/es-es/typeshed/stdlib/microbit/spi.pyi b/lang/es-es/typeshed/stdlib/microbit/spi.pyi index 2c9582d..bff4a2a 100644 --- a/lang/es-es/typeshed/stdlib/microbit/spi.pyi +++ b/lang/es-es/typeshed/stdlib/microbit/spi.pyi @@ -18,12 +18,12 @@ For correct communication, the parameters have to be the same on both communicat ... def read(nbytes: int, out: int=0) -> bytes: - """Lee bytes. (leer) + """Lee como máximo ``nbytes`` mientras está escribiendo continuamente el byte individual dado por ``out``. (leer) Example: ``spi.read(64)`` :param nbytes: Número máximo de bytes a leer. -:param out: (a) The byte value to write (default 0). +:param out: (salida) El valor del byte a escribir (por defecto 0). :return: The bytes read.""" ... diff --git a/lang/fr/typeshed/stdlib/microbit/spi.pyi b/lang/fr/typeshed/stdlib/microbit/spi.pyi index 08c0860..226bcf0 100644 --- a/lang/fr/typeshed/stdlib/microbit/spi.pyi +++ b/lang/fr/typeshed/stdlib/microbit/spi.pyi @@ -23,7 +23,7 @@ def read(nbytes: int, out: int=0) -> bytes: Example: ``spi.read(64)`` :param nbytes: Nombre maximal d'octets à lire. -:param out: The byte value to write (default 0). +:param out: (Sortie) La valeur d'octet à écrire (0 par défaut). :return: The bytes read.""" ... diff --git a/lang/ja/typeshed/stdlib/microbit/spi.pyi b/lang/ja/typeshed/stdlib/microbit/spi.pyi index 3fd049c..b4ee96e 100644 --- a/lang/ja/typeshed/stdlib/microbit/spi.pyi +++ b/lang/ja/typeshed/stdlib/microbit/spi.pyi @@ -23,7 +23,7 @@ def read(nbytes: int, out: int=0) -> bytes: Example: ``spi.read(64)`` :param nbytes: 読み取る最大バイト数。 -:param out: The byte value to write (default 0). +:param out: 書き込むバイト値(初期値は'0') :return: The bytes read.""" ... diff --git a/lang/nl/typeshed/stdlib/microbit/spi.pyi b/lang/nl/typeshed/stdlib/microbit/spi.pyi index 064ddbf..0faf9ed 100644 --- a/lang/nl/typeshed/stdlib/microbit/spi.pyi +++ b/lang/nl/typeshed/stdlib/microbit/spi.pyi @@ -18,12 +18,12 @@ For correct communication, the parameters have to be the same on both communicat ... def read(nbytes: int, out: int=0) -> bytes: - """Lees bytes. (lezen) + """Lees minstens ``nbytes`` terwijl het enkele byte gegeven in ``out`` continu geschreven wordt. (lezen) Example: ``spi.read(64)`` :param nbytes: Maximum aantal te lezen bytes. -:param out: (uit) The byte value to write (default 0). +:param out: (uit) De byte-waarde om te schrijven (standaard 0). :return: The bytes read.""" ... diff --git a/lang/pl/typeshed/stdlib/gc.pyi b/lang/pl/typeshed/stdlib/gc.pyi index 5e50259..3a3e5a5 100644 --- a/lang/pl/typeshed/stdlib/gc.pyi +++ b/lang/pl/typeshed/stdlib/gc.pyi @@ -1,4 +1,4 @@ -"""Steruj zbieraniem sieci""" +"""Steruj zbieraniem śmieci""" from typing import overload def enable() -> None: diff --git a/lang/pl/typeshed/stdlib/microbit/spi.pyi b/lang/pl/typeshed/stdlib/microbit/spi.pyi index b6e67aa..9dc3445 100644 --- a/lang/pl/typeshed/stdlib/microbit/spi.pyi +++ b/lang/pl/typeshed/stdlib/microbit/spi.pyi @@ -18,12 +18,12 @@ For correct communication, the parameters have to be the same on both communicat ... def read(nbytes: int, out: int=0) -> bytes: - """Czytaj bajty. + """Przeczytaj co najwyżej ``nbytes`` podczas ciągłego pisania pojedynczego bajtu danego przez ``out``. Example: ``spi.read(64)`` :param nbytes: Maksymalna liczba bajtów do odczytu. -:param out: The byte value to write (default 0). +:param out: Wartość bajtu do zapisu (domyślnie 0). :return: The bytes read.""" ... From a94684f7fec6b26ba1194ab53d7d4802810645bf Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Tue, 8 Apr 2025 10:12:41 +0100 Subject: [PATCH 14/15] Update translations (#109) --- crowdin/translated/api.de.json | 46 +++++++++---------- crowdin/translated/api.fr.json | 4 +- crowdin/translated/api.ja.json | 2 +- crowdin/translated/api.zh-cn.json | 2 +- lang/de/typeshed/stdlib/gc.pyi | 18 ++++---- lang/de/typeshed/stdlib/log.pyi | 8 ++-- lang/de/typeshed/stdlib/machine.pyi | 4 +- lang/de/typeshed/stdlib/microbit/__init__.pyi | 2 +- lang/de/typeshed/stdlib/microbit/spi.pyi | 2 +- lang/de/typeshed/stdlib/random.pyi | 2 +- lang/fr/typeshed/stdlib/microbit/spi.pyi | 4 +- lang/ja/typeshed/stdlib/microbit/spi.pyi | 2 +- lang/zh-cn/typeshed/stdlib/microbit/spi.pyi | 2 +- 13 files changed, 49 insertions(+), 49 deletions(-) diff --git a/crowdin/translated/api.de.json b/crowdin/translated/api.de.json index cf9f751..fdaa448 100644 --- a/crowdin/translated/api.de.json +++ b/crowdin/translated/api.de.json @@ -4,35 +4,35 @@ "description": "(module name) Control the garbage collector" }, "gc.summary": { - "message": "Steuerung des Garbage Collectors", + "message": "Steuerung der automatischen Speicherbereinigung (Garbage Collector)", "description": "Control the garbage collector" }, "gc.enable": { - "message": "enable", + "message": "aktivieren", "description": "(function name) Enable automatic garbage collection." }, "gc.enable.summary": { - "message": "Automatische Garbage Collection aktivieren.", + "message": "Automatische Speicherbereinigung aktivieren.", "description": "Enable automatic garbage collection." }, "gc.disable": { - "message": "disable", + "message": "deaktivieren", "description": "(function name) Disable automatic garbage collection." }, "gc.disable.summary": { - "message": "Automatische Garbage Collection deaktivieren.", + "message": "Automatische Speicherbereinigung deaktivieren.", "description": "Disable automatic garbage collection." }, "gc.collect": { - "message": "collect", + "message": "sammeln", "description": "(function name) Run a garbage collection." }, "gc.collect.summary": { - "message": "Garbage Collection ausführen.", + "message": "Speicherbereinigung ausführen.", "description": "Run a garbage collection." }, "gc.mem_alloc": { - "message": "mem alloc", + "message": "Speicher zuweisen", "description": "(function name) Get the number of bytes of heap RAM that are allocated." }, "gc.mem_alloc.summary": { @@ -40,7 +40,7 @@ "description": "Get the number of bytes of heap RAM that are allocated." }, "gc.mem_free": { - "message": "mem free", + "message": "Speicher freigeben", "description": "(function name) Get the number of bytes of available heap RAM, or -1 if this amount is not known." }, "gc.mem_free.summary": { @@ -48,7 +48,7 @@ "description": "Get the number of bytes of available heap RAM, or -1 if this amount is not known." }, "gc.threshold-1": { - "message": "threshold", + "message": "Schwellenwert", "description": "(function name) Query the additional GC allocation threshold." }, "gc.threshold-1.summary": { @@ -56,7 +56,7 @@ "description": "Query the additional GC allocation threshold." }, "gc.threshold-2": { - "message": "threshold", + "message": "Schwellenwert", "description": "(function name) Set the additional GC allocation threshold." }, "gc.threshold-2.summary": { @@ -64,11 +64,11 @@ "description": "Set the additional GC allocation threshold." }, "gc.threshold-2.param-name.amount": { - "message": "amount", + "message": "Menge", "description": "(parameter name) The number of bytes after which a garbage collection should be triggered." }, "gc.threshold-2.param-doc.amount": { - "message": "Die Anzahl der Bytes, nach denen eine Garbage Collection ausgelöst werden soll.", + "message": "Die Anzahl der Bytes, nach denen eine Speicherbereinigung ausgelöst werden soll.", "description": "Parameter docs" }, "log": { @@ -112,11 +112,11 @@ "description": "Hours timestamp format." }, "log.DAYS": { - "message": "days", + "message": "tage", "description": "(field name) Days timestamp format." }, "log.DAYS.summary": { - "message": "Tage Zeitstempelformat.", + "message": "Zeitstempelformat: Tage", "description": "Days timestamp format." }, "log.set_labels": { @@ -124,11 +124,11 @@ "description": "(function name) Set up the log file header." }, "log.set_labels.summary": { - "message": "Den Logdatei-Header setzen ", + "message": "Spaltenüberschrift der Logdatei setzen ", "description": "Set up the log file header." }, "log.set_labels.param-name.*labels": { - "message": "*labels", + "message": "*Beschriftung", "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." }, "log.set_labels.param-doc.*labels": { @@ -136,7 +136,7 @@ "description": "Parameter docs" }, "log.set_labels.param-name.timestamp": { - "message": "timestamp", + "message": "Zeitstempel", "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." }, "log.set_labels.param-doc.timestamp": { @@ -256,7 +256,7 @@ "description": "Parameter docs" }, "machine.time_pulse_us": { - "message": "zeitimpuls us", + "message": "impulsdauer_messen", "description": "(function name) Time a pulse on a pin." }, "machine.time_pulse_us.summary": { @@ -272,7 +272,7 @@ "description": "Parameter docs" }, "machine.time_pulse_us.param-name.pulse_level": { - "message": "pulsstufe", + "message": "Impulsstufe", "description": "(parameter name) 0 to time a low pulse or 1 to time a high pulse" }, "machine.time_pulse_us.param-doc.pulse_level": { @@ -856,7 +856,7 @@ "description": "Parameter docs" }, "microbit.run_every.param-name.days": { - "message": "days", + "message": "tage", "description": "(parameter name) Sets the day mark for the scheduling." }, "microbit.run_every.param-doc.days": { @@ -3476,7 +3476,7 @@ "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "Wert der zu schreibenden Bytes (Standard 0).", "description": "Parameter docs" }, "microbit.spi.write": { @@ -4532,7 +4532,7 @@ "description": "(function name) Generate an integer with ``n`` random bits." }, "random.getrandbits.summary": { - "message": "Erzeugt einen Integerwert mit {{n}} zufälligen Bits.", + "message": "Eine Ganzzahl mit {{n}} zufälligen Bits generieren.", "description": "Generate an integer with ``n`` random bits." }, "random.getrandbits.param-name.n": { diff --git a/crowdin/translated/api.fr.json b/crowdin/translated/api.fr.json index cd4d7f1..cf6b43b 100644 --- a/crowdin/translated/api.fr.json +++ b/crowdin/translated/api.fr.json @@ -3460,7 +3460,7 @@ "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "Lire des octets.", + "message": "Lire au maximum {{nbytes}} tout en écrivant continuellement l'octet unique donné par {{out}}.", "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { @@ -3472,7 +3472,7 @@ "description": "Parameter docs" }, "microbit.spi.read.param-name.out": { - "message": "Sortie", + "message": "out", "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { diff --git a/crowdin/translated/api.ja.json b/crowdin/translated/api.ja.json index eac225d..cd6b958 100644 --- a/crowdin/translated/api.ja.json +++ b/crowdin/translated/api.ja.json @@ -3460,7 +3460,7 @@ "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.summary": { - "message": "バイト列を読み取ります。", + "message": "最大 {{nbytes}} バイトを読み取りながら、{{out}} で指定された 1 バイトを書き続ける", "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." }, "microbit.spi.read.param-name.nbytes": { diff --git a/crowdin/translated/api.zh-cn.json b/crowdin/translated/api.zh-cn.json index a61c505..ab0674c 100644 --- a/crowdin/translated/api.zh-cn.json +++ b/crowdin/translated/api.zh-cn.json @@ -3476,7 +3476,7 @@ "description": "(parameter name) The byte value to write (default 0)." }, "microbit.spi.read.param-doc.out": { - "message": "The byte value to write (default 0).", + "message": "要写入的字节值(默认为0)。", "description": "Parameter docs" }, "microbit.spi.write": { diff --git a/lang/de/typeshed/stdlib/gc.pyi b/lang/de/typeshed/stdlib/gc.pyi index 0d8aee5..d0c2848 100644 --- a/lang/de/typeshed/stdlib/gc.pyi +++ b/lang/de/typeshed/stdlib/gc.pyi @@ -1,22 +1,22 @@ -"""Steuerung des Garbage Collectors""" +"""Steuerung der automatischen Speicherbereinigung (Garbage Collector)""" from typing import overload def enable() -> None: - """Automatische Garbage Collection aktivieren.""" + """Automatische Speicherbereinigung aktivieren. (aktivieren)""" ... def disable() -> None: - """Automatische Garbage Collection deaktivieren. + """Automatische Speicherbereinigung deaktivieren. (deaktivieren) Heap memory can still be allocated, and garbage collection can still be initiated manually using ``gc.collect``.""" def collect() -> None: - """Garbage Collection ausführen.""" + """Speicherbereinigung ausführen. (sammeln)""" ... def mem_alloc() -> int: - """Ermittelt die Anzahl der dem Heap-Speicher zugewiesen Bytes. + """Ermittelt die Anzahl der dem Heap-Speicher zugewiesen Bytes. (Speicher zuweisen) :return: The number of bytes allocated. @@ -24,7 +24,7 @@ This function is MicroPython extension.""" ... def mem_free() -> int: - """Gibt die Anzahl der Bytes des verfügbaren dynamischen Speichers zurück. -1 wird zurückgegeben, wenn dieser Wert unbekannt ist. + """Gibt die Anzahl der Bytes des verfügbaren dynamischen Speichers zurück. -1 wird zurückgegeben, wenn dieser Wert unbekannt ist. (Speicher freigeben) :return: The number of bytes free. @@ -33,7 +33,7 @@ This function is MicroPython extension.""" @overload def threshold() -> int: - """Den zusätzlichen GC-Zuteilungsschwellwert abfragen. + """Den zusätzlichen GC-Zuteilungsschwellwert abfragen. (Schwellenwert) :return: The GC allocation threshold. @@ -44,7 +44,7 @@ implementations, its signature and semantics are different.""" @overload def threshold(amount: int) -> None: - """Den zusätzlichen GC-Schwellenwert festlegen. + """Den zusätzlichen GC-Schwellenwert festlegen. (Schwellenwert) Normally, a collection is triggered only when a new allocation cannot be satisfied, i.e. on an out-of-memory (OOM) condition. @@ -64,5 +64,5 @@ This function is a MicroPython extension. CPython has a similar function - ``set_threshold()``, but due to different GC implementations, its signature and semantics are different. -:param amount: Die Anzahl der Bytes, nach denen eine Garbage Collection ausgelöst werden soll.""" +:param amount: (Menge) Die Anzahl der Bytes, nach denen eine Speicherbereinigung ausgelöst werden soll.""" ... \ No newline at end of file diff --git a/lang/de/typeshed/stdlib/log.pyi b/lang/de/typeshed/stdlib/log.pyi index 24b39f8..f748a34 100644 --- a/lang/de/typeshed/stdlib/log.pyi +++ b/lang/de/typeshed/stdlib/log.pyi @@ -9,10 +9,10 @@ MINUTES = 600 HOURS = 36000 """Zeitstempelformat: Stunden (stunden)""" DAYS = 864000 -"""Tage Zeitstempelformat.""" +"""Zeitstempelformat: Tage (tage)""" def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None: - """Den Logdatei-Header setzen (Beschriftungen festlegen) + """Spaltenüberschrift der Logdatei setzen (Beschriftungen festlegen) Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)`` @@ -27,8 +27,8 @@ present, it will generate a new header row with the additional columns. By default the first column contains a timestamp for each row. The time unit can be selected via the timestamp argument. -:param *labels: Eine beliebige Anzahl von Positionsargumenten, die jeweils einem Eintrag in der Kopfzeile des Logs entsprechen. -:param timestamp: Wähle die Zeitstempel-Einheit, die automatisch als erste Spalte in jeder Zeile hinzugefügt wird. Der Zeitstempel kann einen der folgenden Werte annehmen: ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` oder ``None``, um den Zeitstempel zu deaktivieren. Der Standardwert ist ``log.SECONDS``.""" +:param *labels: (*Beschriftung) Eine beliebige Anzahl von Positionsargumenten, die jeweils einem Eintrag in der Kopfzeile des Logs entsprechen. +:param timestamp: (Zeitstempel) Wähle die Zeitstempel-Einheit, die automatisch als erste Spalte in jeder Zeile hinzugefügt wird. Der Zeitstempel kann einen der folgenden Werte annehmen: ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` oder ``None``, um den Zeitstempel zu deaktivieren. Der Standardwert ist ``log.SECONDS``.""" ... @overload diff --git a/lang/de/typeshed/stdlib/machine.pyi b/lang/de/typeshed/stdlib/machine.pyi index eda1989..d4e898f 100644 --- a/lang/de/typeshed/stdlib/machine.pyi +++ b/lang/de/typeshed/stdlib/machine.pyi @@ -44,7 +44,7 @@ Example: ``machine.enable_irq(interrupt_state)`` ... def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int: - """Gibt die Dauer eines Impulses an einem Pin zurück. (zeitimpuls us) + """Gibt die Dauer eines Impulses an einem Pin zurück. (impulsdauer_messen) Example: ``time_pulse_us(pin0, 1)`` @@ -55,7 +55,7 @@ function first waits until the pin input becomes equal to starts straight away. :param pin: Der zu verwendende Pin -:param pulse_level: (pulsstufe) 0, um einen Low-Impuls oder 1, um einen High-Impuls zu messen +:param pulse_level: (Impulsstufe) 0, um einen Low-Impuls oder 1, um einen High-Impuls zu messen :param timeout_us: Eine Verzögerung in Mikrosekunden :return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end""" ... diff --git a/lang/de/typeshed/stdlib/microbit/__init__.pyi b/lang/de/typeshed/stdlib/microbit/__init__.pyi index 08c6d1c..8bf52fc 100644 --- a/lang/de/typeshed/stdlib/microbit/__init__.pyi +++ b/lang/de/typeshed/stdlib/microbit/__init__.pyi @@ -37,7 +37,7 @@ When an exception is thrown inside the callback function it deschedules the function. To avoid this you can catch exceptions with ``try/except``. :param callback: Funktion, die in dem angegebenen Intervall aufgerufen wird. Bei Verwendung als Dekorator weglassen. -:param days: Legt den Tag für die Planung fest. +:param days: (tage) Legt den Tag für die Planung fest. :param h: Legt die Uhrzeit für die Planung fest. :param min: Legt die Minute für die Planung fest. :param s: Legt die Sekunde für die Planung fest. diff --git a/lang/de/typeshed/stdlib/microbit/spi.pyi b/lang/de/typeshed/stdlib/microbit/spi.pyi index d5342ea..7b0e2d7 100644 --- a/lang/de/typeshed/stdlib/microbit/spi.pyi +++ b/lang/de/typeshed/stdlib/microbit/spi.pyi @@ -23,7 +23,7 @@ def read(nbytes: int, out: int=0) -> bytes: Example: ``spi.read(64)`` :param nbytes: Maximum der zu lesenden Bytes. -:param out: The byte value to write (default 0). +:param out: Wert der zu schreibenden Bytes (Standard 0). :return: The bytes read.""" ... diff --git a/lang/de/typeshed/stdlib/random.pyi b/lang/de/typeshed/stdlib/random.pyi index bf675d2..af1d794 100644 --- a/lang/de/typeshed/stdlib/random.pyi +++ b/lang/de/typeshed/stdlib/random.pyi @@ -2,7 +2,7 @@ from typing import TypeVar, Sequence, Union, overload def getrandbits(n: int) -> int: - """Erzeugt einen Integerwert mit ``n`` zufälligen Bits. + """Eine Ganzzahl mit ``n`` zufälligen Bits generieren. Example: ``random.getrandbits(1)`` diff --git a/lang/fr/typeshed/stdlib/microbit/spi.pyi b/lang/fr/typeshed/stdlib/microbit/spi.pyi index 226bcf0..9c0dc61 100644 --- a/lang/fr/typeshed/stdlib/microbit/spi.pyi +++ b/lang/fr/typeshed/stdlib/microbit/spi.pyi @@ -18,12 +18,12 @@ For correct communication, the parameters have to be the same on both communicat ... def read(nbytes: int, out: int=0) -> bytes: - """Lire des octets. + """Lire au maximum ``nbytes`` tout en écrivant continuellement l'octet unique donné par ``out``. Example: ``spi.read(64)`` :param nbytes: Nombre maximal d'octets à lire. -:param out: (Sortie) La valeur d'octet à écrire (0 par défaut). +:param out: La valeur d'octet à écrire (0 par défaut). :return: The bytes read.""" ... diff --git a/lang/ja/typeshed/stdlib/microbit/spi.pyi b/lang/ja/typeshed/stdlib/microbit/spi.pyi index b4ee96e..6a90c3a 100644 --- a/lang/ja/typeshed/stdlib/microbit/spi.pyi +++ b/lang/ja/typeshed/stdlib/microbit/spi.pyi @@ -18,7 +18,7 @@ For correct communication, the parameters have to be the same on both communicat ... def read(nbytes: int, out: int=0) -> bytes: - """バイト列を読み取ります。 + """最大 ``nbytes`` バイトを読み取りながら、``out`` で指定された 1 バイトを書き続ける Example: ``spi.read(64)`` diff --git a/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi b/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi index bbca0c1..be9d2df 100644 --- a/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi +++ b/lang/zh-cn/typeshed/stdlib/microbit/spi.pyi @@ -23,7 +23,7 @@ def read(nbytes: int, out: int=0) -> bytes: Example: ``spi.read(64)`` :param nbytes: (字节数) 要读取的最大字节数。 -:param out: (写出) The byte value to write (default 0). +:param out: (写出) 要写入的字节值(默认为0)。 :return: The bytes read.""" ... From fee713c2a5e20e6d6179d7098253601174f55121 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Tue, 10 Jun 2025 11:19:50 +0100 Subject: [PATCH 15/15] ga-IE translation (#111) * ga-IE translation * Skip cache due to inexplicable error This one is very quick anyway. --- .github/workflows/node.js.yml | 22 +- crowdin/translated/api.ga-ie.json | 5266 +++++++++++++++++ lang/ga-ie/typeshed/stdlib/VERSIONS | 50 + .../typeshed/stdlib/_typeshed/__init__.pyi | 168 + lang/ga-ie/typeshed/stdlib/abc.pyi | 28 + lang/ga-ie/typeshed/stdlib/antigravity.pyi | 0 lang/ga-ie/typeshed/stdlib/array.pyi | 42 + lang/ga-ie/typeshed/stdlib/audio.pyi | 11 + lang/ga-ie/typeshed/stdlib/builtins.pyi | 1334 +++++ .../typeshed/stdlib/collections/__init__.pyi | 60 + lang/ga-ie/typeshed/stdlib/errno.pyi | 26 + lang/ga-ie/typeshed/stdlib/gc.pyi | 68 + lang/ga-ie/typeshed/stdlib/log.pyi | 89 + lang/ga-ie/typeshed/stdlib/love.pyi | 1 + lang/ga-ie/typeshed/stdlib/machine.pyi | 84 + lang/ga-ie/typeshed/stdlib/math.pyi | 246 + .../typeshed/stdlib/microbit/__init__.pyi | 712 +++ .../stdlib/microbit/accelerometer.pyi | 103 + lang/ga-ie/typeshed/stdlib/microbit/audio.pyi | 124 + .../typeshed/stdlib/microbit/compass.pyi | 70 + .../typeshed/stdlib/microbit/display.pyi | 92 + lang/ga-ie/typeshed/stdlib/microbit/i2c.pyi | 49 + .../typeshed/stdlib/microbit/microphone.pyi | 62 + .../typeshed/stdlib/microbit/speaker.pyi | 15 + lang/ga-ie/typeshed/stdlib/microbit/spi.pyi | 47 + lang/ga-ie/typeshed/stdlib/microbit/uart.pyi | 79 + lang/ga-ie/typeshed/stdlib/micropython.pyi | 133 + lang/ga-ie/typeshed/stdlib/music.pyi | 128 + lang/ga-ie/typeshed/stdlib/neopixel.pyi | 81 + lang/ga-ie/typeshed/stdlib/os.pyi | 63 + lang/ga-ie/typeshed/stdlib/power.pyi | 53 + lang/ga-ie/typeshed/stdlib/radio.pyi | 130 + lang/ga-ie/typeshed/stdlib/random.pyi | 81 + lang/ga-ie/typeshed/stdlib/speech.pyi | 79 + lang/ga-ie/typeshed/stdlib/struct.pyi | 56 + lang/ga-ie/typeshed/stdlib/sys.pyi | 96 + lang/ga-ie/typeshed/stdlib/this.pyi | 1 + lang/ga-ie/typeshed/stdlib/time.pyi | 116 + lang/ga-ie/typeshed/stdlib/types.pyi | 413 ++ lang/ga-ie/typeshed/stdlib/typing.pyi | 716 +++ .../typeshed/stdlib/typing_extensions.pyi | 115 + lang/ga-ie/typeshed/stdlib/uarray.pyi | 1 + lang/ga-ie/typeshed/stdlib/ucollections.pyi | 1 + lang/ga-ie/typeshed/stdlib/uerrno.pyi | 1 + lang/ga-ie/typeshed/stdlib/urandom.pyi | 1 + lang/ga-ie/typeshed/stdlib/ustruct.pyi | 1 + lang/ga-ie/typeshed/stdlib/usys.pyi | 1 + lang/ga-ie/typeshed/stdlib/utime.pyi | 1 + scripts/build-translations.sh | 2 +- 49 files changed, 11105 insertions(+), 13 deletions(-) create mode 100644 crowdin/translated/api.ga-ie.json create mode 100644 lang/ga-ie/typeshed/stdlib/VERSIONS create mode 100644 lang/ga-ie/typeshed/stdlib/_typeshed/__init__.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/abc.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/antigravity.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/array.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/audio.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/builtins.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/collections/__init__.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/errno.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/gc.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/log.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/love.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/machine.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/math.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/__init__.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/accelerometer.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/audio.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/compass.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/display.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/i2c.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/microphone.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/speaker.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/spi.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/microbit/uart.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/micropython.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/music.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/neopixel.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/os.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/power.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/radio.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/random.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/speech.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/struct.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/sys.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/this.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/time.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/types.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/typing.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/typing_extensions.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/uarray.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/ucollections.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/uerrno.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/urandom.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/ustruct.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/usys.pyi create mode 100644 lang/ga-ie/typeshed/stdlib/utime.pyi diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e424e07..04c0b33 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,13 +5,12 @@ name: Node.js CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: - runs-on: ubuntu-latest strategy: @@ -20,12 +19,11 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/crowdin/translated/api.ga-ie.json b/crowdin/translated/api.ga-ie.json new file mode 100644 index 0000000..1732425 --- /dev/null +++ b/crowdin/translated/api.ga-ie.json @@ -0,0 +1,5266 @@ +{ + "gc": { + "message": "gc", + "description": "(module name) Control the garbage collector" + }, + "gc.summary": { + "message": "Rialú ar an bailitheoir truflais", + "description": "Control the garbage collector" + }, + "gc.enable": { + "message": "chumasú", + "description": "(function name) Enable automatic garbage collection." + }, + "gc.enable.summary": { + "message": "Cumasaigh bailiú truflais uathoibríoch.", + "description": "Enable automatic garbage collection." + }, + "gc.disable": { + "message": "dhíchumasú", + "description": "(function name) Disable automatic garbage collection." + }, + "gc.disable.summary": { + "message": "Díchumasaigh bailiú truflais uathoibríoch.", + "description": "Disable automatic garbage collection." + }, + "gc.collect": { + "message": "bhailiú", + "description": "(function name) Run a garbage collection." + }, + "gc.collect.summary": { + "message": "Rith bailiúchán truflais.", + "description": "Run a garbage collection." + }, + "gc.mem_alloc": { + "message": "mem alloc", + "description": "(function name) Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_alloc.summary": { + "message": "Faigh líon na mbeart de RAM carn atá leithdháilte.", + "description": "Get the number of bytes of heap RAM that are allocated." + }, + "gc.mem_free": { + "message": "cuimhne saor", + "description": "(function name) Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.mem_free.summary": { + "message": "Faigh líon na mbeart de RAM gcarn atá ar fáil, nó -1 mura bhfuil an méid seo ar eolas.", + "description": "Get the number of bytes of available heap RAM, or -1 if this amount is not known." + }, + "gc.threshold-1": { + "message": "tairseach", + "description": "(function name) Query the additional GC allocation threshold." + }, + "gc.threshold-1.summary": { + "message": "Ceistigh an tairseach leithdháilte GC bhreise.", + "description": "Query the additional GC allocation threshold." + }, + "gc.threshold-2": { + "message": "tairseach", + "description": "(function name) Set the additional GC allocation threshold." + }, + "gc.threshold-2.summary": { + "message": "Socraigh an tairseach leithdháilte GC breise.", + "description": "Set the additional GC allocation threshold." + }, + "gc.threshold-2.param-name.amount": { + "message": "méid", + "description": "(parameter name) The number of bytes after which a garbage collection should be triggered." + }, + "gc.threshold-2.param-doc.amount": { + "message": "Líon na mbeart ina dhiaidh sin ba cheart bailiúchán truflais a spreagadh.", + "description": "Parameter docs" + }, + "log": { + "message": "loga", + "description": "(module name) Log data to your micro:bit V2." + }, + "log.summary": { + "message": "Logáil sonraí chuig do micro:bit V2.", + "description": "Log data to your micro:bit V2." + }, + "log.MILLISECONDS": { + "message": "milleasoicindí", + "description": "(field name) Milliseconds timestamp format." + }, + "log.MILLISECONDS.summary": { + "message": "Formáid stampa ama milleasoicindí.", + "description": "Milliseconds timestamp format." + }, + "log.SECONDS": { + "message": "soicindí", + "description": "(field name) Seconds timestamp format." + }, + "log.SECONDS.summary": { + "message": "Formáid stampa ama soicindí.", + "description": "Seconds timestamp format." + }, + "log.MINUTES": { + "message": "nóiméad", + "description": "(field name) Minutes timestamp format." + }, + "log.MINUTES.summary": { + "message": "Formáid stampa ama nóiméad.", + "description": "Minutes timestamp format." + }, + "log.HOURS": { + "message": "uair an chloig", + "description": "(field name) Hours timestamp format." + }, + "log.HOURS.summary": { + "message": "Formáid stampa ama uaireanta.", + "description": "Hours timestamp format." + }, + "log.DAYS": { + "message": "laethanta", + "description": "(field name) Days timestamp format." + }, + "log.DAYS.summary": { + "message": "Formáid stampa ama na laethanta.", + "description": "Days timestamp format." + }, + "log.set_labels": { + "message": "lipéid a shocrú", + "description": "(function name) Set up the log file header." + }, + "log.set_labels.summary": { + "message": "Socraigh ceanntásc an chomhaid logála.", + "description": "Set up the log file header." + }, + "log.set_labels.param-name.*labels": { + "message": "*lipéid", + "description": "(parameter name) Any number of positional arguments, each corresponding to an entry in the log header." + }, + "log.set_labels.param-doc.*labels": { + "message": "Aon líon argóintí suímh, gach ceann ag freagairt d'iontráil sa cheanntásc loga.", + "description": "Parameter docs" + }, + "log.set_labels.param-name.timestamp": { + "message": "stampa ama", + "description": "(parameter name) Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``." + }, + "log.set_labels.param-doc.timestamp": { + "message": "Roghnaigh an t-aonad stampa ama a chuirfear leis go huathoibríoch mar an chéad cholún i ngach ró. Is féidir le luachanna stampa ama a bheith mar cheann de {{log.MILLISECONDS}}, {{log.SECONDS}}, {{log.MINUTES}}, {{log.HOURS}}, {{log.DAYS}} nó {{None}} chun an stampa ama a dhíchumasú. Is é {{log.SECONDS}} an luach réamhshocraithe.", + "description": "Parameter docs" + }, + "log.add-1": { + "message": "cuir leis", + "description": "(function name) Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.summary": { + "message": "Cuir ró sonraí leis an loga trí fhoclóir ceanntásca agus luachanna a rith.", + "description": "Add a data row to the log by passing a dictionary of headers and values." + }, + "log.add-1.param-name.data_dictionary": { + "message": "foclóir sonraí", + "description": "(parameter name) The data to log as a dictionary with a key for each header." + }, + "log.add-1.param-doc.data_dictionary": { + "message": "Na sonraí le logáil mar fhoclóir le heochair do gach ceanntásc.", + "description": "Parameter docs" + }, + "log.add-2": { + "message": "suimigh", + "description": "(function name) Add a data row to the log using keyword arguments." + }, + "log.add-2.summary": { + "message": "Cuir ró sonraí leis an logáil ag baint úsáide as argóintí eochairfhocail.", + "description": "Add a data row to the log using keyword arguments." + }, + "log.delete": { + "message": "scrios", + "description": "(function name) Deletes the contents of the log, including headers." + }, + "log.delete.summary": { + "message": "Scrios inneachar an loga, lena n-áirítear ceanntásca.", + "description": "Deletes the contents of the log, including headers." + }, + "log.delete.param-name.full": { + "message": "iomlán", + "description": "(parameter name) ``True`` selects a “full” erase and ``False`` selects the “fast” erase method." + }, + "log.delete.param-doc.full": { + "message": "Roghnaíonn {{True}} scriosadh “lán” agus roghnaíonn {{False}} an modh scriosta “tapa”.", + "description": "Parameter docs" + }, + "log.set_mirroring": { + "message": "scáthánú socraithe", + "description": "(function name) Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.summary": { + "message": "Cumraigh scáthánú na gníomhaíochta logála sonraí chuig an aschur sraitheach.", + "description": "Configure mirroring of the data logging activity to the serial output." + }, + "log.set_mirroring.param-name.serial": { + "message": "sraitheach", + "description": "(parameter name) ``True`` enables mirroring data to the serial output." + }, + "log.set_mirroring.param-doc.serial": { + "message": "Cumasaíonn {{True}} sonraí a scáthánú leis an aschur sraitheach.", + "description": "Parameter docs" + }, + "machine": { + "message": "meaisín", + "description": "(module name) Low-level utilities." + }, + "machine.summary": { + "message": "Fóntais leibhéal íseal.", + "description": "Low-level utilities." + }, + "machine.unique_id": { + "message": "id uathúil", + "description": "(function name) Get a byte string with a unique identifier of a board." + }, + "machine.unique_id.summary": { + "message": "Faigh beart teaghrán le haitheantóir uathúil cláir.", + "description": "Get a byte string with a unique identifier of a board." + }, + "machine.reset": { + "message": "athshocrú", + "description": "(function name) Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.reset.summary": { + "message": "Athshocraigh an gléas ar bhealach cosúil le brúigh an cnaipe ATHSHOCRAITHE seachtrach.", + "description": "Reset the device in a manner similar to pushing the external RESET button." + }, + "machine.freq": { + "message": "minicíocht", + "description": "(function name) Get the CPU frequency in hertz." + }, + "machine.freq.summary": { + "message": "Faigh an minicíocht LAP i hertz.", + "description": "Get the CPU frequency in hertz." + }, + "machine.disable_irq": { + "message": "díchumasaigh irq", + "description": "(function name) Disable interrupt requests." + }, + "machine.disable_irq.summary": { + "message": "Díchumasaigh iarratais idirbhriste.", + "description": "Disable interrupt requests." + }, + "machine.enable_irq": { + "message": "cumasaigh irq", + "description": "(function name) Re-enable interrupt requests." + }, + "machine.enable_irq.summary": { + "message": "Athchumasaigh iarratais idirbhriste.", + "description": "Re-enable interrupt requests." + }, + "machine.enable_irq.param-name.state": { + "message": "stát", + "description": "(parameter name) The value that was returned from the most recent call to the ``disable_irq`` function." + }, + "machine.enable_irq.param-doc.state": { + "message": "An luach a cuireadh ar ais ón nglao is déanaí chuig an bhfeidhm {{disable_irq}}.", + "description": "Parameter docs" + }, + "machine.time_pulse_us": { + "message": "cuisle ama us", + "description": "(function name) Time a pulse on a pin." + }, + "machine.time_pulse_us.summary": { + "message": "Am buille ar bhioráin.", + "description": "Time a pulse on a pin." + }, + "machine.time_pulse_us.param-name.pin": { + "message": "bioráin", + "description": "(parameter name) The pin to use" + }, + "machine.time_pulse_us.param-doc.pin": { + "message": "An biorán le húsáid", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.pulse_level": { + "message": "leibhéal cuisle", + "description": "(parameter name) 0 to time a low pulse or 1 to time a high pulse" + }, + "machine.time_pulse_us.param-doc.pulse_level": { + "message": "0 go ham cuisle íseal nó 1 go ham cuisle ard", + "description": "Parameter docs" + }, + "machine.time_pulse_us.param-name.timeout_us": { + "message": "am istigh linn", + "description": "(parameter name) A microsecond timeout" + }, + "machine.time_pulse_us.param-doc.timeout_us": { + "message": "Teorainn ama micrea soicind", + "description": "Parameter docs" + }, + "machine.mem": { + "message": "cuimhne", + "description": "(class name) The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.summary": { + "message": "An rang le haghaidh radharcanna cuimhne {{mem8}}, {{mem16}} agus {{mem32}}.", + "description": "The class for the ``mem8``, ``mem16`` and ``mem32`` memory views." + }, + "machine.mem.__getitem__": { + "message": "faigh-mír", + "description": "(function name) Access a value from memory." + }, + "machine.mem.__getitem__.summary": { + "message": "Faigh luach ó chuimhne.", + "description": "Access a value from memory." + }, + "machine.mem.__getitem__.param-name.address": { + "message": "seoladh", + "description": "(parameter name) The memory address." + }, + "machine.mem.__getitem__.param-doc.address": { + "message": "An seoladh cuimhne.", + "description": "Parameter docs" + }, + "machine.mem.__setitem__": { + "message": "socraigh-mír", + "description": "(function name) Set a value at the given address." + }, + "machine.mem.__setitem__.summary": { + "message": "Socraigh luach ag an seoladh a thugtar.", + "description": "Set a value at the given address." + }, + "machine.mem.__setitem__.param-name.address": { + "message": "seoladh", + "description": "(parameter name) The memory address." + }, + "machine.mem.__setitem__.param-doc.address": { + "message": "An seoladh cuimhne.", + "description": "Parameter docs" + }, + "machine.mem.__setitem__.param-name.value": { + "message": "luach", + "description": "(parameter name) The integer value to set." + }, + "machine.mem.__setitem__.param-doc.value": { + "message": "An luach slánuimhir a shocrú.", + "description": "Parameter docs" + }, + "machine.mem8": { + "message": "cuimhne8", + "description": "(field name) 8-bit (byte) view of memory." + }, + "machine.mem8.summary": { + "message": "Amharc 8-giotán (beart) ar chuimhne.", + "description": "8-bit (byte) view of memory." + }, + "machine.mem16": { + "message": "cuimhne16", + "description": "(field name) 16-bit view of memory." + }, + "machine.mem16.summary": { + "message": "Radharc 16-giotán ar chuimhne.", + "description": "16-bit view of memory." + }, + "machine.mem32": { + "message": "cuimhne32", + "description": "(field name) 32-bit view of memory." + }, + "machine.mem32.summary": { + "message": "Amharc 32-giotán ar chuimhne.", + "description": "32-bit view of memory." + }, + "math": { + "message": "mata", + "description": "(module name) Mathematical functions." + }, + "math.summary": { + "message": "Feidhmeanna matamaiticiúla.", + "description": "Mathematical functions." + }, + "math.acos": { + "message": "acos", + "description": "(function name) Calculate the inverse cosine." + }, + "math.acos.summary": { + "message": "Ríomh an cosine inbhéartach.", + "description": "Calculate the inverse cosine." + }, + "math.acos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.acos.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.asin": { + "message": "asin", + "description": "(function name) Calculate the inverse sine." + }, + "math.asin.summary": { + "message": "Ríomh an sine inbhéartach.", + "description": "Calculate the inverse sine." + }, + "math.asin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.asin.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.atan": { + "message": "atan", + "description": "(function name) Calculate the inverse tangent." + }, + "math.atan.summary": { + "message": "Ríomh an tadhlaí inbhéartach.", + "description": "Calculate the inverse tangent." + }, + "math.atan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.atan2": { + "message": "atan2", + "description": "(function name) Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.summary": { + "message": "Ríomh príomhluach an tadhlaí inbhéartach de {{y/x}}.", + "description": "Calculate the principal value of the inverse tangent of ``y/x``." + }, + "math.atan2.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.atan2.param-name.y": { + "message": "y", + "description": "(parameter name) A number" + }, + "math.atan2.param-doc.y": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.ceil": { + "message": "síleáil", + "description": "(function name) Round a number towards positive infinity." + }, + "math.ceil.summary": { + "message": "Déan roinnt a shlánú i dtreo éigríochta dearfach.", + "description": "Round a number towards positive infinity." + }, + "math.ceil.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ceil.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.copysign": { + "message": "cóipchomhartha", + "description": "(function name) Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.summary": { + "message": "Ríomh {{x}} le comhartha {{y}}.", + "description": "Calculate ``x`` with the sign of ``y``." + }, + "math.copysign.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.copysign.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.copysign.param-name.y": { + "message": "y", + "description": "(parameter name) The source of the sign for the return value" + }, + "math.copysign.param-doc.y": { + "message": "Foinse an chomhartha don luach fillte", + "description": "Parameter docs" + }, + "math.cos": { + "message": "cos", + "description": "(function name) Calculate the cosine of ``x``." + }, + "math.cos.summary": { + "message": "Ríomh an comhshíneas de {{x}}.", + "description": "Calculate the cosine of ``x``." + }, + "math.cos.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.cos.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.degrees": { + "message": "céimeanna", + "description": "(function name) Convert radians to degrees." + }, + "math.degrees.summary": { + "message": "Raidian Tiontaigh go céimeanna.", + "description": "Convert radians to degrees." + }, + "math.degrees.param-name.x": { + "message": "x", + "description": "(parameter name) A value in radians" + }, + "math.degrees.param-doc.x": { + "message": "Luach i radaíní", + "description": "Parameter docs" + }, + "math.exp": { + "message": "exp", + "description": "(function name) Calculate the exponential of ``x``." + }, + "math.exp.summary": { + "message": "Ríomh easpónantúil {{x}}.", + "description": "Calculate the exponential of ``x``." + }, + "math.exp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.exp.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.fabs": { + "message": "fabs", + "description": "(function name) Return the absolute value of ``x``." + }, + "math.fabs.summary": { + "message": "Tabhair luach absalóideach {{x}}ar ais.", + "description": "Return the absolute value of ``x``." + }, + "math.fabs.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.fabs.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.floor": { + "message": "urlár", + "description": "(function name) Round a number towards negative infinity." + }, + "math.floor.summary": { + "message": "Babhtaigh uimhir i dtreo éigríoch diúltach.", + "description": "Round a number towards negative infinity." + }, + "math.floor.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.floor.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.fmod": { + "message": "fmod", + "description": "(function name) Calculate the remainder of ``x/y``." + }, + "math.fmod.summary": { + "message": "Ríomh an chuid eile de {{x/y}}.", + "description": "Calculate the remainder of ``x/y``." + }, + "math.fmod.param-name.x": { + "message": "x", + "description": "(parameter name) The numerator" + }, + "math.fmod.param-doc.x": { + "message": "An t-uimhreoir", + "description": "Parameter docs" + }, + "math.fmod.param-name.y": { + "message": "y", + "description": "(parameter name) The denominator" + }, + "math.fmod.param-doc.y": { + "message": "An t-ainmneoir", + "description": "Parameter docs" + }, + "math.frexp": { + "message": "frexp", + "description": "(function name) Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.summary": { + "message": "Díscaoileann sé uimhir snámhphointe isteach ina mantissa agus ina easpónant.", + "description": "Decomposes a floating-point number into its mantissa and exponent." + }, + "math.frexp.param-name.x": { + "message": "x", + "description": "(parameter name) A floating-point number" + }, + "math.frexp.param-doc.x": { + "message": "Uimhir snámhphointe", + "description": "Parameter docs" + }, + "math.isfinite": { + "message": "isfinideach", + "description": "(function name) Check if a value is finite." + }, + "math.isfinite.summary": { + "message": "Seiceáil an bhfuil luach críochta.", + "description": "Check if a value is finite." + }, + "math.isfinite.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isfinite.param-doc.x": { + "message": "Uimhir.", + "description": "Parameter docs" + }, + "math.isinf": { + "message": "isinf", + "description": "(function name) Check if a value is infinite." + }, + "math.isinf.summary": { + "message": "Seiceáil an bhfuil luach gan teorainn.", + "description": "Check if a value is infinite." + }, + "math.isinf.param-name.x": { + "message": "x", + "description": "(parameter name) A number." + }, + "math.isinf.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.isnan": { + "message": "isnan", + "description": "(function name) Check if a value is not-a-number (NaN)." + }, + "math.isnan.summary": { + "message": "Seiceáil an luach nach uimhir é (NaN).", + "description": "Check if a value is not-a-number (NaN)." + }, + "math.isnan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.isnan.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.ldexp": { + "message": "ldexp", + "description": "(function name) Calculate ``x * (2**exp)``." + }, + "math.ldexp.summary": { + "message": "Ríomh {{x * (2**exp)}}.", + "description": "Calculate ``x * (2**exp)``." + }, + "math.ldexp.param-name.exp": { + "message": "exp", + "description": "(parameter name) Integer exponent" + }, + "math.ldexp.param-doc.exp": { + "message": "Easpónant slánuimhir", + "description": "Parameter docs" + }, + "math.ldexp.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.ldexp.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.log": { + "message": "loga", + "description": "(function name) Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.summary": { + "message": "Ríomh logarithm {{x}} go dtí an bonn tugtha (réamhshocraithe don logarithm nádúrtha).", + "description": "Calculate the logarithm of ``x`` to the given base (defaults to natural logorithm)." + }, + "math.log.param-name.base": { + "message": "bonn", + "description": "(parameter name) The base to use" + }, + "math.log.param-doc.base": { + "message": "An bonn le húsáid", + "description": "Parameter docs" + }, + "math.log.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.log.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.modf": { + "message": "modf", + "description": "(function name) Calculate the fractional and integral parts of ``x``." + }, + "math.modf.summary": { + "message": "Ríomh na codanna codánacha agus lárnacha de {{x}}.", + "description": "Calculate the fractional and integral parts of ``x``." + }, + "math.modf.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.modf.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.pow": { + "message": "pow", + "description": "(function name) Returns ``x`` to the power of ``y``." + }, + "math.pow.summary": { + "message": "Filleann {{x}} chuig cumhacht {{y}}.", + "description": "Returns ``x`` to the power of ``y``." + }, + "math.pow.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.pow.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.pow.param-name.y": { + "message": "y", + "description": "(parameter name) The exponent" + }, + "math.pow.param-doc.y": { + "message": "An léiritheoir", + "description": "Parameter docs" + }, + "math.radians": { + "message": "raidiáin", + "description": "(function name) Convert a degrees to radians." + }, + "math.radians.summary": { + "message": "Tiontaigh céimeanna go raidian.", + "description": "Convert a degrees to radians." + }, + "math.radians.param-name.x": { + "message": "x", + "description": "(parameter name) A value in degrees" + }, + "math.radians.param-doc.x": { + "message": "Luach i gcéimeanna", + "description": "Parameter docs" + }, + "math.sin": { + "message": "síneas", + "description": "(function name) Calculate the sine of ``x``." + }, + "math.sin.summary": { + "message": "Ríomh an sín de {{x}}.", + "description": "Calculate the sine of ``x``." + }, + "math.sin.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sin.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.sqrt": { + "message": "sqrt", + "description": "(function name) Calculate the square root of ``x``." + }, + "math.sqrt.summary": { + "message": "Ríomh an fhréamh chearnach de {{x}}.", + "description": "Calculate the square root of ``x``." + }, + "math.sqrt.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.sqrt.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.tan": { + "message": "tan", + "description": "(function name) Calculate the tangent of ``x``." + }, + "math.tan.summary": { + "message": "Ríomh an tadhlaí de {{x}}.", + "description": "Calculate the tangent of ``x``." + }, + "math.tan.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.tan.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.trunc": { + "message": "trunc", + "description": "(function name) Round a number towards 0." + }, + "math.trunc.summary": { + "message": "Déan uimhir a shlánú i dtreo 0.", + "description": "Round a number towards 0." + }, + "math.trunc.param-name.x": { + "message": "x", + "description": "(parameter name) A number" + }, + "math.trunc.param-doc.x": { + "message": "Uimhir", + "description": "Parameter docs" + }, + "math.e": { + "message": "e", + "description": "(field name) Base of the natural logarithm" + }, + "math.e.summary": { + "message": "Bunús an logartaim nádúrtha", + "description": "Base of the natural logarithm" + }, + "math.pi": { + "message": "pi", + "description": "(field name) The ratio of a circle's circumference to its diameter" + }, + "math.pi.summary": { + "message": "An cóimheas idir imlíne ciorcail agus a thrastomhas", + "description": "The ratio of a circle's circumference to its diameter" + }, + "microbit": { + "message": "microbit", + "description": "(module name) Pins, images, sounds, temperature and volume." + }, + "microbit.summary": { + "message": "Bioráin, íomhánna, fuaimeanna, teocht agus toirt.", + "description": "Pins, images, sounds, temperature and volume." + }, + "microbit.run_every": { + "message": "rith gach", + "description": "(function name) Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.summary": { + "message": "Sceideal chun feidhm a rith ag an eatramh a shonraítear leis na hargóintí ama **V2 amháin**.", + "description": "Schedule to run a function at the interval specified by the time arguments **V2 only**." + }, + "microbit.run_every.param-name.callback": { + "message": "callback", + "description": "(parameter name) Function to call at the provided interval. Omit when using as a decorator." + }, + "microbit.run_every.param-doc.callback": { + "message": "Feidhm chun glaoch ag an eatramh a sholáthraítear. Fág ar lár agus é á úsáid mar mhaisitheoir.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.days": { + "message": "laethanta", + "description": "(parameter name) Sets the day mark for the scheduling." + }, + "microbit.run_every.param-doc.days": { + "message": "Socraíonn sé an marc lae don sceidealú.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.h": { + "message": "h", + "description": "(parameter name) Sets the hour mark for the scheduling." + }, + "microbit.run_every.param-doc.h": { + "message": "Socraíonn sé an marc uair an chloig don sceidealú.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.min": { + "message": "íos", + "description": "(parameter name) Sets the minute mark for the scheduling." + }, + "microbit.run_every.param-doc.min": { + "message": "Socraíonn sé an marc nóiméad don sceidealú.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.ms": { + "message": "ms", + "description": "(parameter name) Sets the millisecond mark for the scheduling." + }, + "microbit.run_every.param-doc.ms": { + "message": "Socraíonn sé an marc milleasoicind don sceidealú.", + "description": "Parameter docs" + }, + "microbit.run_every.param-name.s": { + "message": "s", + "description": "(parameter name) Sets the second mark for the scheduling." + }, + "microbit.run_every.param-doc.s": { + "message": "Socraigh an dara marc don sceidealú.", + "description": "Parameter docs" + }, + "microbit.panic": { + "message": "scaoll", + "description": "(function name) Enter a panic mode." + }, + "microbit.panic.summary": { + "message": "Téigh isteach i mód scaoill.", + "description": "Enter a panic mode." + }, + "microbit.panic.param-name.n": { + "message": "n", + "description": "(parameter name) An arbitrary integer <= 255 to indicate a status." + }, + "microbit.panic.param-doc.n": { + "message": "Slánuimhir treallach <= 255 chun stádas a léiriú.", + "description": "Parameter docs" + }, + "microbit.reset": { + "message": "athshocrú", + "description": "(function name) Restart the board." + }, + "microbit.reset.summary": { + "message": "Atosaigh an bord.", + "description": "Restart the board." + }, + "microbit.scale-1": { + "message": "scála", + "description": "(function name) Converts a value from a range to an integer range." + }, + "microbit.scale-1.summary": { + "message": "Athraíonn luach ó raon go raon slánuimhir.", + "description": "Converts a value from a range to an integer range." + }, + "microbit.scale-1.param-name.from_": { + "message": "ó", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-1.param-doc.from_": { + "message": "A tuple a shainmhíniú ar an raon a thiontú ó.", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.to": { + "message": "chuig", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-1.param-doc.to": { + "message": "A tuple a shainmhíniú ar an raon a thiontú go.", + "description": "Parameter docs" + }, + "microbit.scale-1.param-name.value": { + "message": "luach", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-1.param-doc.value": { + "message": "Uimhir le tiontú.", + "description": "Parameter docs" + }, + "microbit.scale-2": { + "message": "scála", + "description": "(function name) Converts a value from a range to a floating point range." + }, + "microbit.scale-2.summary": { + "message": "Athraíonn luach ó raon go raon snámhphointe.", + "description": "Converts a value from a range to a floating point range." + }, + "microbit.scale-2.param-name.from_": { + "message": "ó", + "description": "(parameter name) A tuple to define the range to convert from." + }, + "microbit.scale-2.param-doc.from_": { + "message": "Tupla chun an raon le tiontú uaidh a shainiú.", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.to": { + "message": "chuig", + "description": "(parameter name) A tuple to define the range to convert to." + }, + "microbit.scale-2.param-doc.to": { + "message": "Tupla chun an raon le tiontú chuige a shainiú.", + "description": "Parameter docs" + }, + "microbit.scale-2.param-name.value": { + "message": "luach", + "description": "(parameter name) A number to convert." + }, + "microbit.scale-2.param-doc.value": { + "message": "Uimhir le tiontú.", + "description": "Parameter docs" + }, + "microbit.sleep": { + "message": "codladh", + "description": "(function name) Wait for ``n`` milliseconds." + }, + "microbit.sleep.summary": { + "message": "Fan le haghaidh milleasoicindí {{n}} .", + "description": "Wait for ``n`` milliseconds." + }, + "microbit.sleep.param-name.n": { + "message": "n", + "description": "(parameter name) The number of milliseconds to wait" + }, + "microbit.sleep.param-doc.n": { + "message": "Líon na milleasoicindí le fanacht", + "description": "Parameter docs" + }, + "microbit.running_time": { + "message": "am reatha", + "description": "(function name) Get the running time of the board." + }, + "microbit.running_time.summary": { + "message": "Faigh am reatha an bhoird.", + "description": "Get the running time of the board." + }, + "microbit.temperature": { + "message": "teocht", + "description": "(function name) Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.temperature.summary": { + "message": "Faigh teocht an micro:bit i gcéimeanna Celsius.", + "description": "Get the temperature of the micro:bit in degrees Celsius." + }, + "microbit.set_volume": { + "message": "socraigh an toirt", + "description": "(function name) Sets the volume." + }, + "microbit.set_volume.summary": { + "message": "Socraigh an t-imleabhar.", + "description": "Sets the volume." + }, + "microbit.set_volume.param-name.v": { + "message": "v", + "description": "(parameter name) a value between 0 (low) and 255 (high)." + }, + "microbit.set_volume.param-doc.v": { + "message": "luach idir 0 (íseal) agus 255 (ard).", + "description": "Parameter docs" + }, + "microbit.Button": { + "message": "cnaipe", + "description": "(class name) The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.summary": { + "message": "An rang do na cnaipí {{button_a}} agus {{button_b}}.", + "description": "The class for the buttons ``button_a`` and ``button_b``." + }, + "microbit.Button.is_pressed": { + "message": "brúite", + "description": "(function name) Check if the button is pressed." + }, + "microbit.Button.is_pressed.summary": { + "message": "Seiceáil an bhfuil an cnaipe brúite.", + "description": "Check if the button is pressed." + }, + "microbit.Button.was_pressed": { + "message": "brúdh", + "description": "(function name) Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.was_pressed.summary": { + "message": "Seiceáil ar brúdh an cnaipe ó thosaigh an gléas nó an uair dheireanach a glaodh ar an modh seo.", + "description": "Check if the button was pressed since the device started or the last time this method was called." + }, + "microbit.Button.get_presses": { + "message": "faigh brúiteanna", + "description": "(function name) Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.Button.get_presses.summary": { + "message": "Faigh iomlán reatha na gcnaipí, agus athshocraíonn sé an t-iomlán seo\nnáid sula bhfillfidh tú.", + "description": "Get the running total of button presses, and resets this total\nto zero before returning." + }, + "microbit.button_a": { + "message": "cnaipe a", + "description": "(field name) The left button ``Button`` object." + }, + "microbit.button_a.summary": { + "message": "An cnaipe ar chlé {{Button}} réad.", + "description": "The left button ``Button`` object." + }, + "microbit.button_b": { + "message": "cnaipe b", + "description": "(field name) The right button ``Button`` object." + }, + "microbit.button_b.summary": { + "message": "An cnaipe ceart {{Button}} réad.", + "description": "The right button ``Button`` object." + }, + "microbit.MicroBitDigitalPin": { + "message": "microbitdigitalpin", + "description": "(class name) A digital pin." + }, + "microbit.MicroBitDigitalPin.summary": { + "message": "Biorán digiteach.", + "description": "A digital pin." + }, + "microbit.MicroBitDigitalPin.read_digital": { + "message": "léigh digiteach", + "description": "(function name) Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.read_digital.summary": { + "message": "Faigh luach digiteach an bhioráin.", + "description": "Get the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital": { + "message": "scríobh digiteach", + "description": "(function name) Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.summary": { + "message": "Socraigh luach digiteach an bhioráin.", + "description": "Set the digital value of the pin." + }, + "microbit.MicroBitDigitalPin.write_digital.param-name.value": { + "message": "luach", + "description": "(parameter name) 1 to set the pin high or 0 to set the pin low" + }, + "microbit.MicroBitDigitalPin.write_digital.param-doc.value": { + "message": "1 chun an pionna a shocrú ard nó 0 chun an pionna a shocrú íseal", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_pull": { + "message": "tarraingt socraithe", + "description": "(function name) Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.summary": { + "message": "Socraigh an staid tarraingthe go ceann de thrí luach féideartha: {{PULL_UP}}, {{PULL_DOWN}} nó {{NO_PULL}}.", + "description": "Set the pull state to one of three possible values: ``PULL_UP``, ``PULL_DOWN`` or ``NO_PULL``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-name.value": { + "message": "luach", + "description": "(parameter name) The pull state from the relevant pin, e.g. ``pin0.PULL_UP``." + }, + "microbit.MicroBitDigitalPin.set_pull.param-doc.value": { + "message": "An staid tarraingthe ón bioráin ábhartha, m.sh. {{pin0.PULL_UP}}.", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.get_pull": { + "message": "faigh socraithe", + "description": "(function name) Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_pull.summary": { + "message": "Faigh an stát tarraingt ar pionna.", + "description": "Get the pull state on a pin." + }, + "microbit.MicroBitDigitalPin.get_mode": { + "message": "mód faighte", + "description": "(function name) Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.get_mode.summary": { + "message": "Filleann an modh pionna.", + "description": "Returns the pin mode." + }, + "microbit.MicroBitDigitalPin.write_analog": { + "message": "scríobh analógach", + "description": "(function name) Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.summary": { + "message": "Aschuir comhartha PWM ar an bioráin, agus an timthriall dleachta comhréireach le {{value}}.", + "description": "Output a PWM signal on the pin, with the duty cycle proportional to ``value``." + }, + "microbit.MicroBitDigitalPin.write_analog.param-name.value": { + "message": "luach", + "description": "(parameter name) An integer or a floating point number between 0 (0% duty cycle) and 1023 (100% duty)." + }, + "microbit.MicroBitDigitalPin.write_analog.param-doc.value": { + "message": "Slánuimhir nó uimhir snámhphointe idir 0 (0% timthriall dleachta) agus 1023 (dleacht 100%).", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period": { + "message": "socraigh tréimhse analógach", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.summary": { + "message": "Socraigh tréimhse an chomhartha PWM atá á haschur go dtí {{period}} ina milleasoicindí.", + "description": "Set the period of the PWM signal being output to ``period`` in milliseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-name.period": { + "message": "tréimhse", + "description": "(parameter name) The period in milliseconds with a minimum valid value of 1ms." + }, + "microbit.MicroBitDigitalPin.set_analog_period.param-doc.period": { + "message": "An tréimhse ina milleasoicindí le luach bailí íosta de 1ms.", + "description": "Parameter docs" + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds": { + "message": "micreasoicindí tréimhse analógacha a shocrú", + "description": "(function name) Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.summary": { + "message": "Socraigh tréimhse an chomhartha PWM atá á haschur go dtí {{period}} i micrishoicindí.", + "description": "Set the period of the PWM signal being output to ``period`` in microseconds." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-name.period": { + "message": "tréimhse", + "description": "(parameter name) The period in microseconds with a minimum valid value of 256µs." + }, + "microbit.MicroBitDigitalPin.set_analog_period_microseconds.param-doc.period": { + "message": "An tréimhse i micrishoicindí le íosluach bailí de 256µs.", + "description": "Parameter docs" + }, + "microbit.MicroBitAnalogDigitalPin": { + "message": "microbitanalogdigitalpin", + "description": "(class name) A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.summary": { + "message": "Bioráin le gnéithe analógacha agus digiteacha.", + "description": "A pin with analog and digital features." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog": { + "message": "léigh analógach", + "description": "(function name) Read the voltage applied to the pin." + }, + "microbit.MicroBitAnalogDigitalPin.read_analog.summary": { + "message": "Léigh an voltas a chuirtear i bhfeidhm ar an biorán.", + "description": "Read the voltage applied to the pin." + }, + "microbit.MicroBitTouchPin": { + "message": "microbittouchpin", + "description": "(class name) A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.summary": { + "message": "Pionna le gnéithe analógacha, digiteacha agus tadhaill.", + "description": "A pin with analog, digital and touch features." + }, + "microbit.MicroBitTouchPin.is_touched": { + "message": "i dteagmháil", + "description": "(function name) Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.is_touched.summary": { + "message": "Seiceáil an bhfuil teagmháil á déanamh leis an biorán.", + "description": "Check if the pin is being touched." + }, + "microbit.MicroBitTouchPin.set_touch_mode": { + "message": "socraigh mód tadhaill", + "description": "(function name) Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.summary": { + "message": "Socraigh an modh tadhaill don pionna.", + "description": "Set the touch mode for the pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-name.value": { + "message": "luach", + "description": "(parameter name) ``CAPACITIVE`` or ``RESISTIVE`` from the relevant pin." + }, + "microbit.MicroBitTouchPin.set_touch_mode.param-doc.value": { + "message": "{{CAPACITIVE}} nó {{RESISTIVE}} ón pionna ábhartha.", + "description": "Parameter docs" + }, + "microbit.pin0": { + "message": "biorán0", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin0.summary": { + "message": "Pionna le gnéithe digiteacha, analógacha agus tadhaill.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin1": { + "message": "biorán1", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin1.summary": { + "message": "Bioráin le gnéithe digiteacha, analógacha agus tadhaill.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin2": { + "message": "biorán2", + "description": "(field name) Pin with digital, analog and touch features." + }, + "microbit.pin2.summary": { + "message": "Bioráin le gnéithe digiteacha, analógacha agus tadhaill.", + "description": "Pin with digital, analog and touch features." + }, + "microbit.pin3": { + "message": "biorán3", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin3.summary": { + "message": "Bioráin le gnéithe digiteacha agus analógacha.", + "description": "Pin with digital and analog features." + }, + "microbit.pin4": { + "message": "biorán4", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin4.summary": { + "message": "Bioráin le gnéithe digiteacha agus analógacha.", + "description": "Pin with digital and analog features." + }, + "microbit.pin5": { + "message": "biorán5", + "description": "(field name) Pin with digital features." + }, + "microbit.pin5.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin6": { + "message": "biorán6", + "description": "(field name) Pin with digital features." + }, + "microbit.pin6.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin7": { + "message": "biorán7", + "description": "(field name) Pin with digital features." + }, + "microbit.pin7.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin8": { + "message": "biorán8", + "description": "(field name) Pin with digital features." + }, + "microbit.pin8.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin9": { + "message": "biorán9", + "description": "(field name) Pin with digital features." + }, + "microbit.pin9.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin10": { + "message": "biorán10", + "description": "(field name) Pin with digital and analog features." + }, + "microbit.pin10.summary": { + "message": "Bioráin le gnéithe digiteacha agus analógacha.", + "description": "Pin with digital and analog features." + }, + "microbit.pin11": { + "message": "biorán11", + "description": "(field name) Pin with digital features." + }, + "microbit.pin11.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin12": { + "message": "biorán12", + "description": "(field name) Pin with digital features." + }, + "microbit.pin12.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin13": { + "message": "biorán 13", + "description": "(field name) Pin with digital features." + }, + "microbit.pin13.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin14": { + "message": "biorán14", + "description": "(field name) Pin with digital features." + }, + "microbit.pin14.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin15": { + "message": "biorán15", + "description": "(field name) Pin with digital features." + }, + "microbit.pin15.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin16": { + "message": "biorán16", + "description": "(field name) Pin with digital features." + }, + "microbit.pin16.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin19": { + "message": "biorán19", + "description": "(field name) Pin with digital features." + }, + "microbit.pin19.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin20": { + "message": "biorán20", + "description": "(field name) Pin with digital features." + }, + "microbit.pin20.summary": { + "message": "Bioráin le gnéithe digiteacha.", + "description": "Pin with digital features." + }, + "microbit.pin_logo": { + "message": "lógó bioráin", + "description": "(field name) A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_logo.summary": { + "message": "Biorán lógó íogair do theagmháil ar aghaidh an micro:bit, atá socraithe de réir réamhshocraithe go mód tadhaill toilleasach.", + "description": "A touch sensitive logo pin on the front of the micro:bit, which by default is set to capacitive touch mode." + }, + "microbit.pin_speaker": { + "message": "cainteoir bioráin", + "description": "(field name) A pin to address the micro:bit speaker." + }, + "microbit.pin_speaker.summary": { + "message": "Biorán chun an cainteoir micro:bit a sheoladh.", + "description": "A pin to address the micro:bit speaker." + }, + "microbit.Image": { + "message": "íomhá", + "description": "(class name) An image to show on the micro:bit LED display." + }, + "microbit.Image.summary": { + "message": "Íomhá le taispeáint ar an taispeáint micro:bit LED.", + "description": "An image to show on the micro:bit LED display." + }, + "microbit.Image.HEART": { + "message": "croí", + "description": "(field name) Heart image." + }, + "microbit.Image.HEART.summary": { + "message": "Íomhá chroí.", + "description": "Heart image." + }, + "microbit.Image.HEART_SMALL": { + "message": "croí beag", + "description": "(field name) Small heart image." + }, + "microbit.Image.HEART_SMALL.summary": { + "message": "Íomhá bheag chroí.", + "description": "Small heart image." + }, + "microbit.Image.HAPPY": { + "message": "sásta", + "description": "(field name) Happy face image." + }, + "microbit.Image.HAPPY.summary": { + "message": "Íomhá aghaidhe sona.", + "description": "Happy face image." + }, + "microbit.Image.SMILE": { + "message": "aoibh gháire", + "description": "(field name) Smiling mouth image." + }, + "microbit.Image.SMILE.summary": { + "message": "Íomhá béil ag gáire.", + "description": "Smiling mouth image." + }, + "microbit.Image.SAD": { + "message": "brónach", + "description": "(field name) Sad face image." + }, + "microbit.Image.SAD.summary": { + "message": "Íomhá aghaidhe brónach.", + "description": "Sad face image." + }, + "microbit.Image.CONFUSED": { + "message": "mearbhall", + "description": "(field name) Confused face image." + }, + "microbit.Image.CONFUSED.summary": { + "message": "Íomhá aghaidhe mearbhall.", + "description": "Confused face image." + }, + "microbit.Image.ANGRY": { + "message": "feargach", + "description": "(field name) Angry face image." + }, + "microbit.Image.ANGRY.summary": { + "message": "Íomhá aghaidh feargach.", + "description": "Angry face image." + }, + "microbit.Image.ASLEEP": { + "message": "ina chodladh", + "description": "(field name) Sleeping face image." + }, + "microbit.Image.ASLEEP.summary": { + "message": "Íomhá aghaidhe codlata.", + "description": "Sleeping face image." + }, + "microbit.Image.SURPRISED": { + "message": "ionadh", + "description": "(field name) Surprised face image." + }, + "microbit.Image.SURPRISED.summary": { + "message": "Íomhá aghaidhe ionadh.", + "description": "Surprised face image." + }, + "microbit.Image.SILLY": { + "message": "amaideach", + "description": "(field name) Silly face image." + }, + "microbit.Image.SILLY.summary": { + "message": "Íomhá aghaidh amaideach.", + "description": "Silly face image." + }, + "microbit.Image.FABULOUS": { + "message": "iontach", + "description": "(field name) Sunglasses face image." + }, + "microbit.Image.FABULOUS.summary": { + "message": "Íomhá aghaidhe spéaclaí gréine.", + "description": "Sunglasses face image." + }, + "microbit.Image.MEH": { + "message": "meh", + "description": "(field name) Unimpressed face image." + }, + "microbit.Image.MEH.summary": { + "message": "Íomhá aghaidhe neamhbhrúite.", + "description": "Unimpressed face image." + }, + "microbit.Image.YES": { + "message": "tá", + "description": "(field name) Tick image." + }, + "microbit.Image.YES.summary": { + "message": "Cuir tic leis an íomhá.", + "description": "Tick image." + }, + "microbit.Image.NO": { + "message": "níl", + "description": "(field name) Cross image." + }, + "microbit.Image.NO.summary": { + "message": "Íomhá croise.", + "description": "Cross image." + }, + "microbit.Image.CLOCK12": { + "message": "clog12", + "description": "(field name) Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK12.summary": { + "message": "Íomhá le líne dírithe ar 12 a chlog.", + "description": "Image with line pointing to 12 o'clock." + }, + "microbit.Image.CLOCK11": { + "message": "clog11", + "description": "(field name) Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK11.summary": { + "message": "Íomhá le líne dírithe ar 11 a chlog.", + "description": "Image with line pointing to 11 o'clock." + }, + "microbit.Image.CLOCK10": { + "message": "clog10", + "description": "(field name) Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK10.summary": { + "message": "Íomhá le líne dírithe ar 10 a chlog.", + "description": "Image with line pointing to 10 o'clock." + }, + "microbit.Image.CLOCK9": { + "message": "clog9", + "description": "(field name) Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK9.summary": { + "message": "Íomhá le líne dírithe go dtí 9 a chlog.", + "description": "Image with line pointing to 9 o'clock." + }, + "microbit.Image.CLOCK8": { + "message": "clog8", + "description": "(field name) Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK8.summary": { + "message": "Íomhá le líne dírithe go dtí 8 a chlog.", + "description": "Image with line pointing to 8 o'clock." + }, + "microbit.Image.CLOCK7": { + "message": "clog7", + "description": "(field name) Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK7.summary": { + "message": "Íomhá le líne dírithe go dtí 7 a chlog.", + "description": "Image with line pointing to 7 o'clock." + }, + "microbit.Image.CLOCK6": { + "message": "clog6", + "description": "(field name) Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK6.summary": { + "message": "Íomhá le líne ag díriú go dtí 6 a chlog.", + "description": "Image with line pointing to 6 o'clock." + }, + "microbit.Image.CLOCK5": { + "message": "clog5", + "description": "(field name) Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK5.summary": { + "message": "Íomhá le líne dírithe go dtí 5 a chlog.", + "description": "Image with line pointing to 5 o'clock." + }, + "microbit.Image.CLOCK4": { + "message": "clog4", + "description": "(field name) Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK4.summary": { + "message": "Íomhá le líne dírithe go dtí 4 a chlog.", + "description": "Image with line pointing to 4 o'clock." + }, + "microbit.Image.CLOCK3": { + "message": "clog3", + "description": "(field name) Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK3.summary": { + "message": "Íomhá le líne dírithe go dtí 3 a chlog.", + "description": "Image with line pointing to 3 o'clock." + }, + "microbit.Image.CLOCK2": { + "message": "clog2", + "description": "(field name) Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK2.summary": { + "message": "Íomhá le líne ag díriú go dtí 2 a chlog.", + "description": "Image with line pointing to 2 o'clock." + }, + "microbit.Image.CLOCK1": { + "message": "clog1", + "description": "(field name) Image with line pointing to 1 o'clock." + }, + "microbit.Image.CLOCK1.summary": { + "message": "Íomhá le líne ag díriú go dtí 1 a chlog.", + "description": "Image with line pointing to 1 o'clock." + }, + "microbit.Image.ARROW_N": { + "message": "saighead n", + "description": "(field name) Image of arrow pointing north." + }, + "microbit.Image.ARROW_N.summary": { + "message": "Íomhá na saigheade dírithe ó thuaidh.", + "description": "Image of arrow pointing north." + }, + "microbit.Image.ARROW_NE": { + "message": "saighead ne", + "description": "(field name) Image of arrow pointing north east." + }, + "microbit.Image.ARROW_NE.summary": { + "message": "Íomhá na saigheade dírithe soir ó thuaidh.", + "description": "Image of arrow pointing north east." + }, + "microbit.Image.ARROW_E": { + "message": "saighead e", + "description": "(field name) Image of arrow pointing east." + }, + "microbit.Image.ARROW_E.summary": { + "message": "Íomhá na saigheade dírithe ar an taobh thoir.", + "description": "Image of arrow pointing east." + }, + "microbit.Image.ARROW_SE": { + "message": "saighead se", + "description": "(field name) Image of arrow pointing south east." + }, + "microbit.Image.ARROW_SE.summary": { + "message": "Íomhá na saigheade dírithe soir ó dheas.", + "description": "Image of arrow pointing south east." + }, + "microbit.Image.ARROW_S": { + "message": "saighead s", + "description": "(field name) Image of arrow pointing south." + }, + "microbit.Image.ARROW_S.summary": { + "message": "Íomhá na saigheade dírithe ó dheas.", + "description": "Image of arrow pointing south." + }, + "microbit.Image.ARROW_SW": { + "message": "saighead sw", + "description": "(field name) Image of arrow pointing south west." + }, + "microbit.Image.ARROW_SW.summary": { + "message": "Íomhá na saigheade dírithe siar ó dheas.", + "description": "Image of arrow pointing south west." + }, + "microbit.Image.ARROW_W": { + "message": "saighead w", + "description": "(field name) Image of arrow pointing west." + }, + "microbit.Image.ARROW_W.summary": { + "message": "Íomhá den tsaighead atá dírithe siar.", + "description": "Image of arrow pointing west." + }, + "microbit.Image.ARROW_NW": { + "message": "saighead nw", + "description": "(field name) Image of arrow pointing north west." + }, + "microbit.Image.ARROW_NW.summary": { + "message": "Íomhá na saigheade dírithe siar ó thuaidh.", + "description": "Image of arrow pointing north west." + }, + "microbit.Image.TRIANGLE": { + "message": "triantán", + "description": "(field name) Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE.summary": { + "message": "Íomhá de thriantán ag pointeáil suas.", + "description": "Image of a triangle pointing up." + }, + "microbit.Image.TRIANGLE_LEFT": { + "message": "triantán ar chlé", + "description": "(field name) Image of a triangle in the left corner." + }, + "microbit.Image.TRIANGLE_LEFT.summary": { + "message": "Íomhá de thriantán sa chúinne ar chlé.", + "description": "Image of a triangle in the left corner." + }, + "microbit.Image.CHESSBOARD": { + "message": "clár fichille", + "description": "(field name) Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.CHESSBOARD.summary": { + "message": "Soilse LEDs malartacha i bpatrún clár fichille.", + "description": "Alternate LEDs lit in a chessboard pattern." + }, + "microbit.Image.DIAMOND": { + "message": "diamant", + "description": "(field name) Diamond image." + }, + "microbit.Image.DIAMOND.summary": { + "message": "Íomhá diamant.", + "description": "Diamond image." + }, + "microbit.Image.DIAMOND_SMALL": { + "message": "diamant beag", + "description": "(field name) Small diamond image." + }, + "microbit.Image.DIAMOND_SMALL.summary": { + "message": "Íomhá diamant beag.", + "description": "Small diamond image." + }, + "microbit.Image.SQUARE": { + "message": "cearnóg", + "description": "(field name) Square image." + }, + "microbit.Image.SQUARE.summary": { + "message": "Íomhá cearnóg.", + "description": "Square image." + }, + "microbit.Image.SQUARE_SMALL": { + "message": "cearnach beag", + "description": "(field name) Small square image." + }, + "microbit.Image.SQUARE_SMALL.summary": { + "message": "Íomhá beag cearnach.", + "description": "Small square image." + }, + "microbit.Image.RABBIT": { + "message": "coinín", + "description": "(field name) Rabbit image." + }, + "microbit.Image.RABBIT.summary": { + "message": "Íomhá coinín.", + "description": "Rabbit image." + }, + "microbit.Image.COW": { + "message": "bó", + "description": "(field name) Cow image." + }, + "microbit.Image.COW.summary": { + "message": "Íomhá bó.", + "description": "Cow image." + }, + "microbit.Image.MUSIC_CROTCHET": { + "message": "croiséad ceoil", + "description": "(field name) Crotchet note image." + }, + "microbit.Image.MUSIC_CROTCHET.summary": { + "message": "Íomhá nóta cróise.", + "description": "Crotchet note image." + }, + "microbit.Image.MUSIC_QUAVER": { + "message": "cuais cheoil", + "description": "(field name) Quaver note image." + }, + "microbit.Image.MUSIC_QUAVER.summary": { + "message": "Creathán nóta íomhá.", + "description": "Quaver note image." + }, + "microbit.Image.MUSIC_QUAVERS": { + "message": "cuacha ceoil", + "description": "(field name) Pair of quavers note image." + }, + "microbit.Image.MUSIC_QUAVERS.summary": { + "message": "Íomhá de nótaí péire ochtú comhartha.", + "description": "Pair of quavers note image." + }, + "microbit.Image.PITCHFORK": { + "message": "forc-pice", + "description": "(field name) Pitchfork image." + }, + "microbit.Image.PITCHFORK.summary": { + "message": "Íomhá forc pice.", + "description": "Pitchfork image." + }, + "microbit.Image.XMAS": { + "message": "nollag", + "description": "(field name) Christmas tree image." + }, + "microbit.Image.XMAS.summary": { + "message": "Íomhá crann Nollag.", + "description": "Christmas tree image." + }, + "microbit.Image.PACMAN": { + "message": "pacman", + "description": "(field name) Pac-Man arcade character image." + }, + "microbit.Image.PACMAN.summary": { + "message": "Íomhá carachtar stuara PAC-Man.", + "description": "Pac-Man arcade character image." + }, + "microbit.Image.TARGET": { + "message": "sprioc", + "description": "(field name) Target image." + }, + "microbit.Image.TARGET.summary": { + "message": "Íomhá sprice.", + "description": "Target image." + }, + "microbit.Image.TSHIRT": { + "message": "léine-t", + "description": "(field name) T-shirt image." + }, + "microbit.Image.TSHIRT.summary": { + "message": "Íomhá T-léine.", + "description": "T-shirt image." + }, + "microbit.Image.ROLLERSKATE": { + "message": "scátáil-rollála", + "description": "(field name) Rollerskate image." + }, + "microbit.Image.ROLLERSKATE.summary": { + "message": "Íomhá scátáil-rollála.", + "description": "Rollerskate image." + }, + "microbit.Image.DUCK": { + "message": "lacha", + "description": "(field name) Duck image." + }, + "microbit.Image.DUCK.summary": { + "message": "Íomhá lacha.", + "description": "Duck image." + }, + "microbit.Image.HOUSE": { + "message": "teach", + "description": "(field name) House image." + }, + "microbit.Image.HOUSE.summary": { + "message": "Íomhá tí.", + "description": "House image." + }, + "microbit.Image.TORTOISE": { + "message": "toirtís", + "description": "(field name) Tortoise image." + }, + "microbit.Image.TORTOISE.summary": { + "message": "Íomhá turtar.", + "description": "Tortoise image." + }, + "microbit.Image.BUTTERFLY": { + "message": "féileacán", + "description": "(field name) Butterfly image." + }, + "microbit.Image.BUTTERFLY.summary": { + "message": "Íomhá féileacán.", + "description": "Butterfly image." + }, + "microbit.Image.STICKFIGURE": { + "message": "figiúr-maide", + "description": "(field name) Stick figure image." + }, + "microbit.Image.STICKFIGURE.summary": { + "message": "Bata íomhá figiúr.", + "description": "Stick figure image." + }, + "microbit.Image.GHOST": { + "message": "taibhse", + "description": "(field name) Ghost image." + }, + "microbit.Image.GHOST.summary": { + "message": "Íomhá taibhse.", + "description": "Ghost image." + }, + "microbit.Image.SWORD": { + "message": "claíomh", + "description": "(field name) Sword image." + }, + "microbit.Image.SWORD.summary": { + "message": "Íomhá chlaíomh.", + "description": "Sword image." + }, + "microbit.Image.GIRAFFE": { + "message": "sioráf", + "description": "(field name) Giraffe image." + }, + "microbit.Image.GIRAFFE.summary": { + "message": "Íomhá sioráf.", + "description": "Giraffe image." + }, + "microbit.Image.SKULL": { + "message": "cloigeann", + "description": "(field name) Skull image." + }, + "microbit.Image.SKULL.summary": { + "message": "Íomhá cloigeann.", + "description": "Skull image." + }, + "microbit.Image.UMBRELLA": { + "message": "scáth fearthainne", + "description": "(field name) Umbrella image." + }, + "microbit.Image.UMBRELLA.summary": { + "message": "Íomhá scáth fearthainne.", + "description": "Umbrella image." + }, + "microbit.Image.SNAKE": { + "message": "nathair", + "description": "(field name) Snake image." + }, + "microbit.Image.SNAKE.summary": { + "message": "Íomhá nathair.", + "description": "Snake image." + }, + "microbit.Image.SCISSORS": { + "message": "siosúr", + "description": "(field name) Scissors image." + }, + "microbit.Image.SCISSORS.summary": { + "message": "Íomhá siosúr.", + "description": "Scissors image." + }, + "microbit.Image.ALL_CLOCKS": { + "message": "gach clog", + "description": "(field name) A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_CLOCKS.summary": { + "message": "Liosta ina bhfuil na híomhánna CLOCK_ go léir in ord.", + "description": "A list containing all the CLOCK_ images in sequence." + }, + "microbit.Image.ALL_ARROWS": { + "message": "gach saighead", + "description": "(field name) A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.ALL_ARROWS.summary": { + "message": "Liosta ina bhfuil na híomhánna ARROW_ go léir in ord.", + "description": "A list containing all the ARROW_ images in sequence." + }, + "microbit.Image.__init__-1": { + "message": "init", + "description": "(function name) Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.summary": { + "message": "Cruthaigh íomhá ó theaghrán ag cur síos ar na soilse atá lasta.", + "description": "Create an image from a string describing which LEDs are lit." + }, + "microbit.Image.__init__-1.param-name.string": { + "message": "teaghrán", + "description": "(parameter name) The string describing the image." + }, + "microbit.Image.__init__-1.param-doc.string": { + "message": "An teaghrán ag cur síos ar an íomhá.", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2": { + "message": "init", + "description": "(function name) Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.summary": { + "message": "Cruthaigh íomhá fholamh le colúin {{width}} agus sraitheanna {{height}} .", + "description": "Create an empty image with ``width`` columns and ``height`` rows." + }, + "microbit.Image.__init__-2.param-name.buffer": { + "message": "maolán", + "description": "(parameter name) Optional array or bytes of ``width``×``height`` integers in range 0-9 to initialize the image" + }, + "microbit.Image.__init__-2.param-doc.buffer": { + "message": "Eagar roghnach nó bearta de {{width}}×{{height}} slánuimhreacha i raon 0-9 chun an íomhá a thúsú", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.height": { + "message": "airde", + "description": "(parameter name) Optional height of the image" + }, + "microbit.Image.__init__-2.param-doc.height": { + "message": "Airde roghnach na híomhá", + "description": "Parameter docs" + }, + "microbit.Image.__init__-2.param-name.width": { + "message": "leithead", + "description": "(parameter name) Optional width of the image" + }, + "microbit.Image.__init__-2.param-doc.width": { + "message": "Leithead roghnach na híomhá", + "description": "Parameter docs" + }, + "microbit.Image.width": { + "message": "leithead", + "description": "(function name) Get the number of columns." + }, + "microbit.Image.width.summary": { + "message": "Faigh líon na gcolún.", + "description": "Get the number of columns." + }, + "microbit.Image.height": { + "message": "airde", + "description": "(function name) Get the number of rows." + }, + "microbit.Image.height.summary": { + "message": "Faigh líon na sraitheanna.", + "description": "Get the number of rows." + }, + "microbit.Image.set_pixel": { + "message": "socraigh picteilín", + "description": "(function name) Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.summary": { + "message": "Socraigh gile picteilín.", + "description": "Set the brightness of a pixel." + }, + "microbit.Image.set_pixel.param-name.value": { + "message": "luach", + "description": "(parameter name) The brightness as an integer between 0 (dark) and 9 (bright)" + }, + "microbit.Image.set_pixel.param-doc.value": { + "message": "An ghile mar shlánuimhir idir 0 (dorcha) agus 9 (geal)", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.set_pixel.param-doc.x": { + "message": "Uimhir an cholúin", + "description": "Parameter docs" + }, + "microbit.Image.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.set_pixel.param-doc.y": { + "message": "Uimhir an ró", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel": { + "message": "faigh picteilín", + "description": "(function name) Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.summary": { + "message": "Faigh gile picteilín.", + "description": "Get the brightness of a pixel." + }, + "microbit.Image.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The column number" + }, + "microbit.Image.get_pixel.param-doc.x": { + "message": "Uimhir an cholúin", + "description": "Parameter docs" + }, + "microbit.Image.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The row number" + }, + "microbit.Image.get_pixel.param-doc.y": { + "message": "Uimhir na sraithe", + "description": "Parameter docs" + }, + "microbit.Image.shift_left": { + "message": "shift ar chlé", + "description": "(function name) Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.summary": { + "message": "Cruthaigh íomhá nua tríd an bpictiúr ar chlé a athrú.", + "description": "Create a new image by shifting the picture left." + }, + "microbit.Image.shift_left.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_left.param-doc.n": { + "message": "Líon na gcolún atá le haistriú ag", + "description": "Parameter docs" + }, + "microbit.Image.shift_right": { + "message": "shift ar dheis", + "description": "(function name) Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.summary": { + "message": "Cruthaigh íomhá nua tríd an bpictiúr a athrú ar dheis.", + "description": "Create a new image by shifting the picture right." + }, + "microbit.Image.shift_right.param-name.n": { + "message": "n", + "description": "(parameter name) The number of columns to shift by" + }, + "microbit.Image.shift_right.param-doc.n": { + "message": "Líon na gcolún le haistriú", + "description": "Parameter docs" + }, + "microbit.Image.shift_up": { + "message": "shift suas", + "description": "(function name) Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.summary": { + "message": "Cruthaigh íomhá nua tríd an bpictiúr a athrú suas.", + "description": "Create a new image by shifting the picture up." + }, + "microbit.Image.shift_up.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_up.param-doc.n": { + "message": "Líon na rónna le hathrú ag", + "description": "Parameter docs" + }, + "microbit.Image.shift_down": { + "message": "shift síos", + "description": "(function name) Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.summary": { + "message": "Cruthaigh íomhá nua tríd an bpictiúr a aistriú síos.", + "description": "Create a new image by shifting the picture down." + }, + "microbit.Image.shift_down.param-name.n": { + "message": "n", + "description": "(parameter name) The number of rows to shift by" + }, + "microbit.Image.shift_down.param-doc.n": { + "message": "Líon na rónna le haistriú", + "description": "Parameter docs" + }, + "microbit.Image.crop": { + "message": "barr", + "description": "(function name) Create a new image by cropping the picture." + }, + "microbit.Image.crop.summary": { + "message": "Cruthaigh íomhá nua tríd an bpictiúr a bearradh.", + "description": "Create a new image by cropping the picture." + }, + "microbit.Image.crop.param-name.h": { + "message": "h", + "description": "(parameter name) The crop height" + }, + "microbit.Image.crop.param-doc.h": { + "message": "An airde barr", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.w": { + "message": "w", + "description": "(parameter name) The crop width" + }, + "microbit.Image.crop.param-doc.w": { + "message": "An leithead barr", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.x": { + "message": "x", + "description": "(parameter name) The crop offset column" + }, + "microbit.Image.crop.param-doc.x": { + "message": "An colún fritháireamh barr", + "description": "Parameter docs" + }, + "microbit.Image.crop.param-name.y": { + "message": "y", + "description": "(parameter name) The crop offset row" + }, + "microbit.Image.crop.param-doc.y": { + "message": "An ró fritháireamh barr", + "description": "Parameter docs" + }, + "microbit.Image.copy": { + "message": "cóip", + "description": "(function name) Create an exact copy of the image." + }, + "microbit.Image.copy.summary": { + "message": "Cruthaigh cóip chruinn den íomhá.", + "description": "Create an exact copy of the image." + }, + "microbit.Image.invert": { + "message": "inbhéartaithe", + "description": "(function name) Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.invert.summary": { + "message": "Cruthaigh íomhá nua trí ghile na bpicteilíní a inbhéartú sa\níomhá foinseach.", + "description": "Create a new image by inverting the brightness of the pixels in the\nsource image." + }, + "microbit.Image.fill": { + "message": "líon", + "description": "(function name) Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.summary": { + "message": "Socraigh gile na bpicteilíní go léir san íomhá.", + "description": "Set the brightness of all the pixels in the image." + }, + "microbit.Image.fill.param-name.value": { + "message": "luach", + "description": "(parameter name) The new brightness as a number between 0 (dark) and 9 (bright)." + }, + "microbit.Image.fill.param-doc.value": { + "message": "An gile nua mar uimhir idir 0 (dorcha) agus 9 (geal).", + "description": "Parameter docs" + }, + "microbit.Image.blit": { + "message": "blit", + "description": "(function name) Copy an area from another image into this image." + }, + "microbit.Image.blit.summary": { + "message": "Cóipeáil limistéar ó íomhá eile isteach san íomhá seo.", + "description": "Copy an area from another image into this image." + }, + "microbit.Image.blit.param-name.h": { + "message": "h", + "description": "(parameter name) The number of rows to copy" + }, + "microbit.Image.blit.param-doc.h": { + "message": "Líon na rónna le cóipeáil", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.src": { + "message": "src", + "description": "(parameter name) The source image" + }, + "microbit.Image.blit.param-doc.src": { + "message": "An íomhá fhoinseach", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.w": { + "message": "w", + "description": "(parameter name) The number of columns to copy" + }, + "microbit.Image.blit.param-doc.w": { + "message": "Líon na gcolún le cóipeáil", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.x": { + "message": "x", + "description": "(parameter name) The starting column offset in the source image" + }, + "microbit.Image.blit.param-doc.x": { + "message": "Fritháireamh an cholúin tosaigh san íomhá fhoinseach", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.xdest": { + "message": "xdest", + "description": "(parameter name) The column offset to modify in this image" + }, + "microbit.Image.blit.param-doc.xdest": { + "message": "Fritháireamh an cholúin le mionathrú san íomhá seo", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.y": { + "message": "y", + "description": "(parameter name) The starting row offset in the source image" + }, + "microbit.Image.blit.param-doc.y": { + "message": "Fritháireamh an ró tosaigh san íomhá foinseach", + "description": "Parameter docs" + }, + "microbit.Image.blit.param-name.ydest": { + "message": "ydest", + "description": "(parameter name) The row offset to modify in this image" + }, + "microbit.Image.blit.param-doc.ydest": { + "message": "Fritháireamh an ró le mionathrú san íomhá seo", + "description": "Parameter docs" + }, + "microbit.Image.__repr__": { + "message": "repr", + "description": "(function name) Get a compact string representation of the image." + }, + "microbit.Image.__repr__.summary": { + "message": "Faigh léiriú teaghrán dlúth ar an íomhá.", + "description": "Get a compact string representation of the image." + }, + "microbit.Image.__str__": { + "message": "str", + "description": "(function name) Get a readable string representation of the image." + }, + "microbit.Image.__str__.summary": { + "message": "Faigh léiriú teaghrán inléite ar an íomhá.", + "description": "Get a readable string representation of the image." + }, + "microbit.Image.__add__": { + "message": "suimigh", + "description": "(function name) Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.summary": { + "message": "Cruthaigh íomhá nua trí na luachanna gile ón dá cheann a chur leis\níomhánna do gach picteilín.", + "description": "Create a new image by adding the brightness values from the two\nimages for each pixel." + }, + "microbit.Image.__add__.param-name.other": { + "message": "eile", + "description": "(parameter name) The image to add." + }, + "microbit.Image.__add__.param-doc.other": { + "message": "An íomhá le cur leis.", + "description": "Parameter docs" + }, + "microbit.Image.__sub__": { + "message": "sub", + "description": "(function name) Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.summary": { + "message": "Cruthaigh íomhá nua trí luachanna gile an\níomhá eile ón íomhá seo.", + "description": "Create a new image by subtracting the brightness values of the\nother image from this image." + }, + "microbit.Image.__sub__.param-name.other": { + "message": "eile", + "description": "(parameter name) The image to subtract." + }, + "microbit.Image.__sub__.param-doc.other": { + "message": "An íomhá a dhealú.", + "description": "Parameter docs" + }, + "microbit.Image.__mul__": { + "message": "mul", + "description": "(function name) Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.summary": { + "message": "Cruthaigh íomhá nua trí ghile gach picteilín a iolrú faoi\n{{n}}.", + "description": "Create a new image by multiplying the brightness of each pixel by\n``n``." + }, + "microbit.Image.__mul__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to multiply by." + }, + "microbit.Image.__mul__.param-doc.n": { + "message": "An luach a iolrú faoi.", + "description": "Parameter docs" + }, + "microbit.Image.__truediv__": { + "message": "truediv", + "description": "(function name) Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.summary": { + "message": "Cruthaigh íomhá nua trí ghile gach picteilín a roinnt ar\n{{n}}.", + "description": "Create a new image by dividing the brightness of each pixel by\n``n``." + }, + "microbit.Image.__truediv__.param-name.n": { + "message": "n", + "description": "(parameter name) The value to divide by." + }, + "microbit.Image.__truediv__.param-doc.n": { + "message": "An luach a roinnt ar.", + "description": "Parameter docs" + }, + "microbit.SoundEvent.LOUD": { + "message": "ard", + "description": "(field name) Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.LOUD.summary": { + "message": "Léiríonn sé aistriú imeachtaí fuaime, ó {{quiet}} go {{loud}} cosúil le bualadh nó béicíl.", + "description": "Represents the transition of sound events, from ``quiet`` to ``loud`` like clapping or shouting." + }, + "microbit.SoundEvent.QUIET": { + "message": "ciúin", + "description": "(field name) Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.SoundEvent.QUIET.summary": { + "message": "Léiríonn sé seo aistriú imeachtaí fuaime, ó {{loud}} go {{quiet}} cosúil le ceol labhartha nó cúlra.", + "description": "Represents the transition of sound events, from ``loud`` to ``quiet`` like speaking or background music." + }, + "microbit.Sound": { + "message": "fuaim", + "description": "(class name) The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.summary": { + "message": "Is féidir na fuaimeanna tógtha a ghlaoch ag baint úsáide as {{audio.play(Sound.NAME)}}.", + "description": "The built-in sounds can be called using ``audio.play(Sound.NAME)``." + }, + "microbit.Sound.GIGGLE": { + "message": "scig-gháire", + "description": "(field name) Giggling sound." + }, + "microbit.Sound.GIGGLE.summary": { + "message": "Fuaim scig-gháire.", + "description": "Giggling sound." + }, + "microbit.Sound.HAPPY": { + "message": "sásta", + "description": "(field name) Happy sound." + }, + "microbit.Sound.HAPPY.summary": { + "message": "Fuaim shona.", + "description": "Happy sound." + }, + "microbit.Sound.HELLO": { + "message": "dia duit", + "description": "(field name) Greeting sound." + }, + "microbit.Sound.HELLO.summary": { + "message": "Fuaime beannacht.", + "description": "Greeting sound." + }, + "microbit.Sound.MYSTERIOUS": { + "message": "mistéireach", + "description": "(field name) Mysterious sound." + }, + "microbit.Sound.MYSTERIOUS.summary": { + "message": "Fuaim mhistéireach.", + "description": "Mysterious sound." + }, + "microbit.Sound.SAD": { + "message": "brónach", + "description": "(field name) Sad sound." + }, + "microbit.Sound.SAD.summary": { + "message": "Fuaim bhrónach.", + "description": "Sad sound." + }, + "microbit.Sound.SLIDE": { + "message": "sleamhnán", + "description": "(field name) Sliding sound." + }, + "microbit.Sound.SLIDE.summary": { + "message": "Fuaim sleamhnáin.", + "description": "Sliding sound." + }, + "microbit.Sound.SOARING": { + "message": "téagartha", + "description": "(field name) Soaring sound." + }, + "microbit.Sound.SOARING.summary": { + "message": "Fuaim téagartha.", + "description": "Soaring sound." + }, + "microbit.Sound.SPRING": { + "message": "an t-earrach", + "description": "(field name) Spring sound." + }, + "microbit.Sound.SPRING.summary": { + "message": "Fuaim an earraigh.", + "description": "Spring sound." + }, + "microbit.Sound.TWINKLE": { + "message": "drithligh", + "description": "(field name) Twinkling sound." + }, + "microbit.Sound.TWINKLE.summary": { + "message": "Fuaim drithligh.", + "description": "Twinkling sound." + }, + "microbit.Sound.YAWN": { + "message": "méanfach", + "description": "(field name) Yawning sound." + }, + "microbit.Sound.YAWN.summary": { + "message": "Fuaim méanfach.", + "description": "Yawning sound." + }, + "microbit.accelerometer": { + "message": "luasmhéadar", + "description": "(module name) Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.summary": { + "message": "Tomhais luasghéarú an micro:bit agus aithin gothaí.", + "description": "Measure the acceleration of the micro:bit and recognise gestures." + }, + "microbit.accelerometer.get_x": { + "message": "faigh x", + "description": "(function name) Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_x.summary": { + "message": "Faigh an tomhas luasghéaraithe san ais {{x}} i milli-g.", + "description": "Get the acceleration measurement in the ``x`` axis in milli-g." + }, + "microbit.accelerometer.get_y": { + "message": "faigh y", + "description": "(function name) Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_y.summary": { + "message": "Faigh an tomhas luasghéaraithe san ais {{y}} i milli-g.", + "description": "Get the acceleration measurement in the ``y`` axis in milli-g." + }, + "microbit.accelerometer.get_z": { + "message": "faigh z", + "description": "(function name) Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_z.summary": { + "message": "Faigh an tomhas luasghéaraithe san ais {{z}} i milli-g.", + "description": "Get the acceleration measurement in the ``z`` axis in milli-g." + }, + "microbit.accelerometer.get_values": { + "message": "faigh luachanna", + "description": "(function name) Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_values.summary": { + "message": "Faigh na tomhais luasghéaraithe i ngach aiseanna ag an am céanna mar tuple.", + "description": "Get the acceleration measurements in all axes at once as a tuple." + }, + "microbit.accelerometer.get_strength": { + "message": "faigh neart", + "description": "(function name) Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.get_strength.summary": { + "message": "Faigh tomhas luasghéaraithe na n-aiseanna go léir le chéile, mar shlánuimhir dhearfach. Is é seo suim Pythagorean na n-aiseanna X, Y agus Z.", + "description": "Get the acceleration measurement of all axes combined, as a positive integer. This is the Pythagorean sum of the X, Y and Z axes." + }, + "microbit.accelerometer.current_gesture": { + "message": "gotha ​​reatha", + "description": "(function name) Get the name of the current gesture." + }, + "microbit.accelerometer.current_gesture.summary": { + "message": "Faigh ainm an chomhartha reatha.", + "description": "Get the name of the current gesture." + }, + "microbit.accelerometer.is_gesture": { + "message": "is gotha", + "description": "(function name) Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.summary": { + "message": "Seiceáil an bhfuil an comhartha ainmnithe gníomhach faoi láthair.", + "description": "Check if the named gesture is currently active." + }, + "microbit.accelerometer.is_gesture.param-name.name": { + "message": "ainm", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.is_gesture.param-doc.name": { + "message": "An t-ainm gotha.", + "description": "Parameter docs" + }, + "microbit.accelerometer.was_gesture": { + "message": "bhí gotha", + "description": "(function name) Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.summary": { + "message": "Seiceáil an raibh an comhartha ainmnithe gníomhach ón nglao deireanach.", + "description": "Check if the named gesture was active since the last call." + }, + "microbit.accelerometer.was_gesture.param-name.name": { + "message": "ainm", + "description": "(parameter name) The gesture name." + }, + "microbit.accelerometer.was_gesture.param-doc.name": { + "message": "Ainm an ghluaiseachta.", + "description": "Parameter docs" + }, + "microbit.accelerometer.get_gestures": { + "message": "faigh gothaí", + "description": "(function name) Return a tuple of the gesture history." + }, + "microbit.accelerometer.get_gestures.summary": { + "message": "Tabhair ar ais tuple de stair na gothaí.", + "description": "Return a tuple of the gesture history." + }, + "microbit.accelerometer.set_range": { + "message": "socraigh raon", + "description": "(function name) Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.summary": { + "message": "Socraigh an raon íogaireachta luasmhéadair, i g (domhantarraingt chaighdeánach), go dtí na luachanna is gaire a dtacaíonn na crua-earraí leo, agus mar sin cruinníonn sé le {{2}}, {{4}}, nó {{8}} g.", + "description": "Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g." + }, + "microbit.accelerometer.set_range.param-name.value": { + "message": "luach", + "description": "(parameter name) New range for the accelerometer, an integer in ``g``." + }, + "microbit.accelerometer.set_range.param-doc.value": { + "message": "Raon nua don luasmhéadar, slánuimhir i {{g}}.", + "description": "Parameter docs" + }, + "microbit.audio": { + "message": "fuaime", + "description": "(module name) Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.summary": { + "message": "Seinn fuaimeanna ag baint úsáide as an micro:bit (allmhairiú {{audio}} le haghaidh comhoiriúnacht V1).", + "description": "Play sounds using the micro:bit (import ``audio`` for V1 compatibility)." + }, + "microbit.audio.play": { + "message": "seinn", + "description": "(function name) Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.summary": { + "message": "Seinn fuaim-tógtha i, éifeacht fuaime nó frámaí fuaime saincheaptha.", + "description": "Play a built-in sound, sound effect or custom audio frames." + }, + "microbit.audio.play.param-name.pin": { + "message": "biorán", + "description": "(parameter name) An optional argument to specify the output pin can be used to override the default of ``pin0``. If we do not want any sound to play we can use ``pin=None``." + }, + "microbit.audio.play.param-doc.pin": { + "message": "Is féidir argóint roghnach chun an bioráin aschuir a shonrú a úsáid chun mainneachtain {{pin0}}a shárú. Mura dteastaíonn aon fhuaim uainn is féidir linn {{pin=None}}a úsáid.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.return_pin": { + "message": "biorán fillte", + "description": "(parameter name) Specifies a differential edge connector pin to connect to an external speaker instead of ground. This is ignored for the **V2** revision." + }, + "microbit.audio.play.param-doc.return_pin": { + "message": "Sonraíonn bioráin cónascaire imeall difreálach chun ceangal le cainteoir seachtrach in ionad na talún. Déantar neamhaird air seo don athbhreithniú **V2**.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.source": { + "message": "foinse", + "description": "(parameter name) A built-in ``Sound`` such as ``Sound.GIGGLE``, a ``SoundEffect`` or sample data as an iterable of ``AudioFrame`` objects." + }, + "microbit.audio.play.param-doc.source": { + "message": "{{Sound}} ionsuite amhail {{Sound.GIGGLE}}, {{SoundEffect}} nó sonraí samplacha mar athrá ar réada {{AudioFrame}}.", + "description": "Parameter docs" + }, + "microbit.audio.play.param-name.wait": { + "message": "fan", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the sound is complete." + }, + "microbit.audio.play.param-doc.wait": { + "message": "Má tá {{wait}} {{True}}, blocálfaidh an fheidhm seo go dtí go mbeidh an fhuaim críochnaithe.", + "description": "Parameter docs" + }, + "microbit.audio.is_playing": { + "message": "ag seinm", + "description": "(function name) Check whether a sound is playing." + }, + "microbit.audio.is_playing.summary": { + "message": "Seiceáil an bhfuil fuaim á seinm.", + "description": "Check whether a sound is playing." + }, + "microbit.audio.stop": { + "message": "stad", + "description": "(function name) Stop all audio playback." + }, + "microbit.audio.stop.summary": { + "message": "Stop gach athsheinm fuaime.", + "description": "Stop all audio playback." + }, + "microbit.audio.SoundEffect": { + "message": "éifeachtfuaime", + "description": "(class name) A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.summary": { + "message": "Éifeacht fuaime, comhdhéanta ag sraith paraiméadar cumraithe tríd an cruthaitheoir nó tréithe.", + "description": "A sound effect, composed by a set of parameters configured via the constructor or attributes." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE": { + "message": "tonnchruth síneas", + "description": "(field name) Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SINE.summary": { + "message": "Rogha tonn sine a úsáidtear don pharaiméadar {{waveform}} .", + "description": "Sine wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH": { + "message": "tonnfhad fiacail sábha", + "description": "(field name) Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SAWTOOTH.summary": { + "message": "Rogha tonn fiacail sábha a úsáidtear don pharaiméadar {{waveform}} .", + "description": "Sawtooth wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE": { + "message": "triantán tonnchrutha", + "description": "(field name) Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_TRIANGLE.summary": { + "message": "Rogha tonn triantáin a úsáidtear don pharaiméadar {{waveform}} .", + "description": "Triangle wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE": { + "message": "cearnóg tonnfhoirme", + "description": "(field name) Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_SQUARE.summary": { + "message": "Rogha tonn cearnach a úsáidtear don pharaiméadar {{waveform}} .", + "description": "Square wave option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE": { + "message": "torann tonnfhoirme", + "description": "(field name) Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.WAVEFORM_NOISE.summary": { + "message": "Rogha torainn a úsáidtear don pharaiméadar {{waveform}} .", + "description": "Noise option used for the ``waveform`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR": { + "message": "cruth líneach", + "description": "(field name) Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LINEAR.summary": { + "message": "Rogha idirshuíomh líneach a úsáidtear don pharaiméadar {{shape}} .", + "description": "Linear interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE": { + "message": "cruth cuar", + "description": "(field name) Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_CURVE.summary": { + "message": "Rogha idirshuíomh cuar a úsáidtear don pharaiméadar {{shape}} .", + "description": "Curve interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG": { + "message": "log cruth", + "description": "(field name) Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.SHAPE_LOG.summary": { + "message": "Rogha idirshuíomh logartamach a úsáidtear don pharaiméadar {{shape}} .", + "description": "Logarithmic interpolation option used for the ``shape`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE": { + "message": "fx aon cheann", + "description": "(field name) No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_NONE.summary": { + "message": "Níl aon rogha éifeachta in úsáid don pharaiméadar {{fx}} .", + "description": "No effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO": { + "message": "tremolo fx", + "description": "(field name) Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_TREMOLO.summary": { + "message": "Rogha éifeachta Tremolo a úsáidtear don pharaiméadar {{fx}} .", + "description": "Tremolo effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO": { + "message": "fx vibrato", + "description": "(field name) Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_VIBRATO.summary": { + "message": "Rogha éifeachta Vibrato a úsáidtear don pharaiméadar {{fx}} .", + "description": "Vibrato effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE": { + "message": "fx warble", + "description": "(field name) Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.FX_WARBLE.summary": { + "message": "Rogha éifeacht warble a úsáidtear le haghaidh an paraiméadar {{fx}} .", + "description": "Warble effect option used for the ``fx`` parameter." + }, + "microbit.audio.SoundEffect.freq_start": { + "message": "tús minicíochta", + "description": "(field name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_start.summary": { + "message": "Tosaigh minicíocht i Hertz (Hz), uimhir idir {{0}} agus {{9999}}", + "description": "Start frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end": { + "message": "deireadh freq", + "description": "(field name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.freq_end.summary": { + "message": "Minicíocht deiridh i Heirts (Hz), uimhir idir {{0}} agus {{9999}}", + "description": "End frequency in Hertz (Hz), a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration": { + "message": "fad", + "description": "(field name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.duration.summary": { + "message": "Fad na fuaime i milleasoicindí, uimhir idir {{0}} agus {{9999}}", + "description": "Duration of the sound in milliseconds, a number between ``0`` and ``9999``" + }, + "microbit.audio.SoundEffect.vol_start": { + "message": "tús vol", + "description": "(field name) Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_start.summary": { + "message": "Tosaigh luach toirte, uimhir idir {{0}} agus {{255}}", + "description": "Start volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end": { + "message": "deireadh imleabhair", + "description": "(field name) End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.vol_end.summary": { + "message": "Luach toirte deiridh, uimhir idir {{0}} agus {{255}}", + "description": "End volume value, a number between ``0`` and ``255``" + }, + "microbit.audio.SoundEffect.waveform": { + "message": "tonnchruth", + "description": "(field name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.waveform.summary": { + "message": "Cineál cruth waveform, ceann de na luachanna seo: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (torann a ghintear go randamach)", + "description": "Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)" + }, + "microbit.audio.SoundEffect.fx": { + "message": "fx", + "description": "(field name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.fx.summary": { + "message": "Éifeacht le cur leis an bhfuaim, ceann amháin de na luachanna seo a leanas: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, nó {{FX_NONE}}", + "description": "Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``" + }, + "microbit.audio.SoundEffect.shape": { + "message": "cruth", + "description": "(field name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.shape.summary": { + "message": "An cineál cuar idirshuíomh idir na minicíochtaí tosaigh agus deiridh, tá cruthanna tonn éagsúla rátaí éagsúla athraithe i minicíocht. Ceann de na luachanna seo a leanas: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}", + "description": "The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``" + }, + "microbit.audio.SoundEffect.__init__": { + "message": "init", + "description": "(function name) Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.summary": { + "message": "Cruthaigh éifeacht fuaime nua.", + "description": "Create a new sound effect." + }, + "microbit.audio.SoundEffect.__init__.param-name.duration": { + "message": "fad", + "description": "(parameter name) Duration of the sound in milliseconds, a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.duration": { + "message": "Fad na fuaime i milleasoicindí, uimhir idir {{0}} agus {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_end": { + "message": "deireadh minicíochta", + "description": "(parameter name) End frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_end": { + "message": "Minicíocht deiridh i Hertz (Hz), uimhir idir {{0}} agus {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.freq_start": { + "message": "tús minicíochta", + "description": "(parameter name) Start frequency in Hertz (Hz), a number between ``0`` and ``9999``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.freq_start": { + "message": "Tosaigh minicíocht i Hertz (Hz), uimhir idir {{0}} agus {{9999}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.fx": { + "message": "fx", + "description": "(parameter name) Effect to add on the sound, one of the following values: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, or ``FX_NONE``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.fx": { + "message": "Éifeacht le cur leis an bhfuaim, ceann amháin de na luachanna seo a leanas: {{FX_TREMOLO}}, {{FX_VIBRATO}}, {{FX_WARBLE}}, nó {{FX_NONE}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.shape": { + "message": "cruth", + "description": "(parameter name) The type of the interpolation curve between the start and end frequencies, different wave shapes have different rates of change in frequency. One of the following values: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.shape": { + "message": "An cineál cuar idirshuíomh idir na minicíochtaí tosaigh agus deiridh, tá cruthanna tonn éagsúla rátaí éagsúla athraithe i minicíocht. Ceann de na luachanna seo a leanas: {{SHAPE_LINEAR}}, {{SHAPE_CURVE}}, {{SHAPE_LOG}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_end": { + "message": "deireadh an toirte", + "description": "(parameter name) End volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_end": { + "message": "Luach deiridh an toirte, uimhir idir {{0}} agus {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.vol_start": { + "message": "tús toirte", + "description": "(parameter name) Start volume value, a number between ``0`` and ``255``." + }, + "microbit.audio.SoundEffect.__init__.param-doc.vol_start": { + "message": "Tosaigh luach toirte, uimhir idir {{0}} agus {{255}}.", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.__init__.param-name.waveform": { + "message": "tonnfhoirm", + "description": "(parameter name) Type of waveform shape, one of these values: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (randomly generated noise)." + }, + "microbit.audio.SoundEffect.__init__.param-doc.waveform": { + "message": "Cineál cruth waveform, ceann de na luachanna seo: {{WAVEFORM_SINE}}, {{WAVEFORM_SAWTOOTH}}, {{WAVEFORM_TRIANGLE}}, {{WAVEFORM_SQUARE}}, {{WAVEFORM_NOISE}} (torann a ghintear go randamach).", + "description": "Parameter docs" + }, + "microbit.audio.SoundEffect.copy": { + "message": "cóip", + "description": "(function name) Create a copy of this ``SoundEffect``." + }, + "microbit.audio.SoundEffect.copy.summary": { + "message": "Cruthaigh cóip den {{SoundEffect}}seo.", + "description": "Create a copy of this ``SoundEffect``." + }, + "microbit.audio.AudioFrame": { + "message": "fráma fuaime", + "description": "(class name) An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.summary": { + "message": "Is éard is réad {{AudioFrame}} ann ná liosta de 32 sampla ar beart gan síniú gach ceann acu\n(slánuimhir idir 0 agus 255).", + "description": "An ``AudioFrame`` object is a list of 32 samples each of which is a unsigned byte\n(whole number between 0 and 255)." + }, + "microbit.audio.AudioFrame.copyfrom": { + "message": "cóipeáil ó", + "description": "(function name) Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.summary": { + "message": "Forscríobh na sonraí sa {{AudioFrame}} seo leis na sonraí ó shampla {{AudioFrame}} eile.", + "description": "Overwrite the data in this ``AudioFrame`` with the data from another ``AudioFrame`` instance." + }, + "microbit.audio.AudioFrame.copyfrom.param-name.other": { + "message": "eile", + "description": "(parameter name) ``AudioFrame`` instance from which to copy the data." + }, + "microbit.audio.AudioFrame.copyfrom.param-doc.other": { + "message": "{{AudioFrame}} ásc as ar féidir na sonraí a chóipeáil.", + "description": "Parameter docs" + }, + "microbit.compass": { + "message": "compás", + "description": "(module name) Use the built-in compass." + }, + "microbit.compass.summary": { + "message": "Bain úsáid as an compás tógtha.", + "description": "Use the built-in compass." + }, + "microbit.compass.calibrate": { + "message": "calabrú", + "description": "(function name) Starts the calibration process." + }, + "microbit.compass.calibrate.summary": { + "message": "Tosaíonn seo an próiseas calabrúcháin.", + "description": "Starts the calibration process." + }, + "microbit.compass.is_calibrated": { + "message": "atá calabraithe", + "description": "(function name) Check is the compass is calibrated." + }, + "microbit.compass.is_calibrated.summary": { + "message": "Seiceáil go bhfuil an compás calabraithe.", + "description": "Check is the compass is calibrated." + }, + "microbit.compass.clear_calibration": { + "message": "calabrú soiléir", + "description": "(function name) Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.clear_calibration.summary": { + "message": "Cealaigh an calabrú, rud a fhágann go bhfuil an compás neamhráite arís.", + "description": "Undoes the calibration, making the compass uncalibrated again." + }, + "microbit.compass.get_x": { + "message": "faigh x", + "description": "(function name) Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_x.summary": { + "message": "Faigh neart an réimse mhaighnéadaigh ar an ais {{x}} .", + "description": "Get the magnetic field strength on the ``x`` axis." + }, + "microbit.compass.get_y": { + "message": "faigh y", + "description": "(function name) Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_y.summary": { + "message": "Faigh neart an réimse mhaighnéadaigh ar an ais {{y}} .", + "description": "Get the magnetic field strength on the ``y`` axis." + }, + "microbit.compass.get_z": { + "message": "faigh z", + "description": "(function name) Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.get_z.summary": { + "message": "Faigh neart an réimse mhaighnéadaigh ar an ais {{z}} .", + "description": "Get the magnetic field strength on the ``z`` axis." + }, + "microbit.compass.heading": { + "message": "ceannteideal", + "description": "(function name) Get the compass heading." + }, + "microbit.compass.heading.summary": { + "message": "Faigh ceannteideal an chompáis.", + "description": "Get the compass heading." + }, + "microbit.compass.get_field_strength": { + "message": "get field strength", + "description": "(function name) Get the magnitude of the magnetic field around the device." + }, + "microbit.compass.get_field_strength.summary": { + "message": "Faigh méid an réimse maighnéadach timpeall an ghléis.", + "description": "Get the magnitude of the magnetic field around the device." + }, + "microbit.display": { + "message": "taispeáint", + "description": "(module name) Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.summary": { + "message": "Taispeáin téacs, íomhánna agus beochan ar an taispeáint LED 5×5.", + "description": "Show text, images and animations on the 5×5 LED display." + }, + "microbit.display.get_pixel": { + "message": "faigh picteilín", + "description": "(function name) Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.summary": { + "message": "Faigh gile an LED ag colún {{x}} agus as a chéile {{y}}.", + "description": "Get the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.get_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.get_pixel.param-doc.x": { + "message": "An colún taispeána (0..4)", + "description": "Parameter docs" + }, + "microbit.display.get_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.get_pixel.param-doc.y": { + "message": "An tsraith taispeána (0..4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel": { + "message": "socraigh picteilín", + "description": "(function name) Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.summary": { + "message": "Socraigh gile an LED ag colún {{x}} agus as a chéile {{y}}.", + "description": "Set the brightness of the LED at column ``x`` and row ``y``." + }, + "microbit.display.set_pixel.param-name.value": { + "message": "luach", + "description": "(parameter name) The brightness between 0 (off) and 9 (bright)" + }, + "microbit.display.set_pixel.param-doc.value": { + "message": "An ghile idir 0 (as) agus 9 (geal)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.x": { + "message": "x", + "description": "(parameter name) The display column (0..4)" + }, + "microbit.display.set_pixel.param-doc.x": { + "message": "An colún taispeána (0..4)", + "description": "Parameter docs" + }, + "microbit.display.set_pixel.param-name.y": { + "message": "y", + "description": "(parameter name) The display row (0..4)" + }, + "microbit.display.set_pixel.param-doc.y": { + "message": "An tsraith taispeána (0..4)", + "description": "Parameter docs" + }, + "microbit.display.clear": { + "message": "soiléir", + "description": "(function name) Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.clear.summary": { + "message": "Socraigh gile na soilse go léir go 0 (as).", + "description": "Set the brightness of all LEDs to 0 (off)." + }, + "microbit.display.show": { + "message": "taispeáin", + "description": "(function name) Shows images, letters or digits on the LED display." + }, + "microbit.display.show.summary": { + "message": "Taispeáin íomhánna, litreacha nó digití ar an taispeáint LED.", + "description": "Shows images, letters or digits on the LED display." + }, + "microbit.display.show.param-name.clear": { + "message": "soiléir", + "description": "(parameter name) If ``clear`` is ``True``, the display will be cleared after the sequence has finished." + }, + "microbit.display.show.param-doc.clear": { + "message": "Más ionann {{clear}} agus {{True}}, glanfar an taispeáint tar éis don seicheamh a bheith críochnaithe.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.delay": { + "message": "moill", + "description": "(parameter name) Each letter, digit or image is shown with ``delay`` milliseconds between them." + }, + "microbit.display.show.param-doc.delay": { + "message": "Taispeántar gach litir, digit nó íomhá le milleasoicindí {{delay}} eatarthu.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.image": { + "message": "íomhá", + "description": "(parameter name) A string, number, image or list of images to show." + }, + "microbit.display.show.param-doc.image": { + "message": "Teaghrán, uimhir, íomhá nó liosta íomhánna le taispeáint.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.loop": { + "message": "lúb", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.show.param-doc.loop": { + "message": "Má tá {{loop}} {{True}}, déanfaidh an beochan arís go deo.", + "description": "Parameter docs" + }, + "microbit.display.show.param-name.wait": { + "message": "fan", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.show.param-doc.wait": { + "message": "Más {{wait}} é {{True}}, cuirfear bac ar an bhfeidhm seo go dtí go mbeidh an bheochan críochnaithe, nó tarlóidh an bheochan sa chúlra.", + "description": "Parameter docs" + }, + "microbit.display.scroll": { + "message": "scrollaigh", + "description": "(function name) Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.summary": { + "message": "Scrollaigh uimhir nó téacs ar an taispeáint LED.", + "description": "Scrolls a number or text on the LED display." + }, + "microbit.display.scroll.param-name.delay": { + "message": "moill", + "description": "(parameter name) The ``delay`` parameter controls how fast the text is scrolling." + }, + "microbit.display.scroll.param-doc.delay": { + "message": "Rialaíonn an paraiméadar {{delay}} cé chomh tapa is atá an téacs ag scrollú.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.loop": { + "message": "lúb", + "description": "(parameter name) If ``loop`` is ``True``, the animation will repeat forever." + }, + "microbit.display.scroll.param-doc.loop": { + "message": "Má tá {{loop}} {{True}}, déanfaidh an beochan arís go deo.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.monospace": { + "message": "monaspás", + "description": "(parameter name) If ``monospace`` is ``True``, the characters will all take up 5 pixel-columns in width, otherwise there will be exactly 1 blank pixel-column between each character as they scroll." + }, + "microbit.display.scroll.param-doc.monospace": { + "message": "Más {{monospace}} é {{True}}, tógfaidh na carachtair go léir suas le 5 cholún picteilín ar leithead, nó mura mbeidh go díreach 1 cholún bán picteilín idir gach carachtar agus iad ag scrollú.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.text": { + "message": "téacs", + "description": "(parameter name) The string to scroll. If ``text`` is an integer or float it is first converted to a string using ``str()``." + }, + "microbit.display.scroll.param-doc.text": { + "message": "An teaghrán le scrollú. Más slánuimhir nó snámhphointe é {{text}} tiontaítear é ar dtús go teaghrán ag baint úsáide as {{str()}}.", + "description": "Parameter docs" + }, + "microbit.display.scroll.param-name.wait": { + "message": "fan", + "description": "(parameter name) If ``wait`` is ``True``, this function will block until the animation is finished, otherwise the animation will happen in the background." + }, + "microbit.display.scroll.param-doc.wait": { + "message": "Má tá {{wait}} {{True}}, blocálfaidh an fheidhm seo go dtí go mbeidh an beochan críochnaithe, nó tarlóidh an beochan sa chúlra.", + "description": "Parameter docs" + }, + "microbit.display.on": { + "message": "ar", + "description": "(function name) Turn on the LED display." + }, + "microbit.display.on.summary": { + "message": "Cas ar an taispeáint LED.", + "description": "Turn on the LED display." + }, + "microbit.display.off": { + "message": "as", + "description": "(function name) Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.off.summary": { + "message": "Múch an taispeáint LED (ceadaíonn an taispeáint a dhíchumasú duit na bioráin GPIO a athúsáid chun críocha eile).", + "description": "Turn off the LED display (disabling the display allows you to re-use the GPIO pins for other purposes)." + }, + "microbit.display.is_on": { + "message": "atá ar", + "description": "(function name) Check whether the LED display is enabled." + }, + "microbit.display.is_on.summary": { + "message": "Seiceáil an bhfuil an taispeáint LED cumasaithe.", + "description": "Check whether the LED display is enabled." + }, + "microbit.display.read_light_level": { + "message": "léigh leibhéal an tsolais", + "description": "(function name) Read the light level." + }, + "microbit.display.read_light_level.summary": { + "message": "Léigh leibhéal an tsolais.", + "description": "Read the light level." + }, + "microbit.i2c": { + "message": "i2c", + "description": "(module name) Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.summary": { + "message": "Cumarsáid a dhéanamh le gléasanna ag baint úsáide as prótacal bus I²C.", + "description": "Communicate with devices using the I²C bus protocol." + }, + "microbit.i2c.init": { + "message": "init", + "description": "(function name) Re-initialize a peripheral." + }, + "microbit.i2c.init.summary": { + "message": "Ath-thúsaigh forimeallach.", + "description": "Re-initialize a peripheral." + }, + "microbit.i2c.init.param-name.freq": { + "message": "freq", + "description": "(parameter name) clock frequency" + }, + "microbit.i2c.init.param-doc.freq": { + "message": "minicíocht cloig", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.scl": { + "message": "scl", + "description": "(parameter name) ``scl`` pin (default 19)" + }, + "microbit.i2c.init.param-doc.scl": { + "message": "biorán {{scl}} (réamhshocrú 19)", + "description": "Parameter docs" + }, + "microbit.i2c.init.param-name.sda": { + "message": "sda", + "description": "(parameter name) ``sda`` pin (default 20)" + }, + "microbit.i2c.init.param-doc.sda": { + "message": "biorán {{sda}} (réamhshocrú 20)", + "description": "Parameter docs" + }, + "microbit.i2c.scan": { + "message": "scanadh", + "description": "(function name) Scan the bus for devices." + }, + "microbit.i2c.scan.summary": { + "message": "Scan an bus le haghaidh gléasanna.", + "description": "Scan the bus for devices." + }, + "microbit.i2c.read": { + "message": "léigh", + "description": "(function name) Read bytes from a device." + }, + "microbit.i2c.read.summary": { + "message": "Léigh bearta ó ghléas.", + "description": "Read bytes from a device." + }, + "microbit.i2c.read.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.read.param-doc.addr": { + "message": "Seoladh 7 ngiotán an ghléis", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.n": { + "message": "n", + "description": "(parameter name) The number of bytes to read" + }, + "microbit.i2c.read.param-doc.n": { + "message": "Líon na mbeart atá le léamh", + "description": "Parameter docs" + }, + "microbit.i2c.read.param-name.repeat": { + "message": "athdhéanamh", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.read.param-doc.repeat": { + "message": "Má {{True}}, ní sheolfar aon ghiotán stad", + "description": "Parameter docs" + }, + "microbit.i2c.write": { + "message": "scríobh", + "description": "(function name) Write bytes to a device." + }, + "microbit.i2c.write.summary": { + "message": "Scríobh bearta chuig gléas.", + "description": "Write bytes to a device." + }, + "microbit.i2c.write.param-name.addr": { + "message": "addr", + "description": "(parameter name) The 7-bit address of the device" + }, + "microbit.i2c.write.param-doc.addr": { + "message": "Seoladh 7 ngiotán an ghléis", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A buffer containing the bytes to write" + }, + "microbit.i2c.write.param-doc.buf": { + "message": "Maolán ina bhfuil na bearta le scríobh", + "description": "Parameter docs" + }, + "microbit.i2c.write.param-name.repeat": { + "message": "athdhéanamh", + "description": "(parameter name) If ``True``, no stop bit will be sent" + }, + "microbit.i2c.write.param-doc.repeat": { + "message": "Má {{True}}, ní sheolfar aon ghiotán stad", + "description": "Parameter docs" + }, + "microbit.microphone": { + "message": "micreafón", + "description": "(module name) Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.summary": { + "message": "Freagair fuaim ag baint úsáide as an micreafón tógtha (V2 amháin).", + "description": "Respond to sound using the built-in microphone (V2 only)." + }, + "microbit.microphone.current_event": { + "message": "imeacht reatha", + "description": "(function name) Get the last recorded sound event" + }, + "microbit.microphone.current_event.summary": { + "message": "Faigh an teagmhas fuaime taifeadta is déanaí", + "description": "Get the last recorded sound event" + }, + "microbit.microphone.was_event": { + "message": "ba imeacht é", + "description": "(function name) Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.summary": { + "message": "Seiceáil ar chualathas fuaim uair amháin ar a laghad ón nglao deireanach.", + "description": "Check if a sound was heard at least once since the last call." + }, + "microbit.microphone.was_event.param-name.event": { + "message": "imeacht", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.was_event.param-doc.event": { + "message": "An ócáid le seiceáil, mar shampla {{SoundEvent.LOUD}} nó {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.is_event": { + "message": "imeacht", + "description": "(function name) Check the most recent sound event detected." + }, + "microbit.microphone.is_event.summary": { + "message": "Seiceáil an teagmhas fuaime is déanaí a braitheadh.", + "description": "Check the most recent sound event detected." + }, + "microbit.microphone.is_event.param-name.event": { + "message": "imeacht", + "description": "(parameter name) The event to check for, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``" + }, + "microbit.microphone.is_event.param-doc.event": { + "message": "An ócáid le seiceáil, mar shampla {{SoundEvent.LOUD}} nó {{SoundEvent.QUIET}}", + "description": "Parameter docs" + }, + "microbit.microphone.get_events": { + "message": "faigh imeachtaí", + "description": "(function name) Get the sound event history as a tuple." + }, + "microbit.microphone.get_events.summary": { + "message": "Faigh stair na hócáide fuaime mar thuple.", + "description": "Get the sound event history as a tuple." + }, + "microbit.microphone.set_threshold": { + "message": "tairseach shocraithe", + "description": "(function name) Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.summary": { + "message": "Socraigh an tairseach le haghaidh teagmhas fuaime.", + "description": "Set the threshold for a sound event." + }, + "microbit.microphone.set_threshold.param-name.event": { + "message": "imeacht", + "description": "(parameter name) A sound event, such as ``SoundEvent.LOUD`` or ``SoundEvent.QUIET``." + }, + "microbit.microphone.set_threshold.param-doc.event": { + "message": "Imeacht fuaime, mar shampla {{SoundEvent.LOUD}} nó {{SoundEvent.QUIET}}.", + "description": "Parameter docs" + }, + "microbit.microphone.set_threshold.param-name.value": { + "message": "luach", + "description": "(parameter name) The threshold level in the range 0-255." + }, + "microbit.microphone.set_threshold.param-doc.value": { + "message": "An leibhéal tairsí sa raon 0-255.", + "description": "Parameter docs" + }, + "microbit.microphone.sound_level": { + "message": "leibhéal fuaime", + "description": "(function name) Get the sound pressure level." + }, + "microbit.microphone.sound_level.summary": { + "message": "Faigh an leibhéal brú fuaime.", + "description": "Get the sound pressure level." + }, + "microbit.speaker": { + "message": "cainteoir", + "description": "(module name) Control the built-in speaker (V2 only)." + }, + "microbit.speaker.summary": { + "message": "Rialú an cainteoir tógtha i (V2 amháin).", + "description": "Control the built-in speaker (V2 only)." + }, + "microbit.speaker.off": { + "message": "as", + "description": "(function name) Turn the speaker off." + }, + "microbit.speaker.off.summary": { + "message": "Múch an cainteoir.", + "description": "Turn the speaker off." + }, + "microbit.speaker.on": { + "message": "ar", + "description": "(function name) Turn the speaker on." + }, + "microbit.speaker.on.summary": { + "message": "Cas an cainteoir air.", + "description": "Turn the speaker on." + }, + "microbit.spi": { + "message": "spi", + "description": "(module name) Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.summary": { + "message": "Cumarsáid a dhéanamh le gléasanna ag baint úsáide as an gcomhéadan forimeallach sraitheach (SPI) bus.", + "description": "Communicate with devices using the serial peripheral interface (SPI) bus." + }, + "microbit.spi.init": { + "message": "init", + "description": "(function name) Initialize SPI communication." + }, + "microbit.spi.init.summary": { + "message": "Túsaigh cumarsáid SPI.", + "description": "Initialize SPI communication." + }, + "microbit.spi.init.param-name.baudrate": { + "message": "ráta baud", + "description": "(parameter name) The speed of communication." + }, + "microbit.spi.init.param-doc.baudrate": { + "message": "Luas na cumarsáide.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.bits": { + "message": "giotáin", + "description": "(parameter name) The width in bits of each transfer. Currently only ``bits=8`` is supported. However, this may change in the future." + }, + "microbit.spi.init.param-doc.bits": { + "message": "An leithead i giotán de gach aistriú. Faoi láthair ní thacaítear ach le {{bits=8}} . Mar sin féin, d'fhéadfadh sé seo athrú amach anseo.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.miso": { + "message": "miso", + "description": "(parameter name) miso pin (default 14)" + }, + "microbit.spi.init.param-doc.miso": { + "message": "biorán miso (réamhshocraithe 14)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mode": { + "message": "mód", + "description": "(parameter name) Determines the combination of clock polarity and phase - `see online table `_." + }, + "microbit.spi.init.param-doc.mode": { + "message": "Cinneann sé an meascán de polaraíocht clog agus céim - 'féach tábla ar líne '_.", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.mosi": { + "message": "mosi", + "description": "(parameter name) mosi pin (default 15)" + }, + "microbit.spi.init.param-doc.mosi": { + "message": "bioráin mosi (réamhshocrú 15)", + "description": "Parameter docs" + }, + "microbit.spi.init.param-name.sclk": { + "message": "sclk", + "description": "(parameter name) sclk pin (default 13)" + }, + "microbit.spi.init.param-doc.sclk": { + "message": "bioráin sclk (réamhshocrú 13)", + "description": "Parameter docs" + }, + "microbit.spi.read": { + "message": "léamh", + "description": "(function name) Read at most ``nbytes`` while continuously writing the single byte given by ``out``." + }, + "microbit.spi.read.summary": { + "message": "Léigh ar a mhéad {{nbytes}} agus an beart aonair a thugann {{out}}á scríobh go leanúnach.", + "description": "Read at most ``nbytes`` while continuously writing the single byte given by ``out``." + }, + "microbit.spi.read.param-name.nbytes": { + "message": "nbeart", + "description": "(parameter name) Maximum number of bytes to read." + }, + "microbit.spi.read.param-doc.nbytes": { + "message": "Líon uasta na mbeart le léamh.", + "description": "Parameter docs" + }, + "microbit.spi.read.param-name.out": { + "message": "amach", + "description": "(parameter name) The byte value to write (default 0)." + }, + "microbit.spi.read.param-doc.out": { + "message": "An luach beart le scríobh (réamhshocrú 0).", + "description": "Parameter docs" + }, + "microbit.spi.write": { + "message": "scríobh", + "description": "(function name) Write bytes to the bus." + }, + "microbit.spi.write.summary": { + "message": "Scríobh bearta chuig an mbus.", + "description": "Write bytes to the bus." + }, + "microbit.spi.write.param-name.buffer": { + "message": "maolán", + "description": "(parameter name) A buffer to read data from." + }, + "microbit.spi.write.param-doc.buffer": { + "message": "Maolán chun sonraí a léamh as.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto": { + "message": "scríobh readinto", + "description": "(function name) Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.summary": { + "message": "Scríobh an maolán {{out}} chuig an mbus agus léigh aon fhreagra isteach sa mhaolán {{in_}} .", + "description": "Write the ``out`` buffer to the bus and read any response into the ``in_`` buffer." + }, + "microbit.spi.write_readinto.param-name.in_": { + "message": "i", + "description": "(parameter name) The buffer to read data from." + }, + "microbit.spi.write_readinto.param-doc.in_": { + "message": "An maolán chun sonraí a léamh as.", + "description": "Parameter docs" + }, + "microbit.spi.write_readinto.param-name.out": { + "message": "amach", + "description": "(parameter name) The buffer to write any response to." + }, + "microbit.spi.write_readinto.param-doc.out": { + "message": "An maolán chun aon fhreagra a scríobh.", + "description": "Parameter docs" + }, + "microbit.uart": { + "message": "uart", + "description": "(module name) Communicate with a device using a serial interface." + }, + "microbit.uart.summary": { + "message": "Cumarsáid a dhéanamh le gléas ag baint úsáide as comhéadan sraitheach.", + "description": "Communicate with a device using a serial interface." + }, + "microbit.uart.ODD": { + "message": "corr", + "description": "(field name) Odd parity" + }, + "microbit.uart.ODD.summary": { + "message": "Paireacht chorr", + "description": "Odd parity" + }, + "microbit.uart.EVEN": { + "message": "fiú amháin", + "description": "(field name) Even parity" + }, + "microbit.uart.EVEN.summary": { + "message": "Paireacht fiú", + "description": "Even parity" + }, + "microbit.uart.init": { + "message": "init", + "description": "(function name) Initialize serial communication." + }, + "microbit.uart.init.summary": { + "message": "Túsaigh cumarsáid sraitheach.", + "description": "Initialize serial communication." + }, + "microbit.uart.init.param-name.baudrate": { + "message": "baudrate", + "description": "(parameter name) The speed of communication." + }, + "microbit.uart.init.param-doc.baudrate": { + "message": "Luas na cumarsáide.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.bits": { + "message": "bits", + "description": "(parameter name) The size of bytes being transmitted. micro:bit only supports 8." + }, + "microbit.uart.init.param-doc.bits": { + "message": "Méid na mbeart atá á dtarchur. micro:bit: ní thacaíonn giotán ach le 8.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.parity": { + "message": "paireacht", + "description": "(parameter name) How parity is checked, ``None``, ``uart.ODD`` or ``uart.EVEN``." + }, + "microbit.uart.init.param-doc.parity": { + "message": "Conas a dhéantar paireacht a sheiceáil, {{None}}, {{uart.ODD}} nó {{uart.EVEN}}.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.rx": { + "message": "rx", + "description": "(parameter name) Receiving pin." + }, + "microbit.uart.init.param-doc.rx": { + "message": "Biorán glactha.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.stop": { + "message": "stad", + "description": "(parameter name) The number of stop bits, has to be 1 for micro:bit." + }, + "microbit.uart.init.param-doc.stop": { + "message": "Líon na ngiotán stad, caithfidh sé a bheith 1 le haghaidh micro:bit.", + "description": "Parameter docs" + }, + "microbit.uart.init.param-name.tx": { + "message": "tx", + "description": "(parameter name) Transmitting pin." + }, + "microbit.uart.init.param-doc.tx": { + "message": "Bioráin a tharchur.", + "description": "Parameter docs" + }, + "microbit.uart.any": { + "message": "aon", + "description": "(function name) Check if any data is waiting." + }, + "microbit.uart.any.summary": { + "message": "Seiceáil an bhfuil aon sonraí ag fanacht.", + "description": "Check if any data is waiting." + }, + "microbit.uart.read": { + "message": "léamh", + "description": "(function name) Read bytes." + }, + "microbit.uart.read.summary": { + "message": "Léigh bearta.", + "description": "Read bytes." + }, + "microbit.uart.read.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read as many bytes as possible" + }, + "microbit.uart.read.param-doc.nbytes": { + "message": "Má tá {{nbytes}} sonraithe ansin léigh ar a mhéad go leor beart, nó léigh an oiread beart agus is féidir", + "description": "Parameter docs" + }, + "microbit.uart.readinto": { + "message": "readinto", + "description": "(function name) Read bytes into the ``buf``." + }, + "microbit.uart.readinto.summary": { + "message": "Léigh bearta isteach sa {{buf}}.", + "description": "Read bytes into the ``buf``." + }, + "microbit.uart.readinto.param-name.buf": { + "message": "buf", + "description": "(parameter name) The buffer to write to." + }, + "microbit.uart.readinto.param-doc.buf": { + "message": "An maolán le scríobh chuige.", + "description": "Parameter docs" + }, + "microbit.uart.readinto.param-name.nbytes": { + "message": "nbytes", + "description": "(parameter name) If ``nbytes`` is specified then read at most that many bytes, otherwise read ``len(buf)`` bytes." + }, + "microbit.uart.readinto.param-doc.nbytes": { + "message": "Má tá {{nbytes}} sonraithe ansin léigh ar a mhéad go leor bearta, ar shlí eile a léamh {{len(buf)}} bearta.", + "description": "Parameter docs" + }, + "microbit.uart.readline": { + "message": "readline", + "description": "(function name) Read a line, ending in a newline character." + }, + "microbit.uart.readline.summary": { + "message": "Léigh líne, ag críochnú i gcarachtar líne nua.", + "description": "Read a line, ending in a newline character." + }, + "microbit.uart.write": { + "message": "scríobh", + "description": "(function name) Write a buffer to the bus." + }, + "microbit.uart.write.summary": { + "message": "Scríobh maolán ar an mbus.", + "description": "Write a buffer to the bus." + }, + "microbit.uart.write.param-name.buf": { + "message": "buf", + "description": "(parameter name) A bytes object or a string." + }, + "microbit.uart.write.param-doc.buf": { + "message": "Réad beart nó teaghrán.", + "description": "Parameter docs" + }, + "micropython": { + "message": "micropython", + "description": "(module name) MicroPython internals." + }, + "micropython.summary": { + "message": "Gnéithe inmheánacha MicroPython.", + "description": "MicroPython internals." + }, + "micropython.const": { + "message": "const", + "description": "(function name) Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.summary": { + "message": "Úsáidtear é chun a dhearbhú go bhfuil an slonn tairiseach ionas gur féidir leis an tiomsaitheoir\nan leas is fearr is féidir a bhaint as.", + "description": "Used to declare that the expression is a constant so that the compiler can\noptimise it." + }, + "micropython.const.param-name.expr": { + "message": "expr", + "description": "(parameter name) A constant expression." + }, + "micropython.const.param-doc.expr": { + "message": "Léiriú tairiseach.", + "description": "Parameter docs" + }, + "micropython.opt_level-1": { + "message": "leibhéal roghnaithe", + "description": "(function name) Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-1.summary": { + "message": "Faigh an leibhéal optamaithe reatha chun scripteanna a thiomsú.", + "description": "Get the current optimisation level for the compilation of scripts." + }, + "micropython.opt_level-2": { + "message": "leibhéal rogha", + "description": "(function name) Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.summary": { + "message": "Socraigh an leibhéal optamaithe le haghaidh tiomsú scripteanna ina dhiaidh sin.", + "description": "Sets the optimisation level for subsequent compilation of scripts." + }, + "micropython.opt_level-2.param-name.level": { + "message": "leibhéal", + "description": "(parameter name) An integer optimisation level." + }, + "micropython.opt_level-2.param-doc.level": { + "message": "Leibhéal optamaithe slánuimhir.", + "description": "Parameter docs" + }, + "micropython.mem_info": { + "message": "eolas cuimhne", + "description": "(function name) Print information about currently used memory." + }, + "micropython.mem_info.summary": { + "message": "Priontáil faisnéis faoin gcuimhne atá in úsáid faoi láthair.", + "description": "Print information about currently used memory." + }, + "micropython.mem_info.param-name.verbose": { + "message": "foclach", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.mem_info.param-doc.verbose": { + "message": "Má thugtar an argóint {{verbose}}, clóitear faisnéis bhreise.", + "description": "Parameter docs" + }, + "micropython.qstr_info": { + "message": "eolas qstr", + "description": "(function name) Print information about currently interned strings." + }, + "micropython.qstr_info.summary": { + "message": "Priontáil eolas faoi théada atá imtheorannaithe faoi láthair.", + "description": "Print information about currently interned strings." + }, + "micropython.qstr_info.param-name.verbose": { + "message": "foclach", + "description": "(parameter name) If the ``verbose`` argument is given then extra information is printed." + }, + "micropython.qstr_info.param-doc.verbose": { + "message": "Má thugtar an argóint {{verbose}}, clóitear faisnéis bhreise.", + "description": "Parameter docs" + }, + "micropython.stack_use": { + "message": "úsáid cruach", + "description": "(function name) Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.stack_use.summary": { + "message": "Tabhair slánuimhir ar ais a léiríonn an méid reatha cruach atá á\na úsáidtear.", + "description": "Return an integer representing the current amount of stack that is being\nused." + }, + "micropython.heap_lock": { + "message": "glas carn", + "description": "(function name) Lock the heap." + }, + "micropython.heap_lock.summary": { + "message": "Glasáil an carn.", + "description": "Lock the heap." + }, + "micropython.heap_unlock": { + "message": "díghlasáil carn", + "description": "(function name) Unlock the heap." + }, + "micropython.heap_unlock.summary": { + "message": "Díghlasáil an carn.", + "description": "Unlock the heap." + }, + "micropython.kbd_intr": { + "message": "kbd intr", + "description": "(function name) Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.summary": { + "message": "Socraigh an carachtar a ardóidh eisceacht {{KeyboardInterrupt}} .", + "description": "Set the character that will raise a ``KeyboardInterrupt`` exception." + }, + "micropython.kbd_intr.param-name.chr": { + "message": "chr", + "description": "(parameter name) Character code to raise the interrupt or -1 to disable capture of Ctrl-C." + }, + "micropython.kbd_intr.param-doc.chr": { + "message": "Cód carachtar chun an t-idirbhriseadh nó -1 a ardú chun gabháil Ctrl-C a dhíchumasú.", + "description": "Parameter docs" + }, + "music": { + "message": "ceol", + "description": "(module name) Create and play melodies." + }, + "music.summary": { + "message": "Cruthaigh agus seinn séiseanna.", + "description": "Create and play melodies." + }, + "music.DADADADUM": { + "message": "dadadadum", + "description": "(field name) Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.DADADADUM.summary": { + "message": "Fonn: oscailt 5ú Siansa Beethoven i C mion.", + "description": "Melody: the opening to Beethoven’s 5th Symphony in C minor." + }, + "music.ENTERTAINER": { + "message": "siamsóir", + "description": "(field name) Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.ENTERTAINER.summary": { + "message": "Fonn: an blúire oscailte de chlasaic Ragtime Scott Joplin \"The Entertainer\".", + "description": "Melody: the opening fragment of Scott Joplin’s Ragtime classic “The Entertainer”." + }, + "music.PRELUDE": { + "message": "réamhrá", + "description": "(field name) Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.PRELUDE.summary": { + "message": "Fonn: oscailt an chéad Réamhrá i C Major de 48 Réamhráite agus Fugues J.S.Bach.", + "description": "Melody: the opening of the first Prelude in C Major of J.S.Bach’s 48 Preludes and Fugues." + }, + "music.ODE": { + "message": "ode", + "description": "(field name) Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.ODE.summary": { + "message": "Fonn: an téama \"Ode to Joy\" ó 9ú Siansa Beethoven in D minor.", + "description": "Melody: the “Ode to Joy” theme from Beethoven’s 9th Symphony in D minor." + }, + "music.NYAN": { + "message": "nyan", + "description": "(field name) Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.NYAN.summary": { + "message": "Fonn: téama Nyan Cat (http://www.nyan.cat/).", + "description": "Melody: the Nyan Cat theme (http://www.nyan.cat/)." + }, + "music.RINGTONE": { + "message": "clingthon", + "description": "(field name) Melody: something that sounds like a mobile phone ringtone." + }, + "music.RINGTONE.summary": { + "message": "Fonn: rud a fhuaimníonn cosúil le clingthon fón póca.", + "description": "Melody: something that sounds like a mobile phone ringtone." + }, + "music.FUNK": { + "message": "func", + "description": "(field name) Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.FUNK.summary": { + "message": "Fonn: líne dord spraíúil do ghníomhairí rúnda agus do mháistir-intinn choiriúla.", + "description": "Melody: a funky bass line for secret agents and criminal masterminds." + }, + "music.BLUES": { + "message": "blues", + "description": "(field name) Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BLUES.summary": { + "message": "Fonn: a boogie-woogie 12-bar blues ag siúl Bass.", + "description": "Melody: a boogie-woogie 12-bar blues walking bass." + }, + "music.BIRTHDAY": { + "message": "lá breithe", + "description": "(field name) Melody: “Happy Birthday to You…”" + }, + "music.BIRTHDAY.summary": { + "message": "Fonn: \"Breithlá sona duit...\"", + "description": "Melody: “Happy Birthday to You…”" + }, + "music.WEDDING": { + "message": "pósadh", + "description": "(field name) Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.WEDDING.summary": { + "message": "Fonn: an curfá bridal ó cheoldráma Wagner \"Lohengrin\".", + "description": "Melody: the bridal chorus from Wagner’s opera “Lohengrin”." + }, + "music.FUNERAL": { + "message": "sochraid", + "description": "(field name) Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.FUNERAL.summary": { + "message": "Fonn : an “máirseáil sochraide” ar a dtugtar freisin Sonáid Phianó Uimh. 2 i B♭ beag, Op. 35 le Frédéric Chopin.", + "description": "Melody: the “funeral march” otherwise known as Frédéric Chopin’s Piano Sonata No. 2 in B♭ minor, Op. 35." + }, + "music.PUNCHLINE": { + "message": "punchline", + "description": "(field name) Melody: a fun fragment that signifies a joke has been made." + }, + "music.PUNCHLINE.summary": { + "message": "Fonn: tá blúire spraoi a léiríonn magadh déanta.", + "description": "Melody: a fun fragment that signifies a joke has been made." + }, + "music.PYTHON": { + "message": "python", + "description": "(field name) Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.PYTHON.summary": { + "message": "Fonn: Máirseáil John Philip Sousa “Liberty Bell” ar a dtugtar téama “Monty Python’s Flying Circus” (ar a dtugtar an teanga ríomhchlárúcháin Python ina diaidh).", + "description": "Melody: John Philip Sousa’s march “Liberty Bell” aka, the theme for “Monty Python’s Flying Circus” (after which the Python programming language is named)." + }, + "music.BADDY": { + "message": "drochdhuine", + "description": "(field name) Melody: silent movie era entrance of a baddy." + }, + "music.BADDY.summary": { + "message": "Fonn: bealach isteach ré an scannáin chiúin de drochdhuine.", + "description": "Melody: silent movie era entrance of a baddy." + }, + "music.CHASE": { + "message": "ruaig", + "description": "(field name) Melody: silent movie era chase scene." + }, + "music.CHASE.summary": { + "message": "Fonn: radharc ruaig ré scannán ciúin.", + "description": "Melody: silent movie era chase scene." + }, + "music.BA_DING": { + "message": "ba ding", + "description": "(field name) Melody: a short signal to indicate something has happened." + }, + "music.BA_DING.summary": { + "message": "Fonn: comhartha gearr chun a chur in iúl gur tharla rud éigin.", + "description": "Melody: a short signal to indicate something has happened." + }, + "music.WAWAWAWAA": { + "message": "wawawawaa", + "description": "(field name) Melody: a very sad trombone." + }, + "music.WAWAWAWAA.summary": { + "message": "Fonn: trombón an-bhrónach.", + "description": "Melody: a very sad trombone." + }, + "music.JUMP_UP": { + "message": "léim suas", + "description": "(field name) Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_UP.summary": { + "message": "Fonn: le húsáid i gcluiche, rud a léiríonn gluaiseacht aníos.", + "description": "Melody: for use in a game, indicating upward movement." + }, + "music.JUMP_DOWN": { + "message": "léim síos", + "description": "(field name) Melody: for use in a game, indicating downward movement." + }, + "music.JUMP_DOWN.summary": { + "message": "Séis: le húsáid i gcluiche, rud a léiríonn gluaiseacht anuas.", + "description": "Melody: for use in a game, indicating downward movement." + }, + "music.POWER_UP": { + "message": "cumhacht suas", + "description": "(field name) Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_UP.summary": { + "message": "Fonn: fonnfóir chun éacht a dhíghlasáil a léiriú.", + "description": "Melody: a fanfare to indicate an achievement unlocked." + }, + "music.POWER_DOWN": { + "message": "cumhacht síos", + "description": "(field name) Melody: a sad fanfare to indicate an achievement lost." + }, + "music.POWER_DOWN.summary": { + "message": "Fonn: faitíos brónach chun éacht a cailleadh a léiriú.", + "description": "Melody: a sad fanfare to indicate an achievement lost." + }, + "music.set_tempo": { + "message": "socraigh tempo", + "description": "(function name) Sets the approximate tempo for playback." + }, + "music.set_tempo.summary": { + "message": "Socraigh an luas garbh le haghaidh athsheinm.", + "description": "Sets the approximate tempo for playback." + }, + "music.set_tempo.param-name.bpm": { + "message": "bpm", + "description": "(parameter name) An integer determining how many beats per minute." + }, + "music.set_tempo.param-doc.bpm": { + "message": "Slánuimhir a chinneann cé mhéad buille in aghaidh an nóiméid.", + "description": "Parameter docs" + }, + "music.set_tempo.param-name.ticks": { + "message": "sceartáin", + "description": "(parameter name) The number of ticks constituting a beat." + }, + "music.set_tempo.param-doc.ticks": { + "message": "Líon na sceartán ar buille iad.", + "description": "Parameter docs" + }, + "music.get_tempo": { + "message": "faigh tempo", + "description": "(function name) Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.get_tempo.summary": { + "message": "Faigheann an luas reatha mar tupla slánuimhreacha: {{(ticks, bpm)}}.", + "description": "Gets the current tempo as a tuple of integers: ``(ticks, bpm)``." + }, + "music.play": { + "message": "seinn", + "description": "(function name) Plays music." + }, + "music.play.summary": { + "message": "Seinneann sé ceol.", + "description": "Plays music." + }, + "music.play.param-name.loop": { + "message": "lúb", + "description": "(parameter name) If ``loop`` is set to ``True``, the tune repeats until ``stop`` is called or the blocking call is interrupted." + }, + "music.play.param-doc.loop": { + "message": "Má tá {{loop}} socraithe go {{True}}, athrá ar an tiún go dtí go dtugtar {{stop}} nó go gcuirtear isteach ar an nglao blocála.", + "description": "Parameter docs" + }, + "music.play.param-name.music": { + "message": "ceol", + "description": "(parameter name) music specified in `a special notation `_" + }, + "music.play.param-doc.music": { + "message": "ceol a shonraítear in 'nodaireacht speisialta '_", + "description": "Parameter docs" + }, + "music.play.param-name.pin": { + "message": "biorán", + "description": "(parameter name) the output pin for use with an external speaker (default ``pin0``), ``None`` for no sound." + }, + "music.play.param-doc.pin": { + "message": "an bioráin aschuir le húsáid le cainteoir seachtrach (réamhshocraithe {{pin0}}), {{None}} gan aon fhuaim.", + "description": "Parameter docs" + }, + "music.play.param-name.wait": { + "message": "fan", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.play.param-doc.wait": { + "message": "Má tá {{wait}} socraithe go {{True}}, tá an fheidhm seo ag blocáil.", + "description": "Parameter docs" + }, + "music.pitch": { + "message": "páirc", + "description": "(function name) Play a note." + }, + "music.pitch.summary": { + "message": "Seinn nóta.", + "description": "Play a note." + }, + "music.pitch.param-name.duration": { + "message": "fad", + "description": "(parameter name) A millisecond duration. If negative then sound is continuous until the next call or a call to ``stop``." + }, + "music.pitch.param-doc.duration": { + "message": "Fad milleasoicind. Má tá fuaim dhiúltach ansin leanúnach go dtí an chéad ghlao eile nó glao ar {{stop}}.", + "description": "Parameter docs" + }, + "music.pitch.param-name.frequency": { + "message": "minicíocht", + "description": "(parameter name) An integer frequency" + }, + "music.pitch.param-doc.frequency": { + "message": "Minicíocht slánuimhir", + "description": "Parameter docs" + }, + "music.pitch.param-name.pin": { + "message": "biorán", + "description": "(parameter name) Optional output pin (default ``pin0``)." + }, + "music.pitch.param-doc.pin": { + "message": "Bioráin aschuir roghnach (réamhshocraithe {{pin0}}).", + "description": "Parameter docs" + }, + "music.pitch.param-name.wait": { + "message": "fan", + "description": "(parameter name) If ``wait`` is set to ``True``, this function is blocking." + }, + "music.pitch.param-doc.wait": { + "message": "Má tá {{wait}} socraithe go {{True}}, tá an fheidhm seo ag blocáil.", + "description": "Parameter docs" + }, + "music.stop": { + "message": "stad", + "description": "(function name) Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.summary": { + "message": "Stopann sé gach athsheinm ceoil ar an gcainteoir tógtha isteach agus aon fhuaim aschur bioráin.", + "description": "Stops all music playback on the built-in speaker and any pin outputting sound." + }, + "music.stop.param-name.pin": { + "message": "pionna", + "description": "(parameter name) An optional argument can be provided to specify a pin, e.g. ``music.stop(pin1)``." + }, + "music.stop.param-doc.pin": { + "message": "Is féidir argóint roghnach a chur ar fáil chun biorán a shonrú, m.sh. {{music.stop(pin1)}}.", + "description": "Parameter docs" + }, + "music.reset": { + "message": "athshocrú", + "description": "(function name) Resets ticks, bpm, duration and octave to their default values." + }, + "music.reset.summary": { + "message": "Athshocraigh sceartáin, bpm, fad agus ochtach chuig a luachanna réamhshocraithe.", + "description": "Resets ticks, bpm, duration and octave to their default values." + }, + "neopixel": { + "message": "neopixel", + "description": "(module name) Individually addressable RGB and RGBW LED strips." + }, + "neopixel.summary": { + "message": "Stiallacha RGB agus RGBW LED atá inseolta ina n-aonar.", + "description": "Individually addressable RGB and RGBW LED strips." + }, + "neopixel.NeoPixel.__init__": { + "message": "init", + "description": "(function name) Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.summary": { + "message": "Túsaigh stiall nua de soilse neopicsel a rialaítear trí bhiorán.", + "description": "Initialise a new strip of neopixel LEDs controlled via a pin." + }, + "neopixel.NeoPixel.__init__.param-name.bpp": { + "message": "bpp", + "description": "(parameter name) Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB." + }, + "neopixel.NeoPixel.__init__.param-doc.bpp": { + "message": "Bearta in aghaidh an phicteilín. Maidir le tacaíocht neopicsel RGBW, pas 4 seachas mainneachtain 3 do RGB agus GRB.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.n": { + "message": "n", + "description": "(parameter name) The number of neopixels in the strip." + }, + "neopixel.NeoPixel.__init__.param-doc.n": { + "message": "Líon na neopicsel sa stiall.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__init__.param-name.pin": { + "message": "biorán", + "description": "(parameter name) The pin controlling the neopixel strip." + }, + "neopixel.NeoPixel.__init__.param-doc.pin": { + "message": "An biorán a rialaíonn an stiall neopicsel.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.clear": { + "message": "soiléir", + "description": "(function name) Clear all the pixels." + }, + "neopixel.NeoPixel.clear.summary": { + "message": "Glan na picteilíní go léir.", + "description": "Clear all the pixels." + }, + "neopixel.NeoPixel.show": { + "message": "taispeáin", + "description": "(function name) Show the pixels." + }, + "neopixel.NeoPixel.show.summary": { + "message": "Taispeáin na picteilíní.", + "description": "Show the pixels." + }, + "neopixel.NeoPixel.write": { + "message": "scríobh", + "description": "(function name) Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.write.summary": { + "message": "Taispeáin na picteilíní (micro:bit V2 amháin).", + "description": "Show the pixels (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill": { + "message": "líonadh", + "description": "(function name) Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.summary": { + "message": "Dathaigh gach picteilín luach RGB / RGBW ar leith (micro:bit V2 amháin).", + "description": "Colour all pixels a given RGB/RGBW value (micro:bit V2 only)." + }, + "neopixel.NeoPixel.fill.param-name.colour": { + "message": "dath", + "description": "(parameter name) A tuple of the same length as the number of bytes per pixel (bpp)." + }, + "neopixel.NeoPixel.fill.param-doc.colour": { + "message": "Tupla den fhad céanna le líon na mbeart in aghaidh an phicteilín (bpp).", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__": { + "message": "socraigh mír", + "description": "(function name) Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.summary": { + "message": "Socraigh dath picteilín.", + "description": "Set a pixel colour." + }, + "neopixel.NeoPixel.__setitem__.param-name.key": { + "message": "eochair", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__setitem__.param-doc.key": { + "message": "Uimhir an phicteilín.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__setitem__.param-name.value": { + "message": "luach", + "description": "(parameter name) The colour." + }, + "neopixel.NeoPixel.__setitem__.param-doc.value": { + "message": "An dath.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__getitem__": { + "message": "faigh mír", + "description": "(function name) Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.summary": { + "message": "Faigh dath picteilín.", + "description": "Get a pixel colour." + }, + "neopixel.NeoPixel.__getitem__.param-name.key": { + "message": "eochair", + "description": "(parameter name) The pixel number." + }, + "neopixel.NeoPixel.__getitem__.param-doc.key": { + "message": "Uimhir an phicteilín.", + "description": "Parameter docs" + }, + "neopixel.NeoPixel.__len__": { + "message": "len", + "description": "(function name) Get length of this pixel strip." + }, + "neopixel.NeoPixel.__len__.summary": { + "message": "Faigh fad an stiall picteilín seo.", + "description": "Get length of this pixel strip." + }, + "os": { + "message": "os", + "description": "(module name) Access the file system." + }, + "os.summary": { + "message": "Rochtain a fháil ar an gcóras comhad.", + "description": "Access the file system." + }, + "os.listdir": { + "message": "listdir", + "description": "(function name) List files." + }, + "os.listdir.summary": { + "message": "Liostaigh comhaid.", + "description": "List files." + }, + "os.remove": { + "message": "bain", + "description": "(function name) Remove (delete) a file." + }, + "os.remove.summary": { + "message": "Bain (scrios) comhad.", + "description": "Remove (delete) a file." + }, + "os.remove.param-name.filename": { + "message": "ainm comhaid", + "description": "(parameter name) The file to delete." + }, + "os.remove.param-doc.filename": { + "message": "An comhad le scriosadh.", + "description": "Parameter docs" + }, + "os.size": { + "message": "méid", + "description": "(function name) Returns the size of a file." + }, + "os.size.summary": { + "message": "Tuairisceáin méid comhaid.", + "description": "Returns the size of a file." + }, + "os.size.param-name.filename": { + "message": "ainm comhaid", + "description": "(parameter name) The file" + }, + "os.size.param-doc.filename": { + "message": "An comhad", + "description": "Parameter docs" + }, + "os.uname_result": { + "message": "toradh uname", + "description": "(class name) Result of ``os.uname()``" + }, + "os.uname_result.summary": { + "message": "Toradh de {{os.uname()}}", + "description": "Result of ``os.uname()``" + }, + "os.uname_result.sysname": { + "message": "ainm an chórais", + "description": "(field name) Operating system name." + }, + "os.uname_result.sysname.summary": { + "message": "Ainm an chórais oibriúcháin.", + "description": "Operating system name." + }, + "os.uname_result.nodename": { + "message": "ainm nóid", + "description": "(field name) Name of machine on network (implementation-defined)." + }, + "os.uname_result.nodename.summary": { + "message": "Ainm an mheaisín ar an líonra (cur i bhfeidhm sainithe).", + "description": "Name of machine on network (implementation-defined)." + }, + "os.uname_result.release": { + "message": "scaoileadh", + "description": "(field name) Operating system release." + }, + "os.uname_result.release.summary": { + "message": "Scaoileadh an chórais oibriúcháin.", + "description": "Operating system release." + }, + "os.uname_result.version": { + "message": "leagan", + "description": "(field name) Operating system version." + }, + "os.uname_result.version.summary": { + "message": "Leagan an chórais oibriúcháin.", + "description": "Operating system version." + }, + "os.uname_result.machine": { + "message": "meaisín", + "description": "(field name) Hardware identifier." + }, + "os.uname_result.machine.summary": { + "message": "Aitheantóir crua-earraí.", + "description": "Hardware identifier." + }, + "os.uname": { + "message": "uname", + "description": "(function name) Returns information identifying the current operating system." + }, + "os.uname.summary": { + "message": "Tuairisceáin faisnéis a aithníonn an córas oibriúcháin reatha.", + "description": "Returns information identifying the current operating system." + }, + "radio": { + "message": "raidió", + "description": "(module name) Communicate between micro:bits with the built-in radio." + }, + "radio.summary": { + "message": "Cumarsáid a dhéanamh idir micro:bit leis an raidió tógtha.", + "description": "Communicate between micro:bits with the built-in radio." + }, + "radio.RATE_1MBIT": { + "message": "ráta 1mbit", + "description": "(field name) Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_1MBIT.summary": { + "message": "Tairiseach a úsáidtear chun tréchur 1 MBit an dara ceann a léiriú.", + "description": "Constant used to indicate a throughput of 1 MBit a second." + }, + "radio.RATE_2MBIT": { + "message": "ráta 2mbit", + "description": "(field name) Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.RATE_2MBIT.summary": { + "message": "Tairiseach a úsáidtear chun tréchur 2 MBit an dara ceann a léiriú.", + "description": "Constant used to indicate a throughput of 2 MBit a second." + }, + "radio.on": { + "message": "ar", + "description": "(function name) Turns the radio on." + }, + "radio.on.summary": { + "message": "Casann sé an raidió air.", + "description": "Turns the radio on." + }, + "radio.off": { + "message": "as", + "description": "(function name) Turns off the radio, saving power and memory." + }, + "radio.off.summary": { + "message": "Múchann sé an raidió, ag sábháil cumhachta agus cuimhne.", + "description": "Turns off the radio, saving power and memory." + }, + "radio.config": { + "message": "cumraíocht", + "description": "(function name) Configures the radio." + }, + "radio.config.summary": { + "message": "Cumraigh an raidió.", + "description": "Configures the radio." + }, + "radio.config.param-name.address": { + "message": "seoladh", + "description": "(parameter name) (default=0x75626974) an arbitrary name, expressed as a 32-bit address, that's used to filter incoming packets at the hardware level, keeping only those that match the address you set.\nThe default used by other micro:bit related platforms is the default setting used here." + }, + "radio.config.param-doc.address": { + "message": "(default=0x75626974) ainm treallach, arna shloinneadh mar sheoladh 32-giotán, a úsáidtear chun paicéid atá ag teacht isteach a scagadh ag leibhéal na crua-earraí, gan ach iad siúd a mheaitseáil leis an seoladh a shocraigh tú a choinneáil.\nIs é an réamhshocrú a úsáideann ardáin eile a bhaineann le micro:bit an socrú réamhshocraithe a úsáidtear anseo.", + "description": "Parameter docs" + }, + "radio.config.param-name.channel": { + "message": "cainéal", + "description": "(parameter name) (default=7) an integer value from 0 to 83 (inclusive) that defines an arbitrary \"channel\" to which the radio is tuned.\nMessages will be sent via this channel and only messages received via this channel will be put onto the incoming message queue. Each step is 1MHz wide, based at 2400MHz." + }, + "radio.config.param-doc.channel": { + "message": "(réamhshocrú = 7) slánuimhir luach ó 0 go 83 (san áireamh) a shainmhíníonn \"cainéal\" treallach a bhfuil an raidió tiúnta leis.\nSeolfar teachtaireachtaí tríd an gcainéal seo agus ní chuirfear ach teachtaireachtaí a fhaightear tríd an gcainéal seo ar an scuaine teachtaireachtaí atá ag teacht isteach. Tá gach céim 1MHz ar leithead, bunaithe ar 2400MHz.", + "description": "Parameter docs" + }, + "radio.config.param-name.data_rate": { + "message": "ráta sonraí", + "description": "(parameter name) (default=``radio.RATE_1MBIT``) indicates the speed at which data throughput takes place.\nCan be one of the following constants defined in the ``radio`` module: ``RATE_250KBIT``, ``RATE_1MBIT`` or ``RATE_2MBIT``." + }, + "radio.config.param-doc.data_rate": { + "message": "(réamhshocrú={{radio.RATE_1MBIT}}) an luas ag a dtarlaíonn tréchur sonraí.\nIs féidir a bheith ar cheann de na tairisigh seo a leanas a shainmhínítear sa mhodúl {{radio}} : {{RATE_250KBIT}}, {{RATE_1MBIT}} nó {{RATE_2MBIT}}.", + "description": "Parameter docs" + }, + "radio.config.param-name.group": { + "message": "grúpa", + "description": "(parameter name) (default=0) an 8-bit value (0-255) used with the ``address`` when filtering messages.\nConceptually, \"address\" is like a house/office address and \"group\" is like the person at that address to which you want to send your message." + }, + "radio.config.param-doc.group": { + "message": "(default=0) luach 8-giotán (0-255) a úsáidtear leis an {{address}} agus teachtaireachtaí á scagadh.\nGo coincheapúil, tá \"seoladh\" cosúil le seoladh tí / oifige agus tá \"grúpa\" cosúil leis an duine ag an seoladh sin ar mian leat do theachtaireacht a sheoladh chuige.", + "description": "Parameter docs" + }, + "radio.config.param-name.length": { + "message": "fad", + "description": "(parameter name) (default=32) defines the maximum length, in bytes, of a message sent via the radio.\nIt can be up to 251 bytes long (254 - 3 bytes for S0, LENGTH and S1 preamble)." + }, + "radio.config.param-doc.length": { + "message": "Sainmhíníonn (réamhshocrú=32) an fad uasta, i mbéiteanna, de theachtaireacht a sheoltar tríd an raidió.\nFéadfaidh sé a bheith suas le 251 beart ar fhad (254 - 3 beart do réamhrá S0, FAD agus S1).", + "description": "Parameter docs" + }, + "radio.config.param-name.power": { + "message": "cumhacht", + "description": "(parameter name) (default=6) is an integer value from 0 to 7 (inclusive) to indicate the strength of signal used when broadcasting a message.\nThe higher the value the stronger the signal, but the more power is consumed by the device. The numbering translates to positions in the following list of dBm (decibel milliwatt) values: -30, -20, -16, -12, -8, -4, 0, 4." + }, + "radio.config.param-doc.power": { + "message": "(réamhshocrú = 6) Is luach slánuimhir ó 0 go 7 (san áireamh) a chur in iúl ar an neart comhartha a úsáidtear nuair a chraoladh teachtaireacht.\nDá airde an luach is ea is láidre an comhartha, ach is é an gléas is mó a chaitheann an chumhacht. Aistríonn an t-uimhriú go poist sa liosta seo a leanas de luachanna dBm (decibel milliwatt): -30, -20, -16, -12, -8, -4, 0, 4.", + "description": "Parameter docs" + }, + "radio.config.param-name.queue": { + "message": "scuaine", + "description": "(parameter name) (default=3) specifies the number of messages that can be stored on the incoming message queue.\nIf there are no spaces left on the queue for incoming messages, then the incoming message is dropped." + }, + "radio.config.param-doc.queue": { + "message": "(réamhshocrú = 3) sonraítear líon na dteachtaireachtaí is féidir a stóráil ar an scuaine teachtaireachta isteach.\nMura bhfuil aon spásanna fágtha ar an scuaine le haghaidh teachtaireachtaí isteach, ansin tá an teachtaireacht ag teacht isteach thit.", + "description": "Parameter docs" + }, + "radio.reset": { + "message": "athshocrú", + "description": "(function name) Reset the settings to their default values." + }, + "radio.reset.summary": { + "message": "Athshocraigh na socruithe dá luachanna réamhshocraithe.", + "description": "Reset the settings to their default values." + }, + "radio.send_bytes": { + "message": "seol bearta", + "description": "(function name) Sends a message containing bytes." + }, + "radio.send_bytes.summary": { + "message": "Seolann seo teachtaireacht ina bhfuil bearta.", + "description": "Sends a message containing bytes." + }, + "radio.send_bytes.param-name.message": { + "message": "teachtaireacht", + "description": "(parameter name) The bytes to send." + }, + "radio.send_bytes.param-doc.message": { + "message": "Na bearta le seoladh.", + "description": "Parameter docs" + }, + "radio.receive_bytes": { + "message": "bearta a fháil", + "description": "(function name) Receive the next incoming message on the message queue." + }, + "radio.receive_bytes.summary": { + "message": "Faigh an chéad teachtaireacht eile isteach ar an scuaine teachtaireachtaí.", + "description": "Receive the next incoming message on the message queue." + }, + "radio.receive_bytes_into": { + "message": "bearta a fháil isteach i", + "description": "(function name) Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.summary": { + "message": "Cóipeáil an chéad teachtaireacht isteach eile ar an scuaine teachtaireachta isteach i maolán.", + "description": "Copy the next incoming message on the message queue into a buffer." + }, + "radio.receive_bytes_into.param-name.buffer": { + "message": "maolán", + "description": "(parameter name) The target buffer. The message is truncated if larger than the buffer." + }, + "radio.receive_bytes_into.param-doc.buffer": { + "message": "An maolán sprice. Tá an teachtaireacht teasctha má tá sé níos mó ná an maolán.", + "description": "Parameter docs" + }, + "radio.send": { + "message": "seol", + "description": "(function name) Sends a message string." + }, + "radio.send.summary": { + "message": "Seolann seo teaghrán teachtaireachta.", + "description": "Sends a message string." + }, + "radio.send.param-name.message": { + "message": "teachtaireacht", + "description": "(parameter name) The string to send." + }, + "radio.send.param-doc.message": { + "message": "An sreangán le seoladh.", + "description": "Parameter docs" + }, + "radio.receive": { + "message": "faigh", + "description": "(function name) Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive.summary": { + "message": "Oibríonn sé ar an mbealach céanna le {{receive_bytes}} ach filleann sé cibé rud a seoladh.", + "description": "Works in exactly the same way as ``receive_bytes`` but returns whatever was sent." + }, + "radio.receive_full": { + "message": "faigh iomlán", + "description": "(function name) Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "radio.receive_full.summary": { + "message": "Tuairisceáin tupla ina bhfuil trí luach a léiríonn an chéad teachtaireacht eile ag teacht isteach ar an scuaine teachtaireacht.", + "description": "Returns a tuple containing three values representing the next incoming message on the message queue." + }, + "random": { + "message": "randamach", + "description": "(module name) Generate random numbers." + }, + "random.summary": { + "message": "Gin uimhreacha randamacha.", + "description": "Generate random numbers." + }, + "random.getrandbits": { + "message": "getrandbits", + "description": "(function name) Generate an integer with ``n`` random bits." + }, + "random.getrandbits.summary": { + "message": "Gin slánuimhir le {{n}} giotán randamach.", + "description": "Generate an integer with ``n`` random bits." + }, + "random.getrandbits.param-name.n": { + "message": "n", + "description": "(parameter name) A value between 1-30 (inclusive)." + }, + "random.getrandbits.param-doc.n": { + "message": "Luach idir 1-30 (san áireamh).", + "description": "Parameter docs" + }, + "random.seed": { + "message": "síol", + "description": "(function name) Initialize the random number generator." + }, + "random.seed.summary": { + "message": "Túsaigh an gineadóir uimhreacha randamacha.", + "description": "Initialize the random number generator." + }, + "random.seed.param-name.n": { + "message": "n", + "description": "(parameter name) The integer seed" + }, + "random.seed.param-doc.n": { + "message": "An síol slánuimhir", + "description": "Parameter docs" + }, + "random.randint": { + "message": "randint", + "description": "(function name) Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.summary": { + "message": "Roghnaigh slánuimhir randamach idir {{a}} agus {{b}} san áireamh.", + "description": "Choose a random integer between ``a`` and ``b`` inclusive." + }, + "random.randint.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.randint.param-doc.a": { + "message": "Luach tosaigh don raon (san áireamh)", + "description": "Parameter docs" + }, + "random.randint.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.randint.param-doc.b": { + "message": "Luach deiridh don raon (san áireamh)", + "description": "Parameter docs" + }, + "random.randrange-1": { + "message": "randrange", + "description": "(function name) Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.summary": { + "message": "Roghnaigh slánuimhir a roghnaíodh go randamach idir nialas agus suas le (ach ní\nlena n-áirítear) {{stop}}.", + "description": "Choose a randomly selected integer between zero and up to (but not\nincluding) ``stop``." + }, + "random.randrange-1.param-name.stop": { + "message": "stad", + "description": "(parameter name) End value for the range (exclusive)" + }, + "random.randrange-1.param-doc.stop": { + "message": "Luach deiridh don raon (eisiach)", + "description": "Parameter docs" + }, + "random.randrange-2": { + "message": "randrange", + "description": "(function name) Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.summary": { + "message": "Roghnaigh eilimint a roghnaíodh go randamach ó {{range(start, stop, step)}}.", + "description": "Choose a randomly selected element from ``range(start, stop, step)``." + }, + "random.randrange-2.param-name.start": { + "message": "tús", + "description": "(parameter name) The start of the range (inclusive)" + }, + "random.randrange-2.param-doc.start": { + "message": "Tús an raoin (san áireamh)", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.step": { + "message": "céim", + "description": "(parameter name) The step." + }, + "random.randrange-2.param-doc.step": { + "message": "An chéim.", + "description": "Parameter docs" + }, + "random.randrange-2.param-name.stop": { + "message": "stad", + "description": "(parameter name) The end of the range (exclusive)" + }, + "random.randrange-2.param-doc.stop": { + "message": "Deireadh an raoin (eisiach)", + "description": "Parameter docs" + }, + "random.choice": { + "message": "rogha", + "description": "(function name) Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.summary": { + "message": "Roghnaigh eilimint randamach ón seicheamh neamhfholamh {{seq}}.", + "description": "Choose a random element from the non-empty sequence ``seq``." + }, + "random.choice.param-name.seq": { + "message": "seq", + "description": "(parameter name) A sequence." + }, + "random.choice.param-doc.seq": { + "message": "Seicheamh.", + "description": "Parameter docs" + }, + "random.random": { + "message": "randamach", + "description": "(function name) Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.random.summary": { + "message": "Gin uimhir randamach snámhphointe sa raon [0.0, 1.0).", + "description": "Generate a random floating point number in the range [0.0, 1.0)." + }, + "random.uniform": { + "message": "éide", + "description": "(function name) Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.summary": { + "message": "Seol uimhir randamach snámhphointe ar ais idir {{a}} agus {{b}} san áireamh.", + "description": "Return a random floating point number between ``a`` and ``b`` inclusive." + }, + "random.uniform.param-name.a": { + "message": "a", + "description": "(parameter name) Start value for the range (inclusive)" + }, + "random.uniform.param-doc.a": { + "message": "Luach tosaigh don raon (san áireamh)", + "description": "Parameter docs" + }, + "random.uniform.param-name.b": { + "message": "b", + "description": "(parameter name) End value for the range (inclusive)" + }, + "random.uniform.param-doc.b": { + "message": "Luach deiridh don raon (san áireamh)", + "description": "Parameter docs" + }, + "speech": { + "message": "óráid", + "description": "(module name) Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.summary": { + "message": "Cuir an micro:bit ag caint, ag canadh agus ag déanamh fuaimeanna eile cosúil le cainte.", + "description": "Make the micro:bit talk, sing and make other speech like sounds." + }, + "speech.translate": { + "message": "aistrigh", + "description": "(function name) Translate English words to phonemes." + }, + "speech.translate.summary": { + "message": "Aistrigh focail Bhéarla go fóinéimí.", + "description": "Translate English words to phonemes." + }, + "speech.translate.param-name.words": { + "message": "focail", + "description": "(parameter name) A string of English words." + }, + "speech.translate.param-doc.words": { + "message": "Teaghrán focal Béarla.", + "description": "Parameter docs" + }, + "speech.pronounce": { + "message": "fuaimniú", + "description": "(function name) Pronounce phonemes." + }, + "speech.pronounce.summary": { + "message": "Fóinéimí a fhuaimniú.", + "description": "Pronounce phonemes." + }, + "speech.pronounce.param-name.mouth": { + "message": "béal", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.pronounce.param-doc.mouth": { + "message": "Uimhir a sheasann do bhéal an ghutha", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.phonemes": { + "message": "fóinéimí", + "description": "(parameter name) The string of phonemes to pronounce" + }, + "speech.pronounce.param-doc.phonemes": { + "message": "An teaghrán fóinéimí a fhuaimniú", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pin": { + "message": "biorán", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.pronounce.param-doc.pin": { + "message": "Is féidir argóint roghnach chun an bioráin aschuir a shonrú a úsáid chun mainneachtain {{pin0}}a shárú.\nMura dteastaíonn uainn aon fhuaim a sheinm as na bioráin is féidir {{pin=None}}a úsáid. micro:bit V2 amháin.", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.pitch": { + "message": "airde", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.pronounce.param-doc.pitch": { + "message": "Uimhir a sheasann do pháirc an ghutha", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.speed": { + "message": "luas", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.pronounce.param-doc.speed": { + "message": "Uimhir a léiríonn luas an ghutha", + "description": "Parameter docs" + }, + "speech.pronounce.param-name.throat": { + "message": "scornach", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.pronounce.param-doc.throat": { + "message": "Uimhir a sheasann do scornach an ghutha", + "description": "Parameter docs" + }, + "speech.say": { + "message": "abair", + "description": "(function name) Say English words." + }, + "speech.say.summary": { + "message": "Abair focail Bhéarla.", + "description": "Say English words." + }, + "speech.say.param-name.mouth": { + "message": "béal", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.say.param-doc.mouth": { + "message": "Uimhir a sheasann do bhéal an ghutha", + "description": "Parameter docs" + }, + "speech.say.param-name.pin": { + "message": "biorán", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.say.param-doc.pin": { + "message": "Is féidir argóint roghnach a úsáid chun an biorán aschuir a shonrú chun an réamhshocrú {{pin0}} a shárú.\nMura dteastaíonn uainn go seinnfí aon fhuaim as na bioráin is féidir {{pin=None}} a úsáid. micro:bit V2 amháin.", + "description": "Parameter docs" + }, + "speech.say.param-name.pitch": { + "message": "airde", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.say.param-doc.pitch": { + "message": "Uimhir a léiríonn airde an ghutha", + "description": "Parameter docs" + }, + "speech.say.param-name.speed": { + "message": "luas", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.say.param-doc.speed": { + "message": "Uimhir a léiríonn luas an ghlór", + "description": "Parameter docs" + }, + "speech.say.param-name.throat": { + "message": "scornach", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.say.param-doc.throat": { + "message": "Uimhir a sheasann do scornach an ghutha", + "description": "Parameter docs" + }, + "speech.say.param-name.words": { + "message": "focail", + "description": "(parameter name) The string of words to say." + }, + "speech.say.param-doc.words": { + "message": "An teaghrán focal le rá.", + "description": "Parameter docs" + }, + "speech.sing": { + "message": "canadh", + "description": "(function name) Sing phonemes." + }, + "speech.sing.summary": { + "message": "Can fóinéimí.", + "description": "Sing phonemes." + }, + "speech.sing.param-name.mouth": { + "message": "béal", + "description": "(parameter name) A number representing the mouth of the voice" + }, + "speech.sing.param-doc.mouth": { + "message": "Uimhir a sheasann do bhéal an ghutha", + "description": "Parameter docs" + }, + "speech.sing.param-name.phonemes": { + "message": "fóinéimí", + "description": "(parameter name) The string of words to sing." + }, + "speech.sing.param-doc.phonemes": { + "message": "An teaghrán focal le canadh.", + "description": "Parameter docs" + }, + "speech.sing.param-name.pin": { + "message": "biorán", + "description": "(parameter name) Optional argument to specify the output pin can be used to override the default of ``pin0``.\nIf we do not want any sound to play out of the pins can use ``pin=None``. micro:bit V2 only." + }, + "speech.sing.param-doc.pin": { + "message": "Is féidir argóint roghnach chun an bioráin aschuir a shonrú a úsáid chun mainneachtain {{pin0}}a shárú.\nMura dteastaíonn uainn aon fhuaim a sheinm as na bioráin is féidir {{pin=None}}a úsáid. micro:bit V2 amháin.", + "description": "Parameter docs" + }, + "speech.sing.param-name.pitch": { + "message": "airde", + "description": "(parameter name) A number representing the pitch of the voice" + }, + "speech.sing.param-doc.pitch": { + "message": "Uimhir a léiríonn airde an ghutha", + "description": "Parameter docs" + }, + "speech.sing.param-name.speed": { + "message": "luas", + "description": "(parameter name) A number representing the speed of the voice" + }, + "speech.sing.param-doc.speed": { + "message": "Uimhir a léiríonn luas an ghlór", + "description": "Parameter docs" + }, + "speech.sing.param-name.throat": { + "message": "scornach", + "description": "(parameter name) A number representing the throat of the voice" + }, + "speech.sing.param-doc.throat": { + "message": "Uimhir a sheasann do scornach an ghutha", + "description": "Parameter docs" + }, + "struct": { + "message": "struct", + "description": "(module name) Pack and unpack primitive data types." + }, + "struct.summary": { + "message": "Pacáistiú agus díphacáil cineálacha sonraí bunúsach.", + "description": "Pack and unpack primitive data types." + }, + "struct.calcsize": { + "message": "calcsize", + "description": "(function name) Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.summary": { + "message": "Faigh líon na mbeart a theastaíonn chun an {{fmt}} tugtha a stóráil.", + "description": "Get the number of bytes needed to store the given ``fmt``." + }, + "struct.calcsize.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) A format string." + }, + "struct.calcsize.param-doc.fmt": { + "message": "Teaghrán formáide.", + "description": "Parameter docs" + }, + "struct.pack": { + "message": "pacáiste", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack.summary": { + "message": "Pacáil luachanna de réir teaghrán formáide.", + "description": "Pack values according to a format string." + }, + "struct.pack.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack.param-doc.*vn": { + "message": "Na luachanna atá fágtha.", + "description": "Parameter docs" + }, + "struct.pack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack.param-doc.fmt": { + "message": "An teaghrán formáide.", + "description": "Parameter docs" + }, + "struct.pack.param-name.v1": { + "message": "v1", + "description": "(parameter name) The first value." + }, + "struct.pack.param-doc.v1": { + "message": "An chéad luach.", + "description": "Parameter docs" + }, + "struct.pack_into": { + "message": "pacáil isteach i", + "description": "(function name) Pack values according to a format string." + }, + "struct.pack_into.summary": { + "message": "Pacáil luachanna de réir teaghrán formáide.", + "description": "Pack values according to a format string." + }, + "struct.pack_into.param-name.*vn": { + "message": "*vn", + "description": "(parameter name) The remaining values." + }, + "struct.pack_into.param-doc.*vn": { + "message": "Na luachanna atá fágtha.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.buffer": { + "message": "maolán", + "description": "(parameter name) The target buffer to write into." + }, + "struct.pack_into.param-doc.buffer": { + "message": "An maolán sprice le scríobh isteach.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.pack_into.param-doc.fmt": { + "message": "An teaghrán formáide.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.offset": { + "message": "fritháireamh", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.pack_into.param-doc.offset": { + "message": "An fritháireamh isteach sa mhaolán. D'fhéadfadh sé a bheith diúltach le comhaireamh ó dheireadh an mhaoláin.", + "description": "Parameter docs" + }, + "struct.pack_into.param-name.v1": { + "message": "v1", + "description": "(parameter name) The first value." + }, + "struct.pack_into.param-doc.v1": { + "message": "An chéad luach.", + "description": "Parameter docs" + }, + "struct.unpack": { + "message": "díphacáil", + "description": "(function name) Unpack data according to a format string." + }, + "struct.unpack.summary": { + "message": "Díphacáil sonraí de réir teaghrán formáide.", + "description": "Unpack data according to a format string." + }, + "struct.unpack.param-name.data": { + "message": "sonraí", + "description": "(parameter name) The data." + }, + "struct.unpack.param-doc.data": { + "message": "Na sonraí.", + "description": "Parameter docs" + }, + "struct.unpack.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack.param-doc.fmt": { + "message": "An teaghrán formáide.", + "description": "Parameter docs" + }, + "struct.unpack_from": { + "message": "díphacáil ó", + "description": "(function name) Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.summary": { + "message": "Díphacáil sonraí ó mhaolán de réir teaghrán formáide.", + "description": "Unpack data from a buffer according to a format string." + }, + "struct.unpack_from.param-name.buffer": { + "message": "maolán", + "description": "(parameter name) The source buffer to read from." + }, + "struct.unpack_from.param-doc.buffer": { + "message": "An maolán foinseach le léamh as.", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.fmt": { + "message": "fmt", + "description": "(parameter name) The format string." + }, + "struct.unpack_from.param-doc.fmt": { + "message": "An teaghrán formáide.", + "description": "Parameter docs" + }, + "struct.unpack_from.param-name.offset": { + "message": "fritháireamh", + "description": "(parameter name) The offset into the buffer. May be negative to count from the end of the buffer." + }, + "struct.unpack_from.param-doc.offset": { + "message": "An fritháireamh isteach sa mhaolán. D'fhéadfadh sé a bheith diúltach le comhaireamh ó dheireadh an mhaoláin.", + "description": "Parameter docs" + }, + "sys": { + "message": "sys", + "description": "(module name) System specific functions" + }, + "sys.summary": { + "message": "Feidhmeanna a bhaineann go sonrach leis an gcóras", + "description": "System specific functions" + }, + "sys.exit": { + "message": "scoir", + "description": "(function name) Terminate current program with a given exit code." + }, + "sys.exit.summary": { + "message": "Cuir deireadh leis an ríomhchlár reatha le cód scoir ar leith.", + "description": "Terminate current program with a given exit code." + }, + "sys.exit.param-name.retval": { + "message": "retval", + "description": "(parameter name) The exit code or message." + }, + "sys.exit.param-doc.retval": { + "message": "An cód scoir nó an teachtaireacht.", + "description": "Parameter docs" + }, + "sys.print_exception": { + "message": "eisceacht priontála", + "description": "(function name) Print an exception with a traceback." + }, + "sys.print_exception.summary": { + "message": "Priontáil eisceacht le rianú siar.", + "description": "Print an exception with a traceback." + }, + "sys.print_exception.param-name.exc": { + "message": "exc", + "description": "(parameter name) The exception to print" + }, + "sys.print_exception.param-doc.exc": { + "message": "An eisceacht maidir le priontáil", + "description": "Parameter docs" + }, + "sys.argv": { + "message": "argv", + "description": "(field name) A mutable list of arguments the current program was started with." + }, + "sys.argv.summary": { + "message": "Liosta inathraithe d'argóintí a cuireadh tús leis an gclár reatha leo.", + "description": "A mutable list of arguments the current program was started with." + }, + "sys.byteorder": { + "message": "byteorder", + "description": "(field name) The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.byteorder.summary": { + "message": "Ord beart an chórais ({{\"little\"}} nó {{\"big\"}}).", + "description": "The byte order of the system (``\"little\"`` or ``\"big\"``)." + }, + "sys.implementation": { + "message": "cur i bhfeidhm", + "description": "(field name) Object with information about the current Python implementation." + }, + "sys.implementation.summary": { + "message": "Cuspóir le faisnéis faoi chur i bhfeidhm reatha Python.", + "description": "Object with information about the current Python implementation." + }, + "sys.maxsize": { + "message": "uasmhéid", + "description": "(field name) \nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.maxsize.summary": { + "message": "\nUasluach is féidir le cineál slánuimhir dhúchasach a shealbhú ar an ardán reatha,\nnó an luach uasta is féidir a léiriú le cineál slánuimhir MicroPython, má tá sé níos lú\nná uasluach ardáin (is é sin an cás i gcás calafoirt MicroPython gan\ntacaíocht int fada).", + "description": "\nMaximum value which a native integer type can hold on the current platform,\nor maximum value representable by MicroPython integer type, if it's smaller\nthan platform max value (that is the case for MicroPython ports without\nlong int support)." + }, + "sys.modules": { + "message": "modúil", + "description": "(field name) Dictionary of loaded modules. " + }, + "sys.modules.summary": { + "message": "Foclóir modúil luchtaithe. ", + "description": "Dictionary of loaded modules. " + }, + "sys.path": { + "message": "cosán", + "description": "(field name) A mutable list of directories to search for imported modules." + }, + "sys.path.summary": { + "message": "Liosta inathraithe d’eolairí le cuardach a dhéanamh ar mhodúil allmhairithe.", + "description": "A mutable list of directories to search for imported modules." + }, + "sys.platform": { + "message": "ardán", + "description": "(field name) The platform that MicroPython is running on. " + }, + "sys.platform.summary": { + "message": "An t-ardán a bhfuil MicroPython ag rith air. ", + "description": "The platform that MicroPython is running on. " + }, + "sys.version": { + "message": "leagan", + "description": "(field name) Python language version that this implementation conforms to, as a string." + }, + "sys.version.summary": { + "message": "Leagan teanga Python a chloíonn leis an gcur i bhfeidhm seo, mar theaghrán.", + "description": "Python language version that this implementation conforms to, as a string." + }, + "sys.version_info": { + "message": "eolas faoin leagan", + "description": "(field name) Python language version that this implementation conforms to, as a tuple of ints." + }, + "sys.version_info.summary": { + "message": "Leagan teanga Python a gcomhlíonann an cur i bhfeidhm seo, mar thupla de shláintiúirí.", + "description": "Python language version that this implementation conforms to, as a tuple of ints." + }, + "time": { + "message": "am", + "description": "(module name) Measure time and add delays to programs." + }, + "time.summary": { + "message": "Tomhais am agus cuir moilleanna le ríomhchláir.", + "description": "Measure time and add delays to programs." + }, + "time.sleep": { + "message": "codladh", + "description": "(function name) Delay a number of seconds." + }, + "time.sleep.summary": { + "message": "Moill a chur ar roinnt soicindí.", + "description": "Delay a number of seconds." + }, + "time.sleep.param-name.seconds": { + "message": "soicindí", + "description": "(parameter name) The number of seconds to sleep for.\nUse a floating-point number to sleep for a fractional number of seconds." + }, + "time.sleep.param-doc.seconds": { + "message": "Líon na soicindí le codladh.\nBain úsáid as uimhir snámhphointe chun codladh ar feadh uimhir chodánach soicind.", + "description": "Parameter docs" + }, + "time.sleep_ms": { + "message": "codladh ms", + "description": "(function name) Delay for given number of milliseconds." + }, + "time.sleep_ms.summary": { + "message": "Moill ar líon áirithe milleasoicindí.", + "description": "Delay for given number of milliseconds." + }, + "time.sleep_ms.param-name.ms": { + "message": "ms", + "description": "(parameter name) The number of milliseconds delay (>= 0)." + }, + "time.sleep_ms.param-doc.ms": { + "message": "Líon na milleasoicindí moill (>= 0).", + "description": "Parameter docs" + }, + "time.sleep_us": { + "message": "codladh linn", + "description": "(function name) Delay for given number of microseconds." + }, + "time.sleep_us.summary": { + "message": "Moill ar líon áirithe micreasoicindí.", + "description": "Delay for given number of microseconds." + }, + "time.sleep_us.param-name.us": { + "message": "linn", + "description": "(parameter name) The number of microseconds delay (>= 0)." + }, + "time.sleep_us.param-doc.us": { + "message": "Líon na micreasoicindí moill (>= 0).", + "description": "Parameter docs" + }, + "time.ticks_ms": { + "message": "sceartáin ms", + "description": "(function name) Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_ms.summary": { + "message": "Faigh cuntar milleasoicind atá ag dul i méid le pointe tagartha treallach,\na chlúdaíonn thart tar éis luach éigin.", + "description": "Get an increasing, millisecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us": { + "message": "tic a chur orainn", + "description": "(function name) Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_us.summary": { + "message": "Faigh cuntar méadaitheach micreasoicind le pointe tagartha treallach,\na chlúdaíonn thart tar éis luach éigin.", + "description": "Get an increasing, microsecond counter with an arbitrary reference point,\nthat wraps around after some value." + }, + "time.ticks_add": { + "message": "cuir sceartáin", + "description": "(function name) Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.summary": { + "message": "Fritháireamh luach ticeanna de réir uimhir ar leith, a d'fhéadfadh a bheith dearfach nó\ndiúltach.", + "description": "Offset ticks value by a given number, which can be either positive or\nnegative." + }, + "time.ticks_add.param-name.delta": { + "message": "deilte", + "description": "(parameter name) An integer offset" + }, + "time.ticks_add.param-doc.delta": { + "message": "Fritháireamh slánuimhir", + "description": "Parameter docs" + }, + "time.ticks_add.param-name.ticks": { + "message": "sceartáin", + "description": "(parameter name) A ticks value" + }, + "time.ticks_add.param-doc.ticks": { + "message": "Luach ticeanna", + "description": "Parameter docs" + }, + "time.ticks_diff": { + "message": "ticeanna difr", + "description": "(function name) Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.summary": { + "message": "Tomhais an difríocht idir luachanna a chuirtear ar ais ó\n{{time.ticks_ms()}} nó {{ticks_us()}}, mar luach sínithe\na d'fhéadfadh timfhilleadh timpeall.", + "description": "Measure ticks difference between values returned from\n``time.ticks_ms()`` or ``ticks_us()``, as a signed value\nwhich may wrap around." + }, + "time.ticks_diff.param-name.ticks1": { + "message": "ticeanna1", + "description": "(parameter name) The value to subtract from" + }, + "time.ticks_diff.param-doc.ticks1": { + "message": "An luach a dhealú ó", + "description": "Parameter docs" + }, + "time.ticks_diff.param-name.ticks2": { + "message": "ticeanna2", + "description": "(parameter name) The value to subtract" + }, + "time.ticks_diff.param-doc.ticks2": { + "message": "An luach a dhealú", + "description": "Parameter docs" + } +} \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/VERSIONS b/lang/ga-ie/typeshed/stdlib/VERSIONS new file mode 100644 index 0000000..67b710f --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/VERSIONS @@ -0,0 +1,50 @@ +# The structure of this file is as follows: +# - Blank lines and comments starting with `#` are ignored. +# - Lines contain the name of a module, followed by a colon, +# a space, and a version range (for example: `symbol: 2.7-3.9`). +# +# Version ranges may be of the form "X.Y-A.B" or "X.Y-". The +# first form means that a module was introduced in version X.Y and last +# available in version A.B. The second form means that the module was +# introduced in version X.Y and is still available in the latest +# version of Python. +# +# If a submodule is not listed separately, it has the same lifetime as +# its parent module. +# +# Python versions before 2.7 are ignored, so any module that was already +# present in 2.7 will have "2.7" as its minimum version. Version ranges +# for unsupported versions of Python 3 (currently 3.5 and lower) are +# generally accurate but we do not guarantee their correctness. + +antigravity: 3.0- +array: 3.0- +audio: 3.0- +builtins: 3.0- +errno: 3.0- +gc: 3.0- +love: 3.0- +machine: 3.0- +math: 3.0- +microbit: 3.0- +micropython: 3.0- +music: 3.0- +neopixel: 3.0- +os: 3.0- +radio: 3.0- +random: 3.0- +speech: 3.0- +struct: 3.0- +sys: 3.0- +this: 3.0- +time: 3.0- +typing_extensions: 3.0- +typing: 3.0- +uarray: 3.0- +ucollections: 3.0- +uerrno: 3.0- +uos: 3.0- +urandom: 3.0- +ustruct: 3.0- +usys: 3.0- +utime: 3.0- \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/_typeshed/__init__.pyi b/lang/ga-ie/typeshed/stdlib/_typeshed/__init__.pyi new file mode 100644 index 0000000..7bf6e72 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/_typeshed/__init__.pyi @@ -0,0 +1,168 @@ +# Utility types for typeshed +# +# See the README.md file in this directory for more information. + +import array +import sys +from os import PathLike +from typing import AbstractSet, Any, Container, Iterable, Protocol, Tuple, TypeVar, Union +from typing_extensions import Literal, final + +_KT = TypeVar("_KT") +_KT_co = TypeVar("_KT_co", covariant=True) +_KT_contra = TypeVar("_KT_contra", contravariant=True) +_VT = TypeVar("_VT") +_VT_co = TypeVar("_VT_co", covariant=True) +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) + +# Use for "self" annotations: +# def __enter__(self: Self) -> Self: ... +Self = TypeVar("Self") # noqa Y001 + +# stable +class IdentityFunction(Protocol): + def __call__(self, __x: _T) -> _T: ... + +class SupportsLessThan(Protocol): + def __lt__(self, __other: Any) -> bool: ... + +SupportsLessThanT = TypeVar("SupportsLessThanT", bound=SupportsLessThan) # noqa: Y001 + +class SupportsDivMod(Protocol[_T_contra, _T_co]): + def __divmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsRDivMod(Protocol[_T_contra, _T_co]): + def __rdivmod__(self, __other: _T_contra) -> _T_co: ... + +class SupportsLenAndGetItem(Protocol[_T_co]): + def __len__(self) -> int: ... + def __getitem__(self, __k: int) -> _T_co: ... + +# Mapping-like protocols + +# stable +class SupportsItems(Protocol[_KT_co, _VT_co]): + def items(self) -> AbstractSet[Tuple[_KT_co, _VT_co]]: ... + +# stable +class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]): + def keys(self) -> Iterable[_KT]: ... + def __getitem__(self, __k: _KT) -> _VT_co: ... + +# stable +class SupportsGetItem(Container[_KT_contra], Protocol[_KT_contra, _VT_co]): + def __getitem__(self, __k: _KT_contra) -> _VT_co: ... + +# stable +class SupportsItemAccess(SupportsGetItem[_KT_contra, _VT], Protocol[_KT_contra, _VT]): + def __setitem__(self, __k: _KT_contra, __v: _VT) -> None: ... + def __delitem__(self, __v: _KT_contra) -> None: ... + +# These aliases are simple strings in Python 2. +StrPath = Union[str, PathLike[str]] # stable +BytesPath = Union[bytes, PathLike[bytes]] # stable +StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable + +OpenTextModeUpdating = Literal[ + "r+", + "+r", + "rt+", + "r+t", + "+rt", + "tr+", + "t+r", + "+tr", + "w+", + "+w", + "wt+", + "w+t", + "+wt", + "tw+", + "t+w", + "+tw", + "a+", + "+a", + "at+", + "a+t", + "+at", + "ta+", + "t+a", + "+ta", + "x+", + "+x", + "xt+", + "x+t", + "+xt", + "tx+", + "t+x", + "+tx", +] +OpenTextModeWriting = Literal["w", "wt", "tw", "a", "at", "ta", "x", "xt", "tx"] +OpenTextModeReading = Literal["r", "rt", "tr", "U", "rU", "Ur", "rtU", "rUt", "Urt", "trU", "tUr", "Utr"] +OpenTextMode = Union[OpenTextModeUpdating, OpenTextModeWriting, OpenTextModeReading] +OpenBinaryModeUpdating = Literal[ + "rb+", + "r+b", + "+rb", + "br+", + "b+r", + "+br", + "wb+", + "w+b", + "+wb", + "bw+", + "b+w", + "+bw", + "ab+", + "a+b", + "+ab", + "ba+", + "b+a", + "+ba", + "xb+", + "x+b", + "+xb", + "bx+", + "b+x", + "+bx", +] +OpenBinaryModeWriting = Literal["wb", "bw", "ab", "ba", "xb", "bx"] +OpenBinaryModeReading = Literal["rb", "br", "rbU", "rUb", "Urb", "brU", "bUr", "Ubr"] +OpenBinaryMode = Union[OpenBinaryModeUpdating, OpenBinaryModeReading, OpenBinaryModeWriting] + +# stable +class HasFileno(Protocol): + def fileno(self) -> int: ... + +FileDescriptor = int # stable +FileDescriptorLike = Union[int, HasFileno] # stable + +# stable +class SupportsRead(Protocol[_T_co]): + def read(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsReadline(Protocol[_T_co]): + def readline(self, __length: int = ...) -> _T_co: ... + +# stable +class SupportsNoArgReadline(Protocol[_T_co]): + def readline(self) -> _T_co: ... + +# stable +class SupportsWrite(Protocol[_T_contra]): + def write(self, __s: _T_contra) -> Any: ... + +ReadableBuffer = Union[bytes, bytearray, memoryview, array.array[Any]] # stable +WriteableBuffer = Union[bytearray, memoryview, array.array[Any]] # stable + +# stable +if sys.version_info >= (3, 10): + from types import NoneType as NoneType +else: + # Used by type checkers for checks involving None (does not exist at runtime) + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... diff --git a/lang/ga-ie/typeshed/stdlib/abc.pyi b/lang/ga-ie/typeshed/stdlib/abc.pyi new file mode 100644 index 0000000..18bb090 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/abc.pyi @@ -0,0 +1,28 @@ +from _typeshed import SupportsWrite +from typing import Any, Callable, Tuple, Type, TypeVar + +_T = TypeVar("_T") +_FuncT = TypeVar("_FuncT", bound=Callable[..., Any]) + +# These definitions have special processing in mypy +class ABCMeta(type): + __abstractmethods__: frozenset[str] + def __init__( + self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any] + ) -> None: ... + def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ... + def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ... + def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ... + def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ... + +def abstractmethod(funcobj: _FuncT) -> _FuncT: ... + +class abstractproperty(property): ... + +# These two are deprecated and not supported by mypy +def abstractstaticmethod(callable: _FuncT) -> _FuncT: ... +def abstractclassmethod(callable: _FuncT) -> _FuncT: ... + +class ABC(metaclass=ABCMeta): ... + +def get_cache_token() -> object: ... diff --git a/lang/ga-ie/typeshed/stdlib/antigravity.pyi b/lang/ga-ie/typeshed/stdlib/antigravity.pyi new file mode 100644 index 0000000..e69de29 diff --git a/lang/ga-ie/typeshed/stdlib/array.pyi b/lang/ga-ie/typeshed/stdlib/array.pyi new file mode 100644 index 0000000..1e4e630 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/array.pyi @@ -0,0 +1,42 @@ +from typing import Generic, Iterable, MutableSequence, TypeVar, Union, overload +from typing_extensions import Literal + +_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"] +_FloatTypeCode = Literal["f", "d"] +_TypeCode = Union[_IntTypeCode, _FloatTypeCode] + +_T = TypeVar("_T", int, float) + +class array(MutableSequence[_T], Generic[_T]): + @overload + def __init__( + self: array[int], + typecode: _IntTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self: array[float], + typecode: _FloatTypeCode, + __initializer: Union[bytes, Iterable[_T]] = ..., + ) -> None: ... + @overload + def __init__( + self, typecode: str, __initializer: Union[bytes, Iterable[_T]] = ... + ) -> None: ... + def append(self, __v: _T) -> None: ... + def decode(self) -> str: ... + def extend(self, __bb: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> _T: ... + @overload + def __getitem__(self, s: slice) -> array[_T]: ... + @overload # type: ignore # Overrides MutableSequence + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: array[_T]) -> None: ... + def __add__(self, x: array[_T]) -> array[_T]: ... + def __iadd__(self, x: array[_T]) -> array[_T]: ... # type: ignore # Overrides MutableSequence + +ArrayType = array diff --git a/lang/ga-ie/typeshed/stdlib/audio.pyi b/lang/ga-ie/typeshed/stdlib/audio.pyi new file mode 100644 index 0000000..b1d39c7 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/audio.pyi @@ -0,0 +1,11 @@ +"""Play sounds using the micro:bit (import ``audio`` for V1 compatibility). +""" + +# Re-export for V1 compatibility. +from .microbit.audio import ( + is_playing as is_playing, + play as play, + stop as stop, + AudioFrame as AudioFrame, + SoundEffect as SoundEffect, +) diff --git a/lang/ga-ie/typeshed/stdlib/builtins.pyi b/lang/ga-ie/typeshed/stdlib/builtins.pyi new file mode 100644 index 0000000..8b7dfb9 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/builtins.pyi @@ -0,0 +1,1334 @@ +import sys +import types +from _typeshed import ( + OpenBinaryMode, + OpenTextMode, + ReadableBuffer, + Self, + StrOrBytesPath, + SupportsDivMod, + SupportsKeysAndGetItem, + SupportsLenAndGetItem, + SupportsLessThan, + SupportsLessThanT, + SupportsRDivMod, + SupportsWrite, +) +from types import CodeType, TracebackType +from typing import ( + IO, + AbstractSet, + Any, + AsyncIterable, + AsyncIterator, + BinaryIO, + ByteString, + Callable, + FrozenSet, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + MutableMapping, + MutableSequence, + MutableSet, + NoReturn, + Protocol, + Reversible, + Sequence, + Set, + Sized, + SupportsAbs, + SupportsBytes, + SupportsComplex, + SupportsFloat, + SupportsInt, + SupportsRound, + TextIO, + Tuple, + Type, + TypeVar, + Union, + ValuesView, + overload, +) +from typing_extensions import Literal, SupportsIndex, final + +if sys.version_info >= (3, 9): + from types import GenericAlias + +class _SupportsTrunc(Protocol): + def __trunc__(self) -> int: ... + +_T = TypeVar("_T") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") +_S = TypeVar("_S") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T3 = TypeVar("_T3") +_T4 = TypeVar("_T4") +_T5 = TypeVar("_T5") +_TT = TypeVar("_TT", bound="type") +_TBE = TypeVar("_TBE", bound="BaseException") + +class object: + __doc__: str | None + __dict__: dict[str, Any] + __slots__: str | Iterable[str] + __module__: str + __annotations__: dict[str, Any] + @property + def __class__(self: _T) -> Type[_T]: ... + # Ignore errors about type mismatch between property getter and setter + @__class__.setter + def __class__(self, __type: Type[object]) -> None: ... # type: ignore # noqa: F811 + def __init__(self) -> None: ... + def __new__(cls: Type[_T]) -> _T: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __eq__(self, o: object) -> bool: ... + def __ne__(self, o: object) -> bool: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + def __format__(self, format_spec: str) -> str: ... + def __getattribute__(self, name: str) -> Any: ... + def __delattr__(self, name: str) -> None: ... + def __sizeof__(self) -> int: ... + def __reduce__(self) -> str | Tuple[Any, ...]: ... + if sys.version_info >= (3, 8): + def __reduce_ex__(self, protocol: SupportsIndex) -> str | Tuple[Any, ...]: ... + else: + def __reduce_ex__(self, protocol: int) -> str | Tuple[Any, ...]: ... + def __dir__(self) -> Iterable[str]: ... + def __init_subclass__(cls) -> None: ... + +class staticmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class classmethod(object): # Special, only valid as a decorator. + __func__: Callable[..., Any] + __isabstractmethod__: bool + def __init__(self, f: Callable[..., Any]) -> None: ... + def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ... + def __get__(self, obj: _T, type: Type[_T] | None = ...) -> Callable[..., Any]: ... + +class type(object): + __base__: type + __bases__: Tuple[type, ...] + __basicsize__: int + __dict__: dict[str, Any] + __dictoffset__: int + __flags__: int + __itemsize__: int + __module__: str + __name__: str + __qualname__: str + __text_signature__: str | None + __weakrefoffset__: int + @overload + def __init__(self, o: object) -> None: ... + @overload + def __init__( + self, name: str, bases: Tuple[type, ...], dict: dict[str, Any], **kwds: Any + ) -> None: ... + @overload + def __new__(cls, o: object) -> type: ... + @overload + def __new__( + cls: Type[_TT], + name: str, + bases: Tuple[type, ...], + namespace: dict[str, Any], + **kwds: Any, + ) -> _TT: ... + def __call__(self, *args: Any, **kwds: Any) -> Any: ... + def __subclasses__(self: _TT) -> list[_TT]: ... + def __instancecheck__(self, instance: Any) -> bool: ... + def __subclasscheck__(self, subclass: type) -> bool: ... + @classmethod + def __prepare__( + metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any + ) -> Mapping[str, Any]: ... + if sys.version_info >= (3, 10): + def __or__(self, t: Any) -> types.UnionType: ... + def __ror__(self, t: Any) -> types.UnionType: ... + +class super(object): + @overload + def __init__(self, t: Any, obj: Any) -> None: ... + @overload + def __init__(self, t: Any) -> None: ... + @overload + def __init__(self) -> None: ... + +class int: + @overload + def __new__( + cls: Type[_T], + x: str | bytes | SupportsInt | SupportsIndex | _SupportsTrunc = ..., + ) -> _T: ... + @overload + def __new__( + cls: Type[_T], x: str | bytes | bytearray, base: SupportsIndex + ) -> _T: ... + def to_bytes( + self, + length: SupportsIndex, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> bytes: ... + @classmethod + def from_bytes( + cls, + bytes: Iterable[SupportsIndex] | SupportsBytes, + byteorder: Literal["little", "big"], + *, + signed: bool = ..., + ) -> int: ... # TODO buffer object argument + def __add__(self, x: int) -> int: ... + def __sub__(self, x: int) -> int: ... + def __mul__(self, x: int) -> int: ... + def __floordiv__(self, x: int) -> int: ... + def __truediv__(self, x: int) -> float: ... + def __mod__(self, x: int) -> int: ... + def __divmod__(self, x: int) -> Tuple[int, int]: ... + def __radd__(self, x: int) -> int: ... + def __rsub__(self, x: int) -> int: ... + def __rmul__(self, x: int) -> int: ... + def __rfloordiv__(self, x: int) -> int: ... + def __rtruediv__(self, x: int) -> float: ... + def __rmod__(self, x: int) -> int: ... + def __rdivmod__(self, x: int) -> Tuple[int, int]: ... + @overload + def __pow__(self, __x: Literal[2], __modulo: int | None = ...) -> int: ... + @overload + def __pow__( + self, __x: int, __modulo: int | None = ... + ) -> Any: ... # Return type can be int or float, depending on x. + def __rpow__(self, x: int, mod: int | None = ...) -> Any: ... + def __and__(self, n: int) -> int: ... + def __or__(self, n: int) -> int: ... + def __xor__(self, n: int) -> int: ... + def __lshift__(self, n: int) -> int: ... + def __rshift__(self, n: int) -> int: ... + def __rand__(self, n: int) -> int: ... + def __ror__(self, n: int) -> int: ... + def __rxor__(self, n: int) -> int: ... + def __rlshift__(self, n: int) -> int: ... + def __rrshift__(self, n: int) -> int: ... + def __neg__(self) -> int: ... + def __pos__(self) -> int: ... + def __invert__(self) -> int: ... + def __trunc__(self) -> int: ... + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + def __round__(self, ndigits: SupportsIndex = ...) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: int) -> bool: ... + def __le__(self, x: int) -> bool: ... + def __gt__(self, x: int) -> bool: ... + def __ge__(self, x: int) -> bool: ... + def __str__(self) -> str: ... + def __float__(self) -> float: ... + def __int__(self) -> int: ... + def __abs__(self) -> int: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + def __index__(self) -> int: ... + +class float: + def __new__( + cls: Type[_T], x: SupportsFloat | SupportsIndex | str | bytes | bytearray = ... + ) -> _T: ... + def __add__(self, x: float) -> float: ... + def __sub__(self, x: float) -> float: ... + def __mul__(self, x: float) -> float: ... + def __floordiv__(self, x: float) -> float: ... + def __truediv__(self, x: float) -> float: ... + def __mod__(self, x: float) -> float: ... + def __divmod__(self, x: float) -> Tuple[float, float]: ... + def __pow__( + self, x: float, mod: None = ... + ) -> float: ... # In Python 3, returns complex if self is negative and x is not whole + def __radd__(self, x: float) -> float: ... + def __rsub__(self, x: float) -> float: ... + def __rmul__(self, x: float) -> float: ... + def __rfloordiv__(self, x: float) -> float: ... + def __rtruediv__(self, x: float) -> float: ... + def __rmod__(self, x: float) -> float: ... + def __rdivmod__(self, x: float) -> Tuple[float, float]: ... + def __rpow__(self, x: float, mod: None = ...) -> float: ... + def __getnewargs__(self) -> Tuple[float]: ... + def __trunc__(self) -> int: ... + if sys.version_info >= (3, 9): + def __ceil__(self) -> int: ... + def __floor__(self) -> int: ... + @overload + def __round__(self, ndigits: None = ...) -> int: ... + @overload + def __round__(self, ndigits: SupportsIndex) -> float: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: float) -> bool: ... + def __le__(self, x: float) -> bool: ... + def __gt__(self, x: float) -> bool: ... + def __ge__(self, x: float) -> bool: ... + def __neg__(self) -> float: ... + def __pos__(self) -> float: ... + def __str__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class complex: + @overload + def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], real: str | SupportsComplex | SupportsIndex | complex + ) -> _T: ... + @property + def real(self) -> float: ... + @property + def imag(self) -> float: ... + def __add__(self, x: complex) -> complex: ... + def __sub__(self, x: complex) -> complex: ... + def __mul__(self, x: complex) -> complex: ... + def __pow__(self, x: complex, mod: None = ...) -> complex: ... + def __truediv__(self, x: complex) -> complex: ... + def __radd__(self, x: complex) -> complex: ... + def __rsub__(self, x: complex) -> complex: ... + def __rmul__(self, x: complex) -> complex: ... + def __rpow__(self, x: complex, mod: None = ...) -> complex: ... + def __rtruediv__(self, x: complex) -> complex: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __neg__(self) -> complex: ... + def __pos__(self) -> complex: ... + def __str__(self) -> str: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __bool__(self) -> bool: ... + +class str(Sequence[str]): + @overload + def __new__(cls: Type[_T], o: object = ...) -> _T: ... + @overload + def __new__( + cls: Type[_T], o: bytes, encoding: str = ..., errors: str = ... + ) -> _T: ... + def count( + self, + x: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ... + def endswith( + self, + __suffix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def format(self, *args: object, **kwargs: object) -> str: ... + def index( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable: Iterable[str]) -> str: ... + def lower(self) -> str: ... + def lstrip(self, __chars: str | None = ...) -> str: ... + def replace(self, __old: str, __new: str, __count: SupportsIndex = ...) -> str: ... + def rfind( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: str, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def rstrip(self, __chars: str | None = ...) -> str: ... + def split( + self, sep: str | None = ..., maxsplit: SupportsIndex = ... + ) -> list[str]: ... + def startswith( + self, + __prefix: str | Tuple[str, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __chars: str | None = ...) -> str: ... + def upper(self) -> str: ... + def __add__(self, s: str) -> str: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: str) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ge__(self, x: str) -> bool: ... + def __getitem__(self, i: int | slice) -> str: ... + def __gt__(self, x: str) -> bool: ... + def __hash__(self) -> int: ... + def __iter__(self) -> Iterator[str]: ... + def __le__(self, x: str) -> bool: ... + def __len__(self) -> int: ... + def __lt__(self, x: str) -> bool: ... + def __mod__(self, x: Any) -> str: ... + def __mul__(self, n: SupportsIndex) -> str: ... + def __ne__(self, x: object) -> bool: ... + def __repr__(self) -> str: ... + def __rmul__(self, n: SupportsIndex) -> str: ... + def __str__(self) -> str: ... + def __getnewargs__(self) -> Tuple[str]: ... + +class bytes(ByteString): + @overload + def __new__(cls: Type[_T], ints: Iterable[SupportsIndex]) -> _T: ... + @overload + def __new__(cls: Type[_T], string: str, encoding: str, errors: str = ...) -> _T: ... + @overload + def __new__(cls: Type[_T], length: SupportsIndex) -> _T: ... + @overload + def __new__(cls: Type[_T]) -> _T: ... + @overload + def __new__(cls: Type[_T], o: SupportsBytes) -> _T: ... + def count( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def endswith( + self, + __suffix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def find( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def index( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, __iterable_of_bytes: Iterable[ByteString | memoryview]) -> bytes: ... + def lower(self) -> bytes: ... + def lstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def replace( + self, __old: bytes, __new: bytes, __count: SupportsIndex = ... + ) -> bytes: ... + def rfind( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rindex( + self, + __sub: bytes | SupportsIndex, + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> int: ... + def rsplit( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def rstrip(self, __bytes: bytes | None = ...) -> bytes: ... + def split( + self, sep: bytes | None = ..., maxsplit: SupportsIndex = ... + ) -> list[bytes]: ... + def startswith( + self, + __prefix: bytes | Tuple[bytes, ...], + __start: SupportsIndex | None = ..., + __end: SupportsIndex | None = ..., + ) -> bool: ... + def strip(self, __bytes: bytes | None = ...) -> bytes: ... + def upper(self) -> bytes: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytes: ... + def __add__(self, s: bytes) -> bytes: ... + def __mul__(self, n: SupportsIndex) -> bytes: ... + def __rmul__(self, n: SupportsIndex) -> bytes: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + def __getnewargs__(self) -> Tuple[bytes]: ... + +class bytearray: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, ints: Iterable[SupportsIndex]) -> None: ... + @overload + def __init__(self, string: str, encoding: str, errors: str = ...) -> None: ... + @overload + def __init__(self, length: SupportsIndex) -> None: ... + def append(self, __item: SupportsIndex) -> None: ... + def decode(self, encoding: str = ..., errors: str = ...) -> str: ... + def extend(self, __iterable_of_ints: Iterable[SupportsIndex]) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytearray: ... + @overload + def __setitem__(self, i: SupportsIndex, x: SupportsIndex) -> None: ... + @overload + def __setitem__(self, s: slice, x: Iterable[SupportsIndex] | bytes) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, s: bytes) -> bytearray: ... + def __iadd__(self, s: Iterable[int]) -> bytearray: ... + def __mul__(self, n: SupportsIndex) -> bytearray: ... + def __rmul__(self, n: SupportsIndex) -> bytearray: ... + def __imul__(self, n: SupportsIndex) -> bytearray: ... + def __mod__(self, value: Any) -> bytes: ... + # Incompatible with Sequence.__contains__ + def __contains__(self, o: SupportsIndex | bytes) -> bool: ... # type: ignore + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: bytes) -> bool: ... + def __le__(self, x: bytes) -> bool: ... + def __gt__(self, x: bytes) -> bool: ... + def __ge__(self, x: bytes) -> bool: ... + +class memoryview(Sized, Sequence[int]): + def __init__(self, obj: ReadableBuffer) -> None: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> memoryview: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + def __len__(self) -> int: ... + @overload + def __setitem__(self, s: slice, o: bytes) -> None: ... + @overload + def __setitem__(self, i: SupportsIndex, o: SupportsIndex) -> None: ... + +@final +class bool(int): + def __new__(cls: Type[_T], __o: object = ...) -> _T: ... + @overload + def __and__(self, x: bool) -> bool: ... + @overload + def __and__(self, x: int) -> int: ... + @overload + def __or__(self, x: bool) -> bool: ... + @overload + def __or__(self, x: int) -> int: ... + @overload + def __xor__(self, x: bool) -> bool: ... + @overload + def __xor__(self, x: int) -> int: ... + @overload + def __rand__(self, x: bool) -> bool: ... + @overload + def __rand__(self, x: int) -> int: ... + @overload + def __ror__(self, x: bool) -> bool: ... + @overload + def __ror__(self, x: int) -> int: ... + @overload + def __rxor__(self, x: bool) -> bool: ... + @overload + def __rxor__(self, x: int) -> int: ... + def __getnewargs__(self) -> Tuple[int]: ... + +class slice(object): + start: Any + step: Any + stop: Any + __hash__: None # type: ignore + def indices(self, len: SupportsIndex) -> Tuple[int, int, int]: ... + +class tuple(Sequence[_T_co], Generic[_T_co]): + def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ... + def __len__(self) -> int: ... + def __contains__(self, x: object) -> bool: ... + @overload + def __getitem__(self, x: int) -> _T_co: ... + @overload + def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __le__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ... + @overload + def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ... + @overload + def __add__(self, x: Tuple[_T, ...]) -> Tuple[_T_co | _T, ...]: ... + def __mul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def __rmul__(self, n: SupportsIndex) -> Tuple[_T_co, ...]: ... + def count(self, __value: Any) -> int: ... + def index( + self, __value: Any, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + +# Can we remove this? +class function: + # TODO not defined in builtins! + __name__: str + __module__: str + __code__: CodeType + __qualname__: str + __annotations__: dict[str, Any] + +class frozenset(AbstractSet[_T_co], Generic[_T_co]): + @overload + def __new__(cls: type[Self]) -> Self: ... + @overload + def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ... + def copy(self) -> FrozenSet[_T_co]: ... + def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ... + def isdisjoint(self, s: Iterable[_T_co]) -> bool: ... + def issubset(self, s: Iterable[object]) -> bool: ... + def issuperset(self, s: Iterable[object]) -> bool: ... + def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class list(MutableSequence[_T], Generic[_T]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, iterable: Iterable[_T]) -> None: ... + def clear(self) -> None: ... + def copy(self) -> list[_T]: ... + def append(self, __object: _T) -> None: ... + def extend(self, __iterable: Iterable[_T]) -> None: ... + def pop(self, __index: SupportsIndex = ...) -> _T: ... + def index( + self, __value: _T, __start: SupportsIndex = ..., __stop: SupportsIndex = ... + ) -> int: ... + def count(self, __value: _T) -> int: ... + def insert(self, __index: SupportsIndex, __object: _T) -> None: ... + def remove(self, __value: _T) -> None: ... + def reverse(self) -> None: ... + @overload + def sort( + self: list[SupportsLessThanT], *, key: None = ..., reverse: bool = ... + ) -> None: ... + @overload + def sort( + self, *, key: Callable[[_T], SupportsLessThan], reverse: bool = ... + ) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + @overload + def __getitem__(self, i: SupportsIndex) -> _T: ... + @overload + def __getitem__(self, s: slice) -> list[_T]: ... + @overload + def __setitem__(self, i: SupportsIndex, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + def __delitem__(self, i: SupportsIndex | slice) -> None: ... + def __add__(self, x: list[_T]) -> list[_T]: ... + def __iadd__(self: _S, x: Iterable[_T]) -> _S: ... + def __mul__(self, n: SupportsIndex) -> list[_T]: ... + def __rmul__(self, n: SupportsIndex) -> list[_T]: ... + def __imul__(self: _S, n: SupportsIndex) -> _S: ... + def __contains__(self, o: object) -> bool: ... + def __reversed__(self) -> Iterator[_T]: ... + def __gt__(self, x: list[_T]) -> bool: ... + def __ge__(self, x: list[_T]) -> bool: ... + def __lt__(self, x: list[_T]) -> bool: ... + def __le__(self, x: list[_T]) -> bool: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): + @overload + def __init__(self: dict[_KT, _VT]) -> None: ... + @overload + def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ... + @overload + def __init__( + self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT + ) -> None: ... + @overload + def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ... + def clear(self) -> None: ... + def copy(self) -> dict[_KT, _VT]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ... + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT]: ... + def items(self) -> ItemsView[_KT, _VT]: ... + @classmethod + @overload + def fromkeys( + cls, __iterable: Iterable[_T], __value: None = ... + ) -> dict[_T, Any | None]: ... + @classmethod + @overload + def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ... + def __len__(self) -> int: ... + def __getitem__(self, k: _KT) -> _VT: ... + def __setitem__(self, k: _KT, v: _VT) -> None: ... + def __delitem__(self, v: _KT) -> None: ... + def __iter__(self) -> Iterator[_KT]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT]: ... + def __str__(self) -> str: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __or__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ror__(self, __value: Mapping[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ... + def __ior__(self, __value: Mapping[_KT, _VT]) -> dict[_KT, _VT]: ... # type: ignore + +class set(MutableSet[_T], Generic[_T]): + def __init__(self, iterable: Iterable[_T] = ...) -> None: ... + def add(self, element: _T) -> None: ... + def clear(self) -> None: ... + def copy(self) -> Set[_T]: ... + def difference(self, *s: Iterable[Any]) -> Set[_T]: ... + def difference_update(self, *s: Iterable[Any]) -> None: ... + def discard(self, element: _T) -> None: ... + def intersection(self, *s: Iterable[Any]) -> Set[_T]: ... + def intersection_update(self, *s: Iterable[Any]) -> None: ... + def isdisjoint(self, s: Iterable[Any]) -> bool: ... + def issubset(self, s: Iterable[Any]) -> bool: ... + def issuperset(self, s: Iterable[Any]) -> bool: ... + def pop(self) -> _T: ... + def remove(self, element: _T) -> None: ... + def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ... + def symmetric_difference_update(self, s: Iterable[_T]) -> None: ... + def union(self, *s: Iterable[_T]) -> Set[_T]: ... + def update(self, *s: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ... + def __or__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ior__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __sub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __isub__(self, s: AbstractSet[_T | None]) -> Set[_T]: ... + def __xor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __ixor__(self, s: AbstractSet[_S]) -> Set[_T | _S]: ... + def __le__(self, s: AbstractSet[object]) -> bool: ... + def __lt__(self, s: AbstractSet[object]) -> bool: ... + def __ge__(self, s: AbstractSet[object]) -> bool: ... + def __gt__(self, s: AbstractSet[object]) -> bool: ... + __hash__: None # type: ignore + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): + def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ... + def __iter__(self) -> Iterator[Tuple[int, _T]]: ... + def __next__(self) -> Tuple[int, _T]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class range(Sequence[int]): + start: int + stop: int + step: int + @overload + def __init__(self, stop: SupportsIndex) -> None: ... + @overload + def __init__( + self, start: SupportsIndex, stop: SupportsIndex, step: SupportsIndex = ... + ) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[int]: ... + @overload + def __getitem__(self, i: SupportsIndex) -> int: ... + @overload + def __getitem__(self, s: slice) -> range: ... + def __repr__(self) -> str: ... + def __reversed__(self) -> Iterator[int]: ... + +class property(object): + fget: Callable[[Any], Any] | None + fset: Callable[[Any, Any], None] | None + fdel: Callable[[Any], None] | None + def __init__( + self, + fget: Callable[[Any], Any] | None = ..., + fset: Callable[[Any, Any], None] | None = ..., + fdel: Callable[[Any], None] | None = ..., + doc: str | None = ..., + ) -> None: ... + def getter(self, fget: Callable[[Any], Any]) -> property: ... + def setter(self, fset: Callable[[Any, Any], None]) -> property: ... + def deleter(self, fdel: Callable[[Any], None]) -> property: ... + def __get__(self, obj: Any, type: type | None = ...) -> Any: ... + def __set__(self, obj: Any, value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +class _NotImplementedType(Any): # type: ignore + # A little weird, but typing the __call__ as NotImplemented makes the error message + # for NotImplemented() much better + __call__: NotImplemented # type: ignore + +NotImplemented: _NotImplementedType + +def abs(__x: SupportsAbs[_T]) -> _T: ... +def all(__iterable: Iterable[object]) -> bool: ... +def any(__iterable: Iterable[object]) -> bool: ... +def bin(__number: int | SupportsIndex) -> str: ... + +if sys.version_info >= (3, 7): + def breakpoint(*args: Any, **kws: Any) -> None: ... + +def callable(__obj: object) -> bool: ... +def chr(__i: int) -> str: ... + +# We define this here instead of using os.PathLike to avoid import cycle issues. +# See https://github.com/python/typeshed/pull/991#issuecomment-288160993 +_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True) + +class _PathLike(Protocol[_AnyStr_co]): + def __fspath__(self) -> _AnyStr_co: ... + +if sys.version_info >= (3, 10): + def aiter(__iterable: AsyncIterable[_T]) -> AsyncIterator[_T]: ... + @overload + async def anext(__i: AsyncIterator[_T]) -> _T: ... + @overload + async def anext(__i: AsyncIterator[_T], default: _VT) -> _T | _VT: ... + +def delattr(__obj: Any, __name: str) -> None: ... +def dir(__o: object = ...) -> list[str]: ... +@overload +def divmod(__x: SupportsDivMod[_T_contra, _T_co], __y: _T_contra) -> _T_co: ... +@overload +def divmod(__x: _T_contra, __y: SupportsRDivMod[_T_contra, _T_co]) -> _T_co: ... +def eval( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... +def exec( + __source: str | bytes | CodeType, + __globals: dict[str, Any] | None = ..., + __locals: Mapping[str, Any] | None = ..., +) -> Any: ... + +class filter(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __function: None, __iterable: Iterable[_T | None]) -> None: ... + @overload + def __init__( + self, __function: Callable[[_T], Any], __iterable: Iterable[_T] + ) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +@overload +def getattr(__o: object, name: str) -> Any: ... + +# While technically covered by the last overload, spelling out the types for None and bool +# help mypy out in some tricky situations involving type context (aka bidirectional inference) +@overload +def getattr(__o: object, name: str, __default: None) -> Any | None: ... +@overload +def getattr(__o: object, name: str, __default: bool) -> Any | bool: ... +@overload +def getattr(__o: object, name: str, __default: _T) -> Any | _T: ... +def globals() -> dict[str, Any]: ... +def hasattr(__obj: object, __name: str) -> bool: ... +def hash(__obj: object) -> int: ... +def help(*args: Any, **kwds: Any) -> None: ... +def hex(__number: int | SupportsIndex) -> str: ... +def id(__obj: object) -> int: ... +def input(__prompt: Any = ...) -> str: ... +@overload +def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T | None], __sentinel: None) -> Iterator[_T]: ... +@overload +def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ... + +if sys.version_info >= (3, 10): + def isinstance( + __obj: object, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + def issubclass( + __cls: type, + __class_or_tuple: type + | types.UnionType + | Tuple[type | types.UnionType | Tuple[Any, ...], ...], + ) -> bool: ... + +else: + def isinstance( + __obj: object, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + def issubclass( + __cls: type, __class_or_tuple: type | Tuple[type | Tuple[Any, ...], ...] + ) -> bool: ... + +def len(__obj: Sized) -> int: ... +def locals() -> dict[str, Any]: ... + +class map(Iterator[_S], Generic[_S]): + @overload + def __init__(self, __func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S], + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> None: ... + @overload + def __init__( + self, + __func: Callable[..., _S], + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> None: ... + def __iter__(self) -> Iterator[_S]: ... + def __next__(self) -> _S: ... + +@overload +def max( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def max( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def max(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def max( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def max( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def min( + __arg1: SupportsLessThanT, + __arg2: SupportsLessThanT, + *_args: SupportsLessThanT, + key: None = ..., +) -> SupportsLessThanT: ... +@overload +def min( + __arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThan] +) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ... +) -> SupportsLessThanT: ... +@overload +def min(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan]) -> _T: ... +@overload +def min( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T +) -> SupportsLessThanT | _T: ... +@overload +def min( + __iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], default: _T2 +) -> _T1 | _T2: ... +@overload +def next(__i: Iterator[_T]) -> _T: ... +@overload +def next(__i: Iterator[_T], default: _VT) -> _T | _VT: ... +def oct(__number: int | SupportsIndex) -> str: ... + +_OpenFile = Union[StrOrBytesPath, int] +_Opener = Callable[[str, int], int] + +# Text mode: always returns a TextIOWrapper +@overload +def open( + file: _OpenFile, + mode: OpenTextMode = ..., + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> TextIO: ... + +# Unbuffered binary mode: returns a FileIO +@overload +def open( + file: _OpenFile, + mode: OpenBinaryMode, + buffering: int = ..., + encoding: None = ..., + errors: None = ..., + newline: None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> BinaryIO: ... + +# Fallback if mode is not specified +@overload +def open( + file: _OpenFile, + mode: str, + buffering: int = ..., + encoding: str | None = ..., + errors: str | None = ..., + newline: str | None = ..., + closefd: bool = ..., + opener: _Opener | None = ..., +) -> IO[Any]: ... +def ord(__c: str | bytes) -> int: ... +def print( + *values: object, + sep: str | None = ..., + end: str | None = ..., + file: SupportsWrite[str] | None = ..., + flush: bool = ..., +) -> None: ... + +_E = TypeVar("_E", contravariant=True) +_M = TypeVar("_M", contravariant=True) + +class _SupportsPow2(Protocol[_E, _T_co]): + def __pow__(self, __other: _E) -> _T_co: ... + +class _SupportsPow3(Protocol[_E, _M, _T_co]): + def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ... + +if sys.version_info >= (3, 8): + @overload + def pow( + base: int, exp: int, mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(base: int, exp: int, mod: int) -> int: ... + @overload + def pow(base: float, exp: float, mod: None = ...) -> float: ... + @overload + def pow(base: _SupportsPow2[_E, _T_co], exp: _E) -> _T_co: ... + @overload + def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ... + +else: + @overload + def pow( + __base: int, __exp: int, __mod: None = ... + ) -> Any: ... # returns int or float depending on whether exp is non-negative + @overload + def pow(__base: int, __exp: int, __mod: int) -> int: ... + @overload + def pow(__base: float, __exp: float, __mod: None = ...) -> float: ... + @overload + def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ... + @overload + def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ... + +class reversed(Iterator[_T], Generic[_T]): + @overload + def __init__(self, __sequence: Reversible[_T]) -> None: ... + @overload + def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ... + def __iter__(self) -> Iterator[_T]: ... + def __next__(self) -> _T: ... + +def repr(__obj: object) -> str: ... +@overload +def round(number: SupportsRound[Any]) -> int: ... +@overload +def round(number: SupportsRound[Any], ndigits: None) -> int: ... +@overload +def round(number: SupportsRound[_T], ndigits: SupportsIndex) -> _T: ... +def setattr(__obj: object, __name: str, __value: Any) -> None: ... +@overload +def sorted( + __iterable: Iterable[SupportsLessThanT], *, key: None = ..., reverse: bool = ... +) -> list[SupportsLessThanT]: ... +@overload +def sorted( + __iterable: Iterable[_T], + *, + key: Callable[[_T], SupportsLessThan], + reverse: bool = ..., +) -> list[_T]: ... + +if sys.version_info >= (3, 8): + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], start: _S) -> _T | _S: ... + +else: + @overload + def sum(__iterable: Iterable[_T]) -> _T | int: ... + @overload + def sum(__iterable: Iterable[_T], __start: _S) -> _T | _S: ... + +class zip(Iterator[_T_co], Generic[_T_co]): + @overload + def __new__(cls, __iter1: Iterable[_T1]) -> zip[Tuple[_T1]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2] + ) -> zip[Tuple[_T1, _T2]]: ... + @overload + def __new__( + cls, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3] + ) -> zip[Tuple[_T1, _T2, _T3]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + ) -> zip[Tuple[_T1, _T2, _T3, _T4]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[_T1], + __iter2: Iterable[_T2], + __iter3: Iterable[_T3], + __iter4: Iterable[_T4], + __iter5: Iterable[_T5], + ) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]: ... + @overload + def __new__( + cls, + __iter1: Iterable[Any], + __iter2: Iterable[Any], + __iter3: Iterable[Any], + __iter4: Iterable[Any], + __iter5: Iterable[Any], + __iter6: Iterable[Any], + *iterables: Iterable[Any], + ) -> zip[Tuple[Any, ...]]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __next__(self) -> _T_co: ... + +def __import__( + name: str, + globals: Mapping[str, Any] | None = ..., + locals: Mapping[str, Any] | None = ..., + fromlist: Sequence[str] = ..., + level: int = ..., +) -> Any: ... + +# Actually the type of Ellipsis is , but since it's +# not exposed anywhere under that name, we make it private here. +class ellipsis: ... + +Ellipsis: ellipsis + +class BaseException(object): + args: Tuple[Any, ...] + __cause__: BaseException | None + __context__: BaseException | None + __suppress_context__: bool + __traceback__: TracebackType | None + def __init__(self, *args: object) -> None: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def with_traceback(self: _TBE, tb: TracebackType | None) -> _TBE: ... + +class GeneratorExit(BaseException): ... +class KeyboardInterrupt(BaseException): ... + +class SystemExit(BaseException): + code: int + +class Exception(BaseException): ... + +class StopIteration(Exception): + value: Any + +_StandardError = Exception + +class OSError(Exception): + errno: int + strerror: str + # filename, filename2 are actually str | bytes | None + filename: Any + filename2: Any + if sys.platform == "win32": + winerror: int + +if sys.platform == "win32": + WindowsError = OSError + +class ArithmeticError(_StandardError): ... +class AssertionError(_StandardError): ... + +class AttributeError(_StandardError): + if sys.version_info >= (3, 10): + name: str + obj: object + +class EOFError(_StandardError): ... + +class ImportError(_StandardError): + def __init__( + self, *args: object, name: str | None = ..., path: str | None = ... + ) -> None: ... + name: str | None + path: str | None + msg: str # undocumented + +class LookupError(_StandardError): ... +class MemoryError(_StandardError): ... + +class NameError(_StandardError): + if sys.version_info >= (3, 10): + name: str + +class RuntimeError(_StandardError): ... + +class StopAsyncIteration(Exception): + value: Any + +class SyntaxError(_StandardError): + msg: str + lineno: int | None + offset: int | None + text: str | None + filename: str | None + if sys.version_info >= (3, 10): + end_lineno: int | None + end_offset: int | None + +class TypeError(_StandardError): ... +class ValueError(_StandardError): ... +class FloatingPointError(ArithmeticError): ... +class OverflowError(ArithmeticError): ... +class ZeroDivisionError(ArithmeticError): ... +class IndexError(LookupError): ... +class KeyError(LookupError): ... +class NotImplementedError(RuntimeError): ... +class IndentationError(SyntaxError): ... +class TabError(IndentationError): ... diff --git a/lang/ga-ie/typeshed/stdlib/collections/__init__.pyi b/lang/ga-ie/typeshed/stdlib/collections/__init__.pyi new file mode 100644 index 0000000..8815a4b --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/collections/__init__.pyi @@ -0,0 +1,60 @@ +import sys +from typing import ( + Any, + Dict, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Optional, + Reversible, + Tuple, + Type, + TypeVar, + Union, + ValuesView, +) + +_S = TypeVar("_S") +_T = TypeVar("_T") +_KT = TypeVar("_KT") +_VT = TypeVar("_VT") + +if sys.version_info >= (3, 7): + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + rename: bool = ..., + module: Optional[str] = ..., + defaults: Optional[Iterable[Any]] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +else: + def namedtuple( + typename: str, + field_names: Union[str, Iterable[str]], + *, + verbose: bool = ..., + rename: bool = ..., + module: Optional[str] = ..., + ) -> Type[Tuple[Any, ...]]: ... + +class _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]): + def __reversed__(self) -> Iterator[_KT]: ... + +class _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]): + def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ... + +class _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]): + def __reversed__(self) -> Iterator[_VT]: ... + +class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]): + def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ... + def move_to_end(self, key: _KT, last: bool = ...) -> None: ... + def copy(self: _S) -> _S: ... + def __reversed__(self) -> Iterator[_KT]: ... + def keys(self) -> _OrderedDictKeysView[_KT]: ... + def items(self) -> _OrderedDictItemsView[_KT, _VT]: ... + def values(self) -> _OrderedDictValuesView[_VT]: ... diff --git a/lang/ga-ie/typeshed/stdlib/errno.pyi b/lang/ga-ie/typeshed/stdlib/errno.pyi new file mode 100644 index 0000000..6ff1c70 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/errno.pyi @@ -0,0 +1,26 @@ +from typing import Mapping + +errorcode: Mapping[int, str] + +EACCES: int +EADDRINUSE: int +EAGAIN: int +EALREADY: int +EBADF: int +ECONNABORTED: int +ECONNREFUSED: int +ECONNRESET: int +EEXIST: int +EHOSTUNREACH: int +EINPROGRESS: int +EINVAL: int +EIO: int +EISDIR: int +ENOBUFS: int +ENODEV: int +ENOENT: int +ENOMEM: int +ENOTCONN: int +EOPNOTSUPP: int +EPERM: int +ETIMEDOUT: int diff --git a/lang/ga-ie/typeshed/stdlib/gc.pyi b/lang/ga-ie/typeshed/stdlib/gc.pyi new file mode 100644 index 0000000..1fd3bd4 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/gc.pyi @@ -0,0 +1,68 @@ +"""Rialú ar an bailitheoir truflais""" +from typing import overload + +def enable() -> None: + """Cumasaigh bailiú truflais uathoibríoch. (chumasú)""" + ... + +def disable() -> None: + """Díchumasaigh bailiú truflais uathoibríoch. (dhíchumasú) + +Heap memory can still be allocated, +and garbage collection can still be initiated manually using ``gc.collect``.""" + +def collect() -> None: + """Rith bailiúchán truflais. (bhailiú)""" + ... + +def mem_alloc() -> int: + """Faigh líon na mbeart de RAM carn atá leithdháilte. + +:return: The number of bytes allocated. + +This function is MicroPython extension.""" + ... + +def mem_free() -> int: + """Faigh líon na mbeart de RAM gcarn atá ar fáil, nó -1 mura bhfuil an méid seo ar eolas. (cuimhne saor) + +:return: The number of bytes free. + +This function is MicroPython extension.""" + ... + +@overload +def threshold() -> int: + """Ceistigh an tairseach leithdháilte GC bhreise. (tairseach) + +:return: The GC allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different.""" + ... + +@overload +def threshold(amount: int) -> None: + """Socraigh an tairseach leithdháilte GC breise. (tairseach) + +Normally, a collection is triggered only when a new allocation +cannot be satisfied, i.e. on an out-of-memory (OOM) condition. +If this function is called, in addition to OOM, a collection +will be triggered each time after ``amount`` bytes have been +allocated (in total, since the previous time such an amount of bytes +have been allocated). ``amount`` is usually specified as less than the +full heap size, with the intention to trigger a collection earlier than when the +heap becomes exhausted, and in the hope that an early collection will prevent +excessive memory fragmentation. This is a heuristic measure, the effect +of which will vary from application to application, as well as +the optimal value of the ``amount`` parameter. + +A value of -1 means a disabled allocation threshold. + +This function is a MicroPython extension. CPython has a similar +function - ``set_threshold()``, but due to different GC +implementations, its signature and semantics are different. + +:param amount: (méid) Líon na mbeart ina dhiaidh sin ba cheart bailiúchán truflais a spreagadh.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/log.pyi b/lang/ga-ie/typeshed/stdlib/log.pyi new file mode 100644 index 0000000..af6760f --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/log.pyi @@ -0,0 +1,89 @@ +"""Logáil sonraí chuig do micro:bit V2. (loga)""" +from typing import Literal, Mapping, Optional, Union, overload +MILLISECONDS = 1 +"""Formáid stampa ama milleasoicindí. (milleasoicindí)""" +SECONDS = 10 +"""Formáid stampa ama soicindí. (soicindí)""" +MINUTES = 600 +"""Formáid stampa ama nóiméad. (nóiméad)""" +HOURS = 36000 +"""Formáid stampa ama uaireanta. (uair an chloig)""" +DAYS = 864000 +"""Formáid stampa ama na laethanta. (laethanta)""" + +def set_labels(*labels: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None: + """Socraigh ceanntásc an chomhaid logála. (lipéid a shocrú) + +Example: ``log.set_labels('X', 'Y', 'Z', timestamp=log.MINUTES)`` + +Ideally this function should be called a single time, before any data is +logged, to configure the data table header once. + +If a log file already exists when the program starts, or if this function +is called multiple times, it will check the labels already defined in the +log file. If this function call contains any new labels not already +present, it will generate a new header row with the additional columns. + +By default the first column contains a timestamp for each row. The time +unit can be selected via the timestamp argument. + +:param *labels: (*lipéid) Aon líon argóintí suímh, gach ceann ag freagairt d'iontráil sa cheanntásc loga. +:param timestamp: (stampa ama) Roghnaigh an t-aonad stampa ama a chuirfear leis go huathoibríoch mar an chéad cholún i ngach ró. Is féidir le luachanna stampa ama a bheith mar cheann de ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` nó ``None`` chun an stampa ama a dhíchumasú. Is é ``log.SECONDS`` an luach réamhshocraithe.""" + ... + +@overload +def add(data_dictionary: Optional[Mapping[str, Union[str, int, float]]]) -> None: + """Cuir ró sonraí leis an loga trí fhoclóir ceanntásca agus luachanna a rith. (cuir leis) + +Example: ``log.add({ 'temp': temperature() })`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row. + +:param data_dictionary: (foclóir sonraí) Na sonraí le logáil mar fhoclóir le heochair do gach ceanntásc.""" + ... + +@overload +def add(**kwargs: Union[str, int, float]) -> None: + """Cuir ró sonraí leis an logáil ag baint úsáide as argóintí eochairfhocail. (suimigh) + +Example: ``log.add(temp=temperature())`` + +Each call to this function adds a row to the log. + +New labels not previously specified via the set_labels function, or by a +previous call to this function, will trigger a new header entry to be added +to the log with the extra labels. + +Labels previously specified and not present in a call to this function will +be skipped with an empty value in the log row.""" + ... + +def delete(full=False): + """Scrios inneachar an loga, lena n-áirítear ceanntásca. (scrios) + +Example: ``log.delete()`` + +To add the log headers again the ``set_labels`` function should to be called after this function. + +There are two erase modes; “full” completely removes the data from the physical storage, +and “fast” invalidates the data without removing it. + +:param full: (iomlán) Roghnaíonn ``True`` scriosadh “lán” agus roghnaíonn ``False`` an modh scriosta “tapa”.""" + ... + +def set_mirroring(serial: bool): + """Cumraigh scáthánú na gníomhaíochta logála sonraí chuig an aschur sraitheach. (scáthánú socraithe) + +Example: ``log.set_mirroring(True)`` + +Serial mirroring is disabled by default. When enabled, it will print to serial each row logged into the log file. + +:param serial: (sraitheach) Cumasaíonn ``True`` sonraí a scáthánú leis an aschur sraitheach.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/love.pyi b/lang/ga-ie/typeshed/stdlib/love.pyi new file mode 100644 index 0000000..9018624 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/love.pyi @@ -0,0 +1 @@ +def badaboom() -> None: ... diff --git a/lang/ga-ie/typeshed/stdlib/machine.pyi b/lang/ga-ie/typeshed/stdlib/machine.pyi new file mode 100644 index 0000000..937ae79 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/machine.pyi @@ -0,0 +1,84 @@ +"""Fóntais leibhéal íseal. (meaisín)""" +from typing import Any +from .microbit import MicroBitDigitalPin + +def unique_id() -> bytes: + """Faigh beart teaghrán le haitheantóir uathúil cláir. (id uathúil) + +Example: ``machine.unique_id()`` + +:return: An identifier that varies from one board instance to another.""" + ... + +def reset() -> None: + """Athshocraigh an gléas ar bhealach cosúil le brúigh an cnaipe ATHSHOCRAITHE seachtrach. (athshocrú) + +Example: ``machine.reset()``""" + ... + +def freq() -> int: + """Faigh an minicíocht LAP i hertz. (minicíocht) + +Example: ``machine.freq()`` + +:return: The CPU frequency.""" + ... + +def disable_irq() -> Any: + """Díchumasaigh iarratais idirbhriste. (díchumasaigh irq) + +Example: ``interrupt_state = machine.disable_irq()`` + +:return: the previous IRQ state which should be considered an opaque value + +The return value should be passed to the ``enable_irq`` function to restore +interrupts to their original state.""" + ... + +def enable_irq(state: Any) -> None: + """Athchumasaigh iarratais idirbhriste. (cumasaigh irq) + +Example: ``machine.enable_irq(interrupt_state)`` + +:param state: (stát) An luach a cuireadh ar ais ón nglao is déanaí chuig an bhfeidhm ``disable_irq``.""" + ... + +def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int: + """Am buille ar bhioráin. (cuisle ama us) + +Example: ``time_pulse_us(pin0, 1)`` + +If the current input value of the pin is different to ``pulse_level``, the +function first waits until the pin input becomes equal to +``pulse_level``, then times the duration that the pin is equal to +``pulse_level``. If the pin is already equal to ``pulse_level`` then timing +starts straight away. + +:param pin: (bioráin) An biorán le húsáid +:param pulse_level: (leibhéal cuisle) 0 go ham cuisle íseal nó 1 go ham cuisle ard +:param timeout_us: (am istigh linn) Teorainn ama micrea soicind +:return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end""" + ... + +class mem: + """An rang le haghaidh radharcanna cuimhne ``mem8``, ``mem16`` agus ``mem32``. (cuimhne)""" + + def __getitem__(self, address: int) -> int: + """Faigh luach ó chuimhne. (faigh-mír) + +:param address: (seoladh) An seoladh cuimhne. +:return: The value at that address as an integer.""" + ... + + def __setitem__(self, address: int, value: int) -> None: + """Socraigh luach ag an seoladh a thugtar. (socraigh-mír) + +:param address: (seoladh) An seoladh cuimhne. +:param value: (luach) An luach slánuimhir a shocrú.""" + ... +mem8: mem +"""Amharc 8-giotán (beart) ar chuimhne. (cuimhne8)""" +mem16: mem +"""Radharc 16-giotán ar chuimhne. (cuimhne16)""" +mem32: mem +"""Amharc 32-giotán ar chuimhne. (cuimhne32)""" \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/math.pyi b/lang/ga-ie/typeshed/stdlib/math.pyi new file mode 100644 index 0000000..34672df --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/math.pyi @@ -0,0 +1,246 @@ +"""Feidhmeanna matamaiticiúla. (mata)""" +from typing import Tuple + +def acos(x: float) -> float: + """Ríomh an cosine inbhéartach. + +Example: ``math.acos(1)`` + +:param x: Uimhir +:return: The inverse cosine of ``x``""" + ... + +def asin(x: float) -> float: + """Ríomh an sine inbhéartach. + +Example: ``math.asin(0)`` + +:param x: Uimhir +:return: The inverse sine of ``x``""" + ... + +def atan(x: float) -> float: + """Ríomh an tadhlaí inbhéartach. + +Example: ``math.atan(0)`` + +:param x: Uimhir +:return: The inverse tangent of ``x``""" + ... + +def atan2(y: float, x: float) -> float: + """Ríomh príomhluach an tadhlaí inbhéartach de ``y/x``. + +Example: ``math.atan2(0, -1)`` + +:param y: Uimhir +:param x: Uimhir +:return: The principal value of the inverse tangent of ``y/x``""" + ... + +def ceil(x: float) -> float: + """Déan roinnt a shlánú i dtreo éigríochta dearfach. (síleáil) + +Example: ``math.ceil(0.1)`` + +:param x: Uimhir +:return: ``x`` rounded towards positive infinity.""" + ... + +def copysign(x: float, y: float) -> float: + """Ríomh ``x`` le comhartha ``y``. (cóipchomhartha) + +Example: ``math.copysign(1, -1)`` + +:param x: Uimhir +:param y: Foinse an chomhartha don luach fillte +:return: ``x`` with the sign of ``y``""" + ... + +def cos(x: float) -> float: + """Ríomh an comhshíneas de ``x``. + +Example: ``math.cos(0)`` + +:param x: Uimhir +:return: The cosine of ``x``""" + ... + +def degrees(x: float) -> float: + """Raidian Tiontaigh go céimeanna. (céimeanna) + +Example: ``math.degrees(2 * math.pi)`` + +:param x: Luach i radaíní +:return: The value converted to degrees""" + ... + +def exp(x: float) -> float: + """Ríomh easpónantúil ``x``. + +Example: ``math.exp(1)`` + +:param x: Uimhir +:return: The exponential of ``x``.""" + ... + +def fabs(x: float) -> float: + """Tabhair luach absalóideach ``x``ar ais. + +Example: ``math.fabs(-0.1)`` + +:param x: Uimhir +:return: The absolute value of ``x``""" + ... + +def floor(x: float) -> int: + """Babhtaigh uimhir i dtreo éigríoch diúltach. (urlár) + +Example: ``math.floor(0.9)`` + +:param x: Uimhir +:return: ``x`` rounded towards negative infinity.""" + ... + +def fmod(x: float, y: float) -> float: + """Ríomh an chuid eile de ``x/y``. + +Example: ``math.fmod(10, 3)`` + +:param x: An t-uimhreoir +:param y: An t-ainmneoir""" + ... + +def frexp(x: float) -> Tuple[float, int]: + """Díscaoileann sé uimhir snámhphointe isteach ina mantissa agus ina easpónant. + +Example: ``mantissa, exponent = math.frexp(2)`` + +The returned value is the tuple ``(m, e)`` such that ``x == m * 2**e`` +exactly. If ``x == 0`` then the function returns ``(0.0, 0)``, otherwise +the relation ``0.5 <= abs(m) < 1`` holds. + +:param x: Uimhir snámhphointe +:return: A tuple of length two containing its mantissa then exponent""" + ... + +def isfinite(x: float) -> bool: + """Seiceáil an bhfuil luach críochta. (isfinideach) + +Example: ``math.isfinite(float('inf'))`` + +:param x: Uimhir. +:return: ``True`` if ``x`` is finite, ``False`` otherwise.""" + ... + +def isinf(x: float) -> bool: + """Seiceáil an bhfuil luach gan teorainn. + +Example: ``math.isinf(float('-inf'))`` + +:param x: Uimhir +:return: ``True`` if ``x`` is infinite, ``False`` otherwise.""" + ... + +def isnan(x: float) -> bool: + """Seiceáil an luach nach uimhir é (NaN). + +Example: ``math.isnan(float('nan'))`` + +:param x: Uimhir +:return: ``True`` if ``x`` is not-a-number (NaN), ``False`` otherwise.""" + ... + +def ldexp(x: float, exp: int) -> float: + """Ríomh ``x * (2**exp)``. + +Example: ``math.ldexp(0.5, 2)`` + +:param x: Uimhir +:param exp: Easpónant slánuimhir +:return: ``x * (2**exp)``""" + ... + +def log(x: float, base: float=e) -> float: + """Ríomh logarithm ``x`` go dtí an bonn tugtha (réamhshocraithe don logarithm nádúrtha). (loga) + +Example: ``math.log(math.e)`` + +With one argument, return the natural logarithm of x (to base e). + +With two arguments, return the logarithm of x to the given base, calculated as ``log(x)/log(base)``. + +:param x: Uimhir +:param base: (bonn) An bonn le húsáid +:return: The natural logarithm of ``x``""" + ... + +def modf(x: float) -> Tuple[float, float]: + """Ríomh na codanna codánacha agus lárnacha de ``x``. + +Example: ``fractional, integral = math.modf(1.5)`` + +:param x: Uimhir +:return: A tuple of two floats representing the fractional then integral parts of ``x``. + +Both the fractional and integral values have the same sign as ``x``.""" + ... + +def pow(x: float, y: float) -> float: + """Filleann ``x`` chuig cumhacht ``y``. + +Example: ``math.pow(4, 0.5)`` + +:param x: Uimhir +:param y: An léiritheoir +:return: ``x`` to the power of ``y``""" + ... + +def radians(x: float) -> float: + """Tiontaigh céimeanna go raidian. (raidiáin) + +Example: ``math.radians(360)`` + +:param x: Luach i gcéimeanna +:return: The value converted to radians""" + ... + +def sin(x: float) -> float: + """Ríomh an sín de ``x``. (síneas) + +Example: ``math.sin(math.pi/2)`` + +:param x: Uimhir +:return: The sine of ``x``""" + ... + +def sqrt(x: float) -> float: + """Ríomh an fhréamh chearnach de ``x``. + +Example: ``math.sqrt(4)`` + +:param x: Uimhir +:return: The square root of ``x``""" + ... + +def tan(x: float) -> float: + """Ríomh an tadhlaí de ``x``. + +Example: ``math.tan(0)`` + +:param x: Uimhir +:return: The tangent of ``x``.""" + ... + +def trunc(x: float) -> int: + """Déan uimhir a shlánú i dtreo 0. + +Example: ``math.trunc(-0.9)`` + +:param x: Uimhir +:return: ``x`` rounded towards zero.""" + ... +e: float +"""Bunús an logartaim nádúrtha""" +pi: float +"""An cóimheas idir imlíne ciorcail agus a thrastomhas""" \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/__init__.pyi b/lang/ga-ie/typeshed/stdlib/microbit/__init__.pyi new file mode 100644 index 0000000..61ad6a5 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/__init__.pyi @@ -0,0 +1,712 @@ +"""Bioráin, íomhánna, fuaimeanna, teocht agus toirt.""" +from typing import Any, Callable, List, Optional, Tuple, Union, overload +from _typeshed import ReadableBuffer +from . import accelerometer as accelerometer +from . import audio as audio +from . import compass as compass +from . import display as display +from . import i2c as i2c +from . import microphone as microphone +from . import speaker as speaker +from . import spi as spi +from . import uart as uart + +def run_every(callback: Optional[Callable[[], None]]=None, days: int=0, h: int=0, min: int=0, s: int=0, ms: int=0) -> Callable[[Callable[[], None]], Callable[[], None]]: + """Sceideal chun feidhm a rith ag an eatramh a shonraítear leis na hargóintí ama **V2 amháin**. (rith gach) + +Example: ``run_every(my_logging, min=5)`` + +``run_every`` can be used in two ways: + +As a Decorator - placed on top of the function to schedule. For example:: + + @run_every(h=1, min=20, s=30, ms=50) + def my_function(): + # Do something here + +As a Function - passing the callback as a positional argument. For example:: + + def my_function(): + # Do something here + run_every(my_function, s=30) + +Each argument corresponds to a different time unit and they are additive. +So ``run_every(min=1, s=30)`` schedules the callback every minute and a half. + +When an exception is thrown inside the callback function it deschedules the +function. To avoid this you can catch exceptions with ``try/except``. + +:param callback: Feidhm chun glaoch ag an eatramh a sholáthraítear. Fág ar lár agus é á úsáid mar mhaisitheoir. +:param days: (laethanta) Socraíonn sé an marc lae don sceidealú. +:param h: Socraíonn sé an marc uair an chloig don sceidealú. +:param min: (íos) Socraíonn sé an marc nóiméad don sceidealú. +:param s: Socraigh an dara marc don sceidealú. +:param ms: Socraíonn sé an marc milleasoicind don sceidealú.""" + +def panic(n: int) -> None: + """Téigh isteach i mód scaoill. (scaoll) + +Example: ``panic(127)`` + +:param n: Slánuimhir treallach <= 255 chun stádas a léiriú. + +Requires restart.""" + +def reset() -> None: + """Atosaigh an bord. (athshocrú)""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[int, int]) -> int: + """Athraíonn luach ó raon go raon slánuimhir. (scála) + +Example: ``volume = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255))`` + +For example, to convert an accelerometer X value to a speaker volume. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. + + temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0)) + +:param value: (luach) Uimhir le tiontú. +:param from_: (ó) A tuple a shainmhíniú ar an raon a thiontú ó. +:param to: (chuig) A tuple a shainmhíniú ar an raon a thiontú go. +:return: The ``value`` converted to the ``to`` range.""" + +@overload +def scale(value: float, from_: Tuple[float, float], to: Tuple[float, float]) -> float: + """Athraíonn luach ó raon go raon snámhphointe. (scála) + +Example: ``temp_fahrenheit = scale(30, from_=(0.0, 100.0), to=(32.0, 212.0))`` + +For example, to convert temperature from a Celsius scale to Fahrenheit. + +If one of the numbers in the ``to`` parameter is a floating point +(i.e a decimal number like ``10.0``), this function will return a +floating point number. +If they are both integers (i.e ``10``), it will return an integer:: + + returns_int = scale(accelerometer.get_x(), from_=(-2000, 2000), to=(0, 255)) + +:param value: (luach) Uimhir le tiontú. +:param from_: (ó) Tupla chun an raon le tiontú uaidh a shainiú. +:param to: (chuig) Tupla chun an raon le tiontú chuige a shainiú. +:return: The ``value`` converted to the ``to`` range.""" + +def sleep(n: float) -> None: + """Fan le haghaidh milleasoicindí ``n`` . (codladh) + +Example: ``sleep(1000)`` + +:param n: Líon na milleasoicindí le fanacht + +One second is 1000 milliseconds, so:: + + microbit.sleep(1000) + +will pause the execution for one second.""" + +def running_time() -> int: + """Faigh am reatha an bhoird. (am reatha) + +:return: The number of milliseconds since the board was switched on or restarted.""" + +def temperature() -> int: + """Faigh teocht an micro:bit i gcéimeanna Celsius. (teocht)""" + +def set_volume(v: int) -> None: + """Socraigh an t-imleabhar. (socraigh an toirt) + +Example: ``set_volume(127)`` + +:param v: luach idir 0 (íseal) agus 255 (ard). + +Out of range values will be clamped to 0 or 255. + +**V2** only.""" + ... + +class Button: + """An rang do na cnaipí ``button_a`` agus ``button_b``. (cnaipe)""" + + def is_pressed(self) -> bool: + """Seiceáil an bhfuil an cnaipe brúite. (brúite) + +:return: ``True`` if the specified button ``button`` is pressed, and ``False`` otherwise.""" + ... + + def was_pressed(self) -> bool: + """Seiceáil ar brúdh an cnaipe ó thosaigh an gléas nó an uair dheireanach a glaodh ar an modh seo. (brúdh) + +Calling this method will clear the press state so +that the button must be pressed again before this method will return +``True`` again. + +:return: ``True`` if the specified button ``button`` was pressed, and ``False`` otherwise""" + ... + + def get_presses(self) -> int: + """Faigh iomlán reatha na gcnaipí, agus athshocraíonn sé an t-iomlán seo +náid sula bhfillfidh tú. (faigh brúiteanna) + +:return: The number of presses since the device started or the last time this method was called""" + ... +button_a: Button +"""An cnaipe ar chlé ``Button`` réad. (cnaipe a)""" +button_b: Button +"""An cnaipe ceart ``Button`` réad. (cnaipe b)""" + +class MicroBitDigitalPin: + """Biorán digiteach. + +Some pins support analog and touch features using the ``MicroBitAnalogDigitalPin`` and ``MicroBitTouchPin`` subclasses.""" + NO_PULL: int + PULL_UP: int + PULL_DOWN: int + + def read_digital(self) -> int: + """Faigh luach digiteach an bhioráin. (léigh digiteach) + +Example: ``value = pin0.read_digital()`` + +:return: 1 if the pin is high, and 0 if it's low.""" + ... + + def write_digital(self, value: int) -> None: + """Socraigh luach digiteach an bhioráin. (scríobh digiteach) + +Example: ``pin0.write_digital(1)`` + +:param value: (luach) 1 chun an pionna a shocrú ard nó 0 chun an pionna a shocrú íseal""" + ... + + def set_pull(self, value: int) -> None: + """Socraigh an staid tarraingthe go ceann de thrí luach féideartha: ``PULL_UP``, ``PULL_DOWN`` nó ``NO_PULL``. (tarraingt socraithe) + +Example: ``pin0.set_pull(pin0.PULL_UP)`` + +:param value: (luach) An staid tarraingthe ón bioráin ábhartha, m.sh. ``pin0.PULL_UP``.""" + ... + + def get_pull(self) -> int: + """Faigh an stát tarraingt ar pionna. (faigh socraithe) + +Example: ``pin0.get_pull()`` + +:return: ``NO_PULL``, ``PULL_DOWN``, or ``PULL_UP`` + +These are set using the ``set_pull()`` method or automatically configured +when a pin mode requires it.""" + ... + + def get_mode(self) -> str: + """Filleann an modh pionna. (mód faighte) + +Example: ``pin0.get_mode()`` + +When a pin is used for a specific function, like +writing a digital value, or reading an analog value, the pin mode +changes. + +:return: ``"unused"``, ``"analog"``, ``"read_digital"``, ``"write_digital"``, ``"display"``, ``"button"``, ``"music"``, ``"audio"``, ``"touch"``, ``"i2c"``, or ``"spi"``""" + ... + + def write_analog(self, value: int) -> None: + """Aschuir comhartha PWM ar an bioráin, agus an timthriall dleachta comhréireach le ``value``. (scríobh analógach) + +Example: ``pin0.write_analog(254)`` + +:param value: (luach) Slánuimhir nó uimhir snámhphointe idir 0 (0% timthriall dleachta) agus 1023 (dleacht 100%).""" + + def set_analog_period(self, period: int) -> None: + """Socraigh tréimhse an chomhartha PWM atá á haschur go dtí ``period`` ina milleasoicindí. (socraigh tréimhse analógach) + +Example: ``pin0.set_analog_period(10)`` + +:param period: (tréimhse) An tréimhse ina milleasoicindí le luach bailí íosta de 1ms.""" + + def set_analog_period_microseconds(self, period: int) -> None: + """Socraigh tréimhse an chomhartha PWM atá á haschur go dtí ``period`` i micrishoicindí. (micreasoicindí tréimhse analógacha a shocrú) + +Example: ``pin0.set_analog_period_microseconds(512)`` + +:param period: (tréimhse) An tréimhse i micrishoicindí le íosluach bailí de 256µs.""" + +class MicroBitAnalogDigitalPin(MicroBitDigitalPin): + """Bioráin le gnéithe analógacha agus digiteacha.""" + + def read_analog(self) -> int: + """Léigh an voltas a chuirtear i bhfeidhm ar an biorán. (léigh analógach) + +Example: ``pin0.read_analog()`` + +:return: An integer between 0 (meaning 0V) and 1023 (meaning 3.3V).""" + +class MicroBitTouchPin(MicroBitAnalogDigitalPin): + """Pionna le gnéithe analógacha, digiteacha agus tadhaill.""" + CAPACITIVE: int + RESISTIVE: int + + def is_touched(self) -> bool: + """Seiceáil an bhfuil teagmháil á déanamh leis an biorán. (i dteagmháil) + +Example: ``pin0.is_touched()`` + +The default touch mode for the pins on the edge connector is ``resistive``. +The default for the logo pin **V2** is ``capacitive``. + +**Resistive touch** +This test is done by measuring how much resistance there is between the +pin and ground. A low resistance gives a reading of ``True``. To get +a reliable reading using a finger you may need to touch the ground pin +with another part of your body, for example your other hand. + +**Capacitive touch** +This test is done by interacting with the electric field of a capacitor +using a finger as a conductor. `Capacitive touch +`_ +does not require you to make a ground connection as part of a circuit. + +:return: ``True`` if the pin is being touched with a finger, otherwise return ``False``.""" + ... + + def set_touch_mode(self, value: int) -> None: + """Socraigh an modh tadhaill don pionna. (socraigh mód tadhaill) + +Example: ``pin0.set_touch_mode(pin0.CAPACITIVE)`` + +The default touch mode for the pins on the edge connector is +``resistive``. The default for the logo pin **V2** is ``capacitive``. + +:param value: (luach) ``CAPACITIVE`` nó ``RESISTIVE`` ón pionna ábhartha.""" + ... +pin0: MicroBitTouchPin +"""Pionna le gnéithe digiteacha, analógacha agus tadhaill. (biorán0)""" +pin1: MicroBitTouchPin +"""Bioráin le gnéithe digiteacha, analógacha agus tadhaill. (biorán1)""" +pin2: MicroBitTouchPin +"""Bioráin le gnéithe digiteacha, analógacha agus tadhaill. (biorán2)""" +pin3: MicroBitAnalogDigitalPin +"""Bioráin le gnéithe digiteacha agus analógacha. (biorán3)""" +pin4: MicroBitAnalogDigitalPin +"""Bioráin le gnéithe digiteacha agus analógacha. (biorán4)""" +pin5: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán5)""" +pin6: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán6)""" +pin7: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán7)""" +pin8: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán8)""" +pin9: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán9)""" +pin10: MicroBitAnalogDigitalPin +"""Bioráin le gnéithe digiteacha agus analógacha. (biorán10)""" +pin11: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán11)""" +pin12: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán12)""" +pin13: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán 13)""" +pin14: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán14)""" +pin15: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán15)""" +pin16: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán16)""" +pin19: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán19)""" +pin20: MicroBitDigitalPin +"""Bioráin le gnéithe digiteacha. (biorán20)""" +pin_logo: MicroBitTouchPin +"""Biorán lógó íogair do theagmháil ar aghaidh an micro:bit, atá socraithe de réir réamhshocraithe go mód tadhaill toilleasach. (lógó bioráin)""" +pin_speaker: MicroBitAnalogDigitalPin +"""Biorán chun an cainteoir micro:bit a sheoladh. (cainteoir bioráin) + +This API is intended only for use in Pulse-Width Modulation pin operations e.g. pin_speaker.write_analog(128). +""" + +class Image: + """Íomhá le taispeáint ar an taispeáint micro:bit LED. (íomhá) + +Given an image object it's possible to display it via the ``display`` API:: + + display.show(Image.HAPPY)""" + HEART: Image + """Íomhá chroí. (croí)""" + HEART_SMALL: Image + """Íomhá bheag chroí. (croí beag)""" + HAPPY: Image + """Íomhá aghaidhe sona. (sásta)""" + SMILE: Image + """Íomhá béil ag gáire. (aoibh gháire)""" + SAD: Image + """Íomhá aghaidhe brónach. (brónach)""" + CONFUSED: Image + """Íomhá aghaidhe mearbhall. (mearbhall)""" + ANGRY: Image + """Íomhá aghaidh feargach. (feargach)""" + ASLEEP: Image + """Íomhá aghaidhe codlata. (ina chodladh)""" + SURPRISED: Image + """Íomhá aghaidhe ionadh. (ionadh)""" + SILLY: Image + """Íomhá aghaidh amaideach. (amaideach)""" + FABULOUS: Image + """Íomhá aghaidhe spéaclaí gréine. (iontach)""" + MEH: Image + """Íomhá aghaidhe neamhbhrúite.""" + YES: Image + """Cuir tic leis an íomhá. (tá)""" + NO: Image + """Íomhá croise. (níl)""" + CLOCK12: Image + """Íomhá le líne dírithe ar 12 a chlog. (clog12)""" + CLOCK11: Image + """Íomhá le líne dírithe ar 11 a chlog. (clog11)""" + CLOCK10: Image + """Íomhá le líne dírithe ar 10 a chlog. (clog10)""" + CLOCK9: Image + """Íomhá le líne dírithe go dtí 9 a chlog. (clog9)""" + CLOCK8: Image + """Íomhá le líne dírithe go dtí 8 a chlog. (clog8)""" + CLOCK7: Image + """Íomhá le líne dírithe go dtí 7 a chlog. (clog7)""" + CLOCK6: Image + """Íomhá le líne ag díriú go dtí 6 a chlog. (clog6)""" + CLOCK5: Image + """Íomhá le líne dírithe go dtí 5 a chlog. (clog5)""" + CLOCK4: Image + """Íomhá le líne dírithe go dtí 4 a chlog. (clog4)""" + CLOCK3: Image + """Íomhá le líne dírithe go dtí 3 a chlog. (clog3)""" + CLOCK2: Image + """Íomhá le líne ag díriú go dtí 2 a chlog. (clog2)""" + CLOCK1: Image + """Íomhá le líne ag díriú go dtí 1 a chlog. (clog1)""" + ARROW_N: Image + """Íomhá na saigheade dírithe ó thuaidh. (saighead n)""" + ARROW_NE: Image + """Íomhá na saigheade dírithe soir ó thuaidh. (saighead ne)""" + ARROW_E: Image + """Íomhá na saigheade dírithe ar an taobh thoir. (saighead e)""" + ARROW_SE: Image + """Íomhá na saigheade dírithe soir ó dheas. (saighead se)""" + ARROW_S: Image + """Íomhá na saigheade dírithe ó dheas. (saighead s)""" + ARROW_SW: Image + """Íomhá na saigheade dírithe siar ó dheas. (saighead sw)""" + ARROW_W: Image + """Íomhá den tsaighead atá dírithe siar. (saighead w)""" + ARROW_NW: Image + """Íomhá na saigheade dírithe siar ó thuaidh. (saighead nw)""" + TRIANGLE: Image + """Íomhá de thriantán ag pointeáil suas. (triantán)""" + TRIANGLE_LEFT: Image + """Íomhá de thriantán sa chúinne ar chlé. (triantán ar chlé)""" + CHESSBOARD: Image + """Soilse LEDs malartacha i bpatrún clár fichille. (clár fichille)""" + DIAMOND: Image + """Íomhá diamant. (diamant)""" + DIAMOND_SMALL: Image + """Íomhá diamant beag. (diamant beag)""" + SQUARE: Image + """Íomhá cearnóg. (cearnóg)""" + SQUARE_SMALL: Image + """Íomhá beag cearnach. (cearnach beag)""" + RABBIT: Image + """Íomhá coinín. (coinín)""" + COW: Image + """Íomhá bó. (bó)""" + MUSIC_CROTCHET: Image + """Íomhá nóta cróise. (croiséad ceoil)""" + MUSIC_QUAVER: Image + """Creathán nóta íomhá. (cuais cheoil)""" + MUSIC_QUAVERS: Image + """Íomhá de nótaí péire ochtú comhartha. (cuacha ceoil)""" + PITCHFORK: Image + """Íomhá forc pice. (forc-pice)""" + XMAS: Image + """Íomhá crann Nollag. (nollag)""" + PACMAN: Image + """Íomhá carachtar stuara PAC-Man.""" + TARGET: Image + """Íomhá sprice. (sprioc)""" + TSHIRT: Image + """Íomhá T-léine. (léine-t)""" + ROLLERSKATE: Image + """Íomhá scátáil-rollála. (scátáil-rollála)""" + DUCK: Image + """Íomhá lacha. (lacha)""" + HOUSE: Image + """Íomhá tí. (teach)""" + TORTOISE: Image + """Íomhá turtar. (toirtís)""" + BUTTERFLY: Image + """Íomhá féileacán. (féileacán)""" + STICKFIGURE: Image + """Bata íomhá figiúr. (figiúr-maide)""" + GHOST: Image + """Íomhá taibhse. (taibhse)""" + SWORD: Image + """Íomhá chlaíomh. (claíomh)""" + GIRAFFE: Image + """Íomhá sioráf. (sioráf)""" + SKULL: Image + """Íomhá cloigeann. (cloigeann)""" + UMBRELLA: Image + """Íomhá scáth fearthainne. (scáth fearthainne)""" + SNAKE: Image + """Íomhá nathair. (nathair)""" + SCISSORS: Image + """Íomhá siosúr. (siosúr)""" + ALL_CLOCKS: List[Image] + """Liosta ina bhfuil na híomhánna CLOCK_ go léir in ord. (gach clog)""" + ALL_ARROWS: List[Image] + """Liosta ina bhfuil na híomhánna ARROW_ go léir in ord. (gach saighead)""" + + @overload + def __init__(self, string: str) -> None: + """Cruthaigh íomhá ó theaghrán ag cur síos ar na soilse atá lasta. + +``string`` has to consist of digits 0-9 arranged into lines, +describing the image, for example:: + + image = Image("90009:" + "09090:" + "00900:" + "09090:" + "90009") + +will create a 5×5 image of an X. The end of a line is indicated by a +colon. It's also possible to use newlines (\\n) insead of the colons. + +:param string: (teaghrán) An teaghrán ag cur síos ar an íomhá.""" + ... + + @overload + def __init__(self, width: int=5, height: int=5, buffer: ReadableBuffer=None) -> None: + """Cruthaigh íomhá fholamh le colúin ``width`` agus sraitheanna ``height`` . + +:param width: (leithead) Leithead roghnach na híomhá +:param height: (airde) Airde roghnach na híomhá +:param buffer: (maolán) Eagar roghnach nó bearta de ``width``×``height`` slánuimhreacha i raon 0-9 chun an íomhá a thúsú + +Examples:: + + Image(2, 2, b'\x08\x08\x08\x08') + Image(2, 2, bytearray([9,9,9,9])) + +These create 2 x 2 pixel images at full brightness.""" + ... + + def width(self) -> int: + """Faigh líon na gcolún. (leithead) + +:return: The number of columns in the image""" + ... + + def height(self) -> int: + """Faigh líon na sraitheanna. (airde) + +:return: The number of rows in the image""" + ... + + def set_pixel(self, x: int, y: int, value: int) -> None: + """Socraigh gile picteilín. (socraigh picteilín) + +Example: ``my_image.set_pixel(0, 0, 9)`` + +:param x: Uimhir an cholúin +:param y: Uimhir an ró +:param value: (luach) An ghile mar shlánuimhir idir 0 (dorcha) agus 9 (geal) + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def get_pixel(self, x: int, y: int) -> int: + """Faigh gile picteilín. (faigh picteilín) + +Example: ``my_image.get_pixel(0, 0)`` + +:param x: Uimhir an cholúin +:param y: Uimhir na sraithe +:return: The brightness as an integer between 0 and 9.""" + ... + + def shift_left(self, n: int) -> Image: + """Cruthaigh íomhá nua tríd an bpictiúr ar chlé a athrú. (shift ar chlé) + +Example: ``Image.HEART_SMALL.shift_left(1)`` + +:param n: Líon na gcolún atá le haistriú ag +:return: The shifted image""" + ... + + def shift_right(self, n: int) -> Image: + """Cruthaigh íomhá nua tríd an bpictiúr a athrú ar dheis. (shift ar dheis) + +Example: ``Image.HEART_SMALL.shift_right(1)`` + +:param n: Líon na gcolún le haistriú +:return: The shifted image""" + ... + + def shift_up(self, n: int) -> Image: + """Cruthaigh íomhá nua tríd an bpictiúr a athrú suas. (shift suas) + +Example: ``Image.HEART_SMALL.shift_up(1)`` + +:param n: Líon na rónna le hathrú ag +:return: The shifted image""" + ... + + def shift_down(self, n: int) -> Image: + """Cruthaigh íomhá nua tríd an bpictiúr a aistriú síos. (shift síos) + +Example: ``Image.HEART_SMALL.shift_down(1)`` + +:param n: Líon na rónna le haistriú +:return: The shifted image""" + ... + + def crop(self, x: int, y: int, w: int, h: int) -> Image: + """Cruthaigh íomhá nua tríd an bpictiúr a bearradh. (barr) + +Example: ``Image.HEART.crop(1, 1, 3, 3)`` + +:param x: An colún fritháireamh barr +:param y: An ró fritháireamh barr +:param w: An leithead barr +:param h: An airde barr +:return: The new image""" + ... + + def copy(self) -> Image: + """Cruthaigh cóip chruinn den íomhá. (cóip) + +Example: ``Image.HEART.copy()`` + +:return: The new image""" + ... + + def invert(self) -> Image: + """Cruthaigh íomhá nua trí ghile na bpicteilíní a inbhéartú sa +íomhá foinseach. (inbhéartaithe) + +Example: ``Image.SMALL_HEART.invert()`` + +:return: The new image.""" + ... + + def fill(self, value: int) -> None: + """Socraigh gile na bpicteilíní go léir san íomhá. (líon) + +Example: ``my_image.fill(5)`` + +:param value: (luach) An gile nua mar uimhir idir 0 (dorcha) agus 9 (geal). + +This method will raise an exception when called on any of the built-in +read-only images, like ``Image.HEART``.""" + ... + + def blit(self, src: Image, x: int, y: int, w: int, h: int, xdest: int=0, ydest: int=0) -> None: + """Cóipeáil limistéar ó íomhá eile isteach san íomhá seo. + +Example: ``my_image.blit(Image.HEART, 1, 1, 3, 3, 1, 1)`` + +:param src: An íomhá fhoinseach +:param x: Fritháireamh an cholúin tosaigh san íomhá fhoinseach +:param y: Fritháireamh an ró tosaigh san íomhá foinseach +:param w: Líon na gcolún le cóipeáil +:param h: Líon na rónna le cóipeáil +:param xdest: Fritháireamh an cholúin le mionathrú san íomhá seo +:param ydest: Fritháireamh an ró le mionathrú san íomhá seo + +Pixels outside the source image are treated as having a brightness of 0. + +``shift_left()``, ``shift_right()``, ``shift_up()``, ``shift_down()`` +and ``crop()`` can are all implemented by using ``blit()``. + +For example, img.crop(x, y, w, h) can be implemented as:: + + def crop(self, x, y, w, h): + res = Image(w, h) + res.blit(self, x, y, w, h) + return res""" + ... + + def __repr__(self) -> str: + """Faigh léiriú teaghrán dlúth ar an íomhá.""" + ... + + def __str__(self) -> str: + """Faigh léiriú teaghrán inléite ar an íomhá.""" + ... + + def __add__(self, other: Image) -> Image: + """Cruthaigh íomhá nua trí na luachanna gile ón dá cheann a chur leis +íomhánna do gach picteilín. (suimigh) + +Example: ``Image.HEART + Image.HAPPY`` + +:param other: (eile) An íomhá le cur leis.""" + ... + + def __sub__(self, other: Image) -> Image: + """Cruthaigh íomhá nua trí luachanna gile an +íomhá eile ón íomhá seo. + +Example: ``Image.HEART - Image.HEART_SMALL`` + +:param other: (eile) An íomhá a dhealú.""" + ... + + def __mul__(self, n: float) -> Image: + """Cruthaigh íomhá nua trí ghile gach picteilín a iolrú faoi +``n``. + +Example: ``Image.HEART * 0.5`` + +:param n: An luach a iolrú faoi.""" + ... + + def __truediv__(self, n: float) -> Image: + """Cruthaigh íomhá nua trí ghile gach picteilín a roinnt ar +``n``. + +Example: ``Image.HEART / 2`` + +:param n: An luach a roinnt ar.""" + ... + +class SoundEvent: + LOUD: SoundEvent + """Léiríonn sé aistriú imeachtaí fuaime, ó ``quiet`` go ``loud`` cosúil le bualadh nó béicíl. (ard)""" + QUIET: SoundEvent + """Léiríonn sé seo aistriú imeachtaí fuaime, ó ``loud`` go ``quiet`` cosúil le ceol labhartha nó cúlra. (ciúin)""" + +class Sound: + """Is féidir na fuaimeanna tógtha a ghlaoch ag baint úsáide as ``audio.play(Sound.NAME)``. (fuaim)""" + GIGGLE: Sound + """Fuaim scig-gháire. (scig-gháire)""" + HAPPY: Sound + """Fuaim shona. (sásta)""" + HELLO: Sound + """Fuaime beannacht. (dia duit)""" + MYSTERIOUS: Sound + """Fuaim mhistéireach. (mistéireach)""" + SAD: Sound + """Fuaim bhrónach. (brónach)""" + SLIDE: Sound + """Fuaim sleamhnáin. (sleamhnán)""" + SOARING: Sound + """Fuaim téagartha. (téagartha)""" + SPRING: Sound + """Fuaim an earraigh. (an t-earrach)""" + TWINKLE: Sound + """Fuaim drithligh. (drithligh)""" + YAWN: Sound + """Fuaim méanfach. (méanfach)""" \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/accelerometer.pyi b/lang/ga-ie/typeshed/stdlib/microbit/accelerometer.pyi new file mode 100644 index 0000000..f2fb4a1 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/accelerometer.pyi @@ -0,0 +1,103 @@ +"""Tomhais luasghéarú an micro:bit agus aithin gothaí. (luasmhéadar)""" +from typing import Tuple + +def get_x() -> int: + """Faigh an tomhas luasghéaraithe san ais ``x`` i milli-g. (faigh x) + +Example: ``accelerometer.get_x()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_y() -> int: + """Faigh an tomhas luasghéaraithe san ais ``y`` i milli-g. (faigh y) + +Example: ``accelerometer.get_y()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_z() -> int: + """Faigh an tomhas luasghéaraithe san ais ``z`` i milli-g. (faigh z) + +Example: ``accelerometer.get_z()`` + +:return: A positive or negative integer depending on direction in the range +/- 2000mg.""" + ... + +def get_values() -> Tuple[int, int, int]: + """Faigh na tomhais luasghéaraithe i ngach aiseanna ag an am céanna mar tuple. (faigh luachanna) + +Example: ``x, y, z = accelerometer.get_values()`` + +:return: a three-element tuple of integers ordered as X, Y, Z, each value a positive or negative integer depending on direction in the range +/- 2000mg""" + ... + +def get_strength() -> int: + """Faigh tomhas luasghéaraithe na n-aiseanna go léir le chéile, mar shlánuimhir dhearfach. Is é seo suim Pythagorean na n-aiseanna X, Y agus Z. (faigh neart) + +Example: ``accelerometer.get_strength()`` + +:return: The combined acceleration strength of all the axes, in milli-g.""" + ... + +def current_gesture() -> str: + """Faigh ainm an chomhartha reatha. (gotha \u200b\u200breatha) + +Example: ``accelerometer.current_gesture()`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:return: The current gesture""" + ... + +def is_gesture(name: str) -> bool: + """Seiceáil an bhfuil an comhartha ainmnithe gníomhach faoi láthair. (is gotha) + +Example: ``accelerometer.is_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: (ainm) An t-ainm gotha. +:return: ``True`` if the gesture is active, ``False`` otherwise.""" + ... + +def was_gesture(name: str) -> bool: + """Seiceáil an raibh an comhartha ainmnithe gníomhach ón nglao deireanach. (bhí gotha) + +Example: ``accelerometer.was_gesture('shake')`` + +MicroPython understands the following gesture names: ``"up"``, ``"down"``, +``"left"``, ``"right"``, ``"face up"``, ``"face down"``, ``"freefall"``, +``"3g"``, ``"6g"``, ``"8g"``, ``"shake"``. Gestures are always +represented as strings. + +:param name: (ainm) Ainm an ghluaiseachta. +:return: ``True`` if the gesture was active since the last call, ``False`` otherwise.""" + +def get_gestures() -> Tuple[str, ...]: + """Tabhair ar ais tuple de stair na gothaí. (faigh gothaí) + +Example: ``accelerometer.get_gestures()`` + +Clears the gesture history before returning. + +Gestures are not updated in the background so there needs to be constant +calls to some accelerometer method to do the gesture detection. Usually +gestures can be detected using a loop with a small :func:`microbit.sleep` delay. + +:return: The history as a tuple, most recent last.""" + ... + +def set_range(value: int) -> None: + """Socraigh an raon íogaireachta luasmhéadair, i g (domhantarraingt chaighdeánach), go dtí na luachanna is gaire a dtacaíonn na crua-earraí leo, agus mar sin cruinníonn sé le ``2``, ``4``, nó ``8`` g. (socraigh raon) + +Example: ``accelerometer.set_range(8)`` + +:param value: (luach) Raon nua don luasmhéadar, slánuimhir i ``g``.""" \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/audio.pyi b/lang/ga-ie/typeshed/stdlib/microbit/audio.pyi new file mode 100644 index 0000000..6fe096a --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/audio.pyi @@ -0,0 +1,124 @@ +"""Seinn fuaimeanna ag baint úsáide as an micro:bit (allmhairiú ``audio`` le haghaidh comhoiriúnacht V1). (fuaime)""" +from ..microbit import MicroBitDigitalPin, Sound, pin0 +from typing import ClassVar, Iterable, Union + +def play(source: Union[Iterable[AudioFrame], Sound, SoundEffect], wait: bool=True, pin: MicroBitDigitalPin=pin0, return_pin: Union[MicroBitDigitalPin, None]=None) -> None: + """Seinn fuaim-tógtha i, éifeacht fuaime nó frámaí fuaime saincheaptha. (seinn) + +Example: ``audio.play(Sound.GIGGLE)`` + +:param source: (foinse) ``Sound`` ionsuite amhail ``Sound.GIGGLE``, ``SoundEffect`` nó sonraí samplacha mar athrá ar réada ``AudioFrame``. +:param wait: (fan) Má tá ``wait`` ``True``, blocálfaidh an fheidhm seo go dtí go mbeidh an fhuaim críochnaithe. +:param pin: (biorán) Is féidir argóint roghnach chun an bioráin aschuir a shonrú a úsáid chun mainneachtain ``pin0``a shárú. Mura dteastaíonn aon fhuaim uainn is féidir linn ``pin=None``a úsáid. +:param return_pin: (biorán fillte) Sonraíonn bioráin cónascaire imeall difreálach chun ceangal le cainteoir seachtrach in ionad na talún. Déantar neamhaird air seo don athbhreithniú **V2**.""" + +def is_playing() -> bool: + """Seiceáil an bhfuil fuaim á seinm. (ag seinm) + +Example: ``audio.is_playing()`` + +:return: ``True`` if audio is playing, otherwise ``False``.""" + ... + +def stop() -> None: + """Stop gach athsheinm fuaime. (stad) + +Example: ``audio.stop()``""" + ... + +class SoundEffect: + """Éifeacht fuaime, comhdhéanta ag sraith paraiméadar cumraithe tríd an cruthaitheoir nó tréithe. (éifeachtfuaime)""" + WAVEFORM_SINE: ClassVar[int] + """Rogha tonn sine a úsáidtear don pharaiméadar ``waveform`` . (tonnchruth síneas)""" + WAVEFORM_SAWTOOTH: ClassVar[int] + """Rogha tonn fiacail sábha a úsáidtear don pharaiméadar ``waveform`` . (tonnfhad fiacail sábha)""" + WAVEFORM_TRIANGLE: ClassVar[int] + """Rogha tonn triantáin a úsáidtear don pharaiméadar ``waveform`` . (triantán tonnchrutha)""" + WAVEFORM_SQUARE: ClassVar[int] + """Rogha tonn cearnach a úsáidtear don pharaiméadar ``waveform`` . (cearnóg tonnfhoirme)""" + WAVEFORM_NOISE: ClassVar[int] + """Rogha torainn a úsáidtear don pharaiméadar ``waveform`` . (torann tonnfhoirme)""" + SHAPE_LINEAR: ClassVar[int] + """Rogha idirshuíomh líneach a úsáidtear don pharaiméadar ``shape`` . (cruth líneach)""" + SHAPE_CURVE: ClassVar[int] + """Rogha idirshuíomh cuar a úsáidtear don pharaiméadar ``shape`` . (cruth cuar)""" + SHAPE_LOG: ClassVar[int] + """Rogha idirshuíomh logartamach a úsáidtear don pharaiméadar ``shape`` . (log cruth)""" + FX_NONE: ClassVar[int] + """Níl aon rogha éifeachta in úsáid don pharaiméadar ``fx`` . (fx aon cheann)""" + FX_TREMOLO: ClassVar[int] + """Rogha éifeachta Tremolo a úsáidtear don pharaiméadar ``fx`` . (tremolo fx)""" + FX_VIBRATO: ClassVar[int] + """Rogha éifeachta Vibrato a úsáidtear don pharaiméadar ``fx`` .""" + FX_WARBLE: ClassVar[int] + """Rogha éifeacht warble a úsáidtear le haghaidh an paraiméadar ``fx`` .""" + freq_start: int + """Tosaigh minicíocht i Hertz (Hz), uimhir idir ``0`` agus ``9999`` (tús minicíochta)""" + freq_end: int + """Minicíocht deiridh i Heirts (Hz), uimhir idir ``0`` agus ``9999`` (deireadh freq)""" + duration: int + """Fad na fuaime i milleasoicindí, uimhir idir ``0`` agus ``9999`` (fad)""" + vol_start: int + """Tosaigh luach toirte, uimhir idir ``0`` agus ``255`` (tús vol)""" + vol_end: int + """Luach toirte deiridh, uimhir idir ``0`` agus ``255`` (deireadh imleabhair)""" + waveform: int + """Cineál cruth waveform, ceann de na luachanna seo: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (torann a ghintear go randamach) (tonnchruth)""" + fx: int + """Éifeacht le cur leis an bhfuaim, ceann amháin de na luachanna seo a leanas: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, nó ``FX_NONE``""" + shape: int + """An cineál cuar idirshuíomh idir na minicíochtaí tosaigh agus deiridh, tá cruthanna tonn éagsúla rátaí éagsúla athraithe i minicíocht. Ceann de na luachanna seo a leanas: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG`` (cruth)""" + + def __init__(self, freq_start: int=500, freq_end: int=2500, duration: int=500, vol_start: int=255, vol_end: int=0, waveform: int=WAVEFORM_SQUARE, fx: int=FX_NONE, shape: int=SHAPE_LOG): + """Cruthaigh éifeacht fuaime nua. + +Example: ``my_effect = SoundEffect(duration=1000)`` + +All the parameters are optional, with default values as shown above, and +they can all be modified via attributes of the same name. For example, we +can first create an effect ``my_effect = SoundEffect(duration=1000)``, +and then change its attributes ``my_effect.duration = 500``. + +:param freq_start: (tús minicíochta) Tosaigh minicíocht i Hertz (Hz), uimhir idir ``0`` agus ``9999``. +:param freq_end: (deireadh minicíochta) Minicíocht deiridh i Hertz (Hz), uimhir idir ``0`` agus ``9999``. +:param duration: (fad) Fad na fuaime i milleasoicindí, uimhir idir ``0`` agus ``9999``. +:param vol_start: (tús toirte) Tosaigh luach toirte, uimhir idir ``0`` agus ``255``. +:param vol_end: (deireadh an toirte) Luach deiridh an toirte, uimhir idir ``0`` agus ``255``. +:param waveform: (tonnfhoirm) Cineál cruth waveform, ceann de na luachanna seo: ``WAVEFORM_SINE``, ``WAVEFORM_SAWTOOTH``, ``WAVEFORM_TRIANGLE``, ``WAVEFORM_SQUARE``, ``WAVEFORM_NOISE`` (torann a ghintear go randamach). +:param fx: Éifeacht le cur leis an bhfuaim, ceann amháin de na luachanna seo a leanas: ``FX_TREMOLO``, ``FX_VIBRATO``, ``FX_WARBLE``, nó ``FX_NONE``. +:param shape: (cruth) An cineál cuar idirshuíomh idir na minicíochtaí tosaigh agus deiridh, tá cruthanna tonn éagsúla rátaí éagsúla athraithe i minicíocht. Ceann de na luachanna seo a leanas: ``SHAPE_LINEAR``, ``SHAPE_CURVE``, ``SHAPE_LOG``.""" + + def copy(self) -> SoundEffect: + """Cruthaigh cóip den ``SoundEffect``seo. (cóip) + +Example: ``sound_2 = sound_1.copy()`` + +:return: A copy of the SoundEffect.""" + +class AudioFrame: + """Is éard is réad ``AudioFrame`` ann ná liosta de 32 sampla ar beart gan síniú gach ceann acu +(slánuimhir idir 0 agus 255). (fráma fuaime) + +It takes just over 4 ms to play a single frame. + +Example:: + + frame = AudioFrame() + for i in range(len(frame)): + frame[i] = 252 - i * 8""" + + def copyfrom(self, other: AudioFrame) -> None: + """Forscríobh na sonraí sa ``AudioFrame`` seo leis na sonraí ó shampla ``AudioFrame`` eile. (cóipeáil ó) + +Example: ``my_frame.copyfrom(source_frame)`` + +:param other: (eile) ``AudioFrame`` ásc as ar féidir na sonraí a chóipeáil.""" + + def __len__(self) -> int: + ... + + def __setitem__(self, key: int, value: int) -> None: + ... + + def __getitem__(self, key: int) -> int: + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/compass.pyi b/lang/ga-ie/typeshed/stdlib/microbit/compass.pyi new file mode 100644 index 0000000..573ef4d --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/compass.pyi @@ -0,0 +1,70 @@ +"""Bain úsáid as an compás tógtha. (compás)""" + +def calibrate() -> None: + """Tosaíonn seo an próiseas calabrúcháin. (calabrú) + +Example: ``compass.calibrate()`` + +An instructive message will be scrolled to the user after which they will need +to rotate the device in order to draw a circle on the LED display.""" + ... + +def is_calibrated() -> bool: + """Seiceáil go bhfuil an compás calabraithe. (atá calabraithe) + +Example: ``compass.is_calibrated()`` + +:return: ``True`` if the compass has been successfully calibrated, ``False`` otherwise.""" + ... + +def clear_calibration() -> None: + """Cealaigh an calabrú, rud a fhágann go bhfuil an compás neamhráite arís. (calabrú soiléir) + +Example: ``compass.clear_calibration()``""" + ... + +def get_x() -> int: + """Faigh neart an réimse mhaighnéadaigh ar an ais ``x`` . (faigh x) + +Example: ``compass.get_x()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_y() -> int: + """Faigh neart an réimse mhaighnéadaigh ar an ais ``y`` . (faigh y) + +Example: ``compass.get_y()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def get_z() -> int: + """Faigh neart an réimse mhaighnéadaigh ar an ais ``z`` . (faigh z) + +Example: ``compass.get_z()`` + +Call ``calibrate`` first or the results will be inaccurate. + +:return: A positive or negative integer in nano tesla representing the magnitude and direction of the field.""" + ... + +def heading() -> int: + """Faigh ceannteideal an chompáis. (ceannteideal) + +Example: ``compass.heading()`` + +:return: An integer in the range from 0 to 360, representing the angle in degrees, clockwise, with north as 0.""" + ... + +def get_field_strength() -> int: + """Faigh méid an réimse maighnéadach timpeall an ghléis. + +Example: ``compass.get_field_strength()`` + +:return: An integer indication of the magnitude of the magnetic field in nano tesla.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/display.pyi b/lang/ga-ie/typeshed/stdlib/microbit/display.pyi new file mode 100644 index 0000000..ae8c82a --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/display.pyi @@ -0,0 +1,92 @@ +"""Taispeáin téacs, íomhánna agus beochan ar an taispeáint LED 5×5. (taispeáint)""" +from ..microbit import Image +from typing import Union, overload, Iterable + +def get_pixel(x: int, y: int) -> int: + """Faigh gile an LED ag colún ``x`` agus as a chéile ``y``. (faigh picteilín) + +Example: ``display.get_pixel(0, 0)`` + +:param x: An colún taispeána (0..4) +:param y: An tsraith taispeána (0..4) +:return: A number between 0 (off) and 9 (bright)""" + ... + +def set_pixel(x: int, y: int, value: int) -> None: + """Socraigh gile an LED ag colún ``x`` agus as a chéile ``y``. (socraigh picteilín) + +Example: ``display.set_pixel(0, 0, 9)`` + +:param x: An colún taispeána (0..4) +:param y: An tsraith taispeána (0..4) +:param value: (luach) An ghile idir 0 (as) agus 9 (geal)""" + ... + +def clear() -> None: + """Socraigh gile na soilse go léir go 0 (as). (soiléir) + +Example: ``display.clear()``""" + ... + +def show(image: Union[str, float, int, Image, Iterable[Image]], delay: int=400, wait: bool=True, loop: bool=False, clear: bool=False) -> None: + """Taispeáin íomhánna, litreacha nó digití ar an taispeáint LED. (taispeáin) + +Example: ``display.show(Image.HEART)`` + +When ``image`` is an image or a list of images then each image is displayed in turn. +If ``image`` is a string or number, each letter or digit is displayed in turn. + +:param image: (íomhá) Teaghrán, uimhir, íomhá nó liosta íomhánna le taispeáint. +:param delay: (moill) Taispeántar gach litir, digit nó íomhá le milleasoicindí ``delay`` eatarthu. +:param wait: (fan) Más ``wait`` é ``True``, cuirfear bac ar an bhfeidhm seo go dtí go mbeidh an bheochan críochnaithe, nó tarlóidh an bheochan sa chúlra. +:param loop: (lúb) Má tá ``loop`` ``True``, déanfaidh an beochan arís go deo. +:param clear: (soiléir) Más ionann ``clear`` agus ``True``, glanfar an taispeáint tar éis don seicheamh a bheith críochnaithe. + +The ``wait``, ``loop`` and ``clear`` arguments must be specified using their keyword.""" + ... + +def scroll(text: Union[str, float, int], delay: int=150, wait: bool=True, loop: bool=False, monospace: bool=False) -> None: + """Scrollaigh uimhir nó téacs ar an taispeáint LED. (scrollaigh) + +Example: ``display.scroll('micro:bit')`` + +:param text: (téacs) An teaghrán le scrollú. Más slánuimhir nó snámhphointe é ``text`` tiontaítear é ar dtús go teaghrán ag baint úsáide as ``str()``. +:param delay: (moill) Rialaíonn an paraiméadar ``delay`` cé chomh tapa is atá an téacs ag scrollú. +:param wait: (fan) Má tá ``wait`` ``True``, blocálfaidh an fheidhm seo go dtí go mbeidh an beochan críochnaithe, nó tarlóidh an beochan sa chúlra. +:param loop: (lúb) Má tá ``loop`` ``True``, déanfaidh an beochan arís go deo. +:param monospace: (monaspás) Más ``monospace`` é ``True``, tógfaidh na carachtair go léir suas le 5 cholún picteilín ar leithead, nó mura mbeidh go díreach 1 cholún bán picteilín idir gach carachtar agus iad ag scrollú. + +The ``wait``, ``loop`` and ``monospace`` arguments must be specified +using their keyword.""" + ... + +def on() -> None: + """Cas ar an taispeáint LED. (ar) + +Example: ``display.on()``""" + ... + +def off() -> None: + """Múch an taispeáint LED (ceadaíonn an taispeáint a dhíchumasú duit na bioráin GPIO a athúsáid chun críocha eile). (as) + +Example: ``display.off()``""" + ... + +def is_on() -> bool: + """Seiceáil an bhfuil an taispeáint LED cumasaithe. (atá ar) + +Example: ``display.is_on()`` + +:return: ``True`` if the display is on, otherwise returns ``False``.""" + ... + +def read_light_level() -> int: + """Léigh leibhéal an tsolais. (léigh leibhéal an tsolais) + +Example: ``display.read_light_level()`` + +Uses the display's LEDs in reverse-bias mode to sense the amount of light +falling on the display. + +:return: An integer between 0 and 255 representing the light level, with larger meaning more light.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/i2c.pyi b/lang/ga-ie/typeshed/stdlib/microbit/i2c.pyi new file mode 100644 index 0000000..d9c610c --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/i2c.pyi @@ -0,0 +1,49 @@ +"""Cumarsáid a dhéanamh le gléasanna ag baint úsáide as prótacal bus I²C.""" +from _typeshed import ReadableBuffer +from ..microbit import MicroBitDigitalPin, pin19, pin20 +from typing import List + +def init(freq: int=100000, sda: MicroBitDigitalPin=pin20, scl: MicroBitDigitalPin=pin19) -> None: + """Ath-thúsaigh forimeallach. + +Example: ``i2c.init()`` + +:param freq: minicíocht cloig +:param sda: biorán ``sda`` (réamhshocrú 20) +:param scl: biorán ``scl`` (réamhshocrú 19) + +On a micro:bit V1 board, changing the I²C pins from defaults will make +the accelerometer and compass stop working, as they are connected +internally to those pins. This warning does not apply to the **V2** +revision of the micro:bit as this has `separate I²C lines `_ +for the motion sensors and the edge connector.""" + ... + +def scan() -> List[int]: + """Scan an bus le haghaidh gléasanna. (scanadh) + +Example: ``i2c.scan()`` + +:return: A list of 7-bit addresses corresponding to those devices that responded to the scan.""" + ... + +def read(addr: int, n: int, repeat: bool=False) -> bytes: + """Léigh bearta ó ghléas. (léigh) + +Example: ``i2c.read(0x50, 64)`` + +:param addr: Seoladh 7 ngiotán an ghléis +:param n: Líon na mbeart atá le léamh +:param repeat: (athdhéanamh) Má ``True``, ní sheolfar aon ghiotán stad +:return: The bytes read""" + ... + +def write(addr: int, buf: ReadableBuffer, repeat: bool=False) -> None: + """Scríobh bearta chuig gléas. (scríobh) + +Example: ``i2c.write(0x50, bytes([1, 2, 3]))`` + +:param addr: Seoladh 7 ngiotán an ghléis +:param buf: Maolán ina bhfuil na bearta le scríobh +:param repeat: (athdhéanamh) Má ``True``, ní sheolfar aon ghiotán stad""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/microphone.pyi b/lang/ga-ie/typeshed/stdlib/microbit/microphone.pyi new file mode 100644 index 0000000..213ba41 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/microphone.pyi @@ -0,0 +1,62 @@ +"""Freagair fuaim ag baint úsáide as an micreafón tógtha (V2 amháin). (micreafón)""" +from typing import Optional, Tuple +from ..microbit import SoundEvent + +def current_event() -> Optional[SoundEvent]: + """Faigh an teagmhas fuaime taifeadta is déanaí (imeacht reatha) + +Example: ``microphone.current_event()`` + +:return: The event, ``SoundEvent('loud')`` or ``SoundEvent('quiet')``.""" + ... + +def was_event(event: SoundEvent) -> bool: + """Seiceáil ar chualathas fuaim uair amháin ar a laghad ón nglao deireanach. (ba imeacht é) + +Example: ``microphone.was_event(SoundEvent.LOUD)`` + +This call clears the sound history before returning. + +:param event: (imeacht) An ócáid le seiceáil, mar shampla ``SoundEvent.LOUD`` nó ``SoundEvent.QUIET`` +:return: ``True`` if sound was heard at least once since the last call, otherwise ``False``.""" + ... + +def is_event(event: SoundEvent) -> bool: + """Seiceáil an teagmhas fuaime is déanaí a braitheadh. (imeacht) + +Example: ``microphone.is_event(SoundEvent.LOUD)`` + +This call does not clear the sound event history. + +:param event: (imeacht) An ócáid le seiceáil, mar shampla ``SoundEvent.LOUD`` nó ``SoundEvent.QUIET`` +:return: ``True`` if sound was the most recent heard, ``False`` otherwise.""" + ... + +def get_events() -> Tuple[SoundEvent, ...]: + """Faigh stair na hócáide fuaime mar thuple. (faigh imeachtaí) + +Example: ``microphone.get_events()`` + +This call clears the sound history before returning. + +:return: A tuple of the event history with the most recent event last.""" + ... + +def set_threshold(event: SoundEvent, value: int) -> None: + """Socraigh an tairseach le haghaidh teagmhas fuaime. (tairseach shocraithe) + +Example: ``microphone.set_threshold(SoundEvent.LOUD, 250)`` + +A high threshold means the event will only trigger if the sound is very loud (>= 250 in the example). + +:param event: (imeacht) Imeacht fuaime, mar shampla ``SoundEvent.LOUD`` nó ``SoundEvent.QUIET``. +:param value: (luach) An leibhéal tairsí sa raon 0-255.""" + ... + +def sound_level() -> int: + """Faigh an leibhéal brú fuaime. (leibhéal fuaime) + +Example: ``microphone.sound_level()`` + +:return: A representation of the sound pressure level in the range 0 to 255.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/speaker.pyi b/lang/ga-ie/typeshed/stdlib/microbit/speaker.pyi new file mode 100644 index 0000000..06d3176 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/speaker.pyi @@ -0,0 +1,15 @@ +"""Rialú an cainteoir tógtha i (V2 amháin). (cainteoir)""" + +def off() -> None: + """Múch an cainteoir. (as) + +Example: ``speaker.off()`` + +This does not disable sound output to an edge connector pin.""" + ... + +def on() -> None: + """Cas an cainteoir air. (ar) + +Example: ``speaker.on()``""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/spi.pyi b/lang/ga-ie/typeshed/stdlib/microbit/spi.pyi new file mode 100644 index 0000000..0db7a3f --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/spi.pyi @@ -0,0 +1,47 @@ +"""Cumarsáid a dhéanamh le gléasanna ag baint úsáide as an gcomhéadan forimeallach sraitheach (SPI) bus.""" +from _typeshed import ReadableBuffer, WriteableBuffer +from ..microbit import pin13, pin14, pin15, MicroBitDigitalPin + +def init(baudrate: int=1000000, bits: int=8, mode: int=0, sclk: MicroBitDigitalPin=pin13, mosi: MicroBitDigitalPin=pin15, miso: MicroBitDigitalPin=pin14) -> None: + """Túsaigh cumarsáid SPI. + +Example: ``spi.init()`` + +For correct communication, the parameters have to be the same on both communicating devices. + +:param baudrate: (ráta baud) Luas na cumarsáide. +:param bits: (giotáin) An leithead i giotán de gach aistriú. Faoi láthair ní thacaítear ach le ``bits=8`` . Mar sin féin, d'fhéadfadh sé seo athrú amach anseo. +:param mode: (mód) Cinneann sé an meascán de polaraíocht clog agus céim - 'féach tábla ar líne '_. +:param sclk: bioráin sclk (réamhshocrú 13) +:param mosi: bioráin mosi (réamhshocrú 15) +:param miso: biorán miso (réamhshocraithe 14)""" + ... + +def read(nbytes: int, out: int=0) -> bytes: + """Léigh ar a mhéad ``nbytes`` agus an beart aonair a thugann ``out``á scríobh go leanúnach. (léamh) + +Example: ``spi.read(64)`` + +:param nbytes: (nbeart) Líon uasta na mbeart le léamh. +:param out: (amach) An luach beart le scríobh (réamhshocrú 0). +:return: The bytes read.""" + ... + +def write(buffer: ReadableBuffer) -> None: + """Scríobh bearta chuig an mbus. (scríobh) + +Example: ``spi.write(bytes([1, 2, 3]))`` + +:param buffer: (maolán) Maolán chun sonraí a léamh as.""" + ... + +def write_readinto(out: WriteableBuffer, in_: ReadableBuffer) -> None: + """Scríobh an maolán ``out`` chuig an mbus agus léigh aon fhreagra isteach sa mhaolán ``in_`` . (scríobh readinto) + +Example: ``spi.write_readinto(out_buffer, in_buffer)`` + +The length of the buffers should be the same. The buffers can be the same object. + +:param out: (amach) An maolán chun aon fhreagra a scríobh. +:param in_: (i) An maolán chun sonraí a léamh as.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/microbit/uart.pyi b/lang/ga-ie/typeshed/stdlib/microbit/uart.pyi new file mode 100644 index 0000000..a5f52c3 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/microbit/uart.pyi @@ -0,0 +1,79 @@ +"""Cumarsáid a dhéanamh le gléas ag baint úsáide as comhéadan sraitheach.""" +from _typeshed import WriteableBuffer +from ..microbit import MicroBitDigitalPin +from typing import Optional, Union +ODD: int +"""Paireacht chorr (corr)""" +EVEN: int +"""Paireacht fiú (fiú amháin)""" + +def init(baudrate: int=9600, bits: int=8, parity: Optional[int]=None, stop: int=1, tx: Optional[MicroBitDigitalPin]=None, rx: Optional[MicroBitDigitalPin]=None) -> None: + """Túsaigh cumarsáid sraitheach. + +Example: ``uart.init(115200, tx=pin0, rx=pin1)`` + +:param baudrate: Luas na cumarsáide. +:param bits: Méid na mbeart atá á dtarchur. micro:bit: ní thacaíonn giotán ach le 8. +:param parity: (paireacht) Conas a dhéantar paireacht a sheiceáil, ``None``, ``uart.ODD`` nó ``uart.EVEN``. +:param stop: (stad) Líon na ngiotán stad, caithfidh sé a bheith 1 le haghaidh micro:bit. +:param tx: Bioráin a tharchur. +:param rx: Biorán glactha. + +Initializing the UART on external pins will cause the Python console on +USB to become unaccessible, as it uses the same hardware. To bring the +console back you must reinitialize the UART without passing anything for +``tx`` or ``rx`` (or passing ``None`` to these arguments). This means +that calling ``uart.init(115200)`` is enough to restore the Python console. + +For more details see `the online documentation `_.""" + ... + +def any() -> bool: + """Seiceáil an bhfuil aon sonraí ag fanacht. (aon) + +Example: ``uart.any()`` + +:return: ``True`` if any data is waiting, else ``False``.""" + ... + +def read(nbytes: Optional[int]=None) -> Optional[bytes]: + """Léigh bearta. (léamh) + +Example: ``uart.read()`` + +:param nbytes: Má tá ``nbytes`` sonraithe ansin léigh ar a mhéad go leor beart, nó léigh an oiread beart agus is féidir +:return: A bytes object or ``None`` on timeout""" + ... + +def readinto(buf: WriteableBuffer, nbytes: Optional[int]=None) -> Optional[int]: + """Léigh bearta isteach sa ``buf``. + +Example: ``uart.readinto(input_buffer)`` + +:param buf: An maolán le scríobh chuige. +:param nbytes: Má tá ``nbytes`` sonraithe ansin léigh ar a mhéad go leor bearta, ar shlí eile a léamh ``len(buf)`` bearta. +:return: number of bytes read and stored into ``buf`` or ``None`` on timeout.""" + ... + +def readline() -> Optional[bytes]: + """Léigh líne, ag críochnú i gcarachtar líne nua. + +Example: ``uart.readline()`` + +:return: The line read or ``None`` on timeout. The newline character is included in the returned bytes.""" + ... + +def write(buf: Union[bytes, str]) -> Optional[int]: + """Scríobh maolán ar an mbus. (scríobh) + +Example: ``uart.write('hello world')`` + +:param buf: Réad beart nó teaghrán. +:return: The number of bytes written, or ``None`` on timeout. + +Examples:: + + uart.write('hello world') + uart.write(b'hello world') + uart.write(bytes([1, 2, 3]))""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/micropython.pyi b/lang/ga-ie/typeshed/stdlib/micropython.pyi new file mode 100644 index 0000000..c486b3a --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/micropython.pyi @@ -0,0 +1,133 @@ +"""Gnéithe inmheánacha MicroPython.""" +from typing import Any, TypeVar, overload +_T = TypeVar('_T') + +def const(expr: _T) -> _T: + """Úsáidtear é chun a dhearbhú go bhfuil an slonn tairiseach ionas gur féidir leis an tiomsaitheoir +an leas is fearr is féidir a bhaint as. + +The use of this function should be as follows:: + + from micropython import const + CONST_X = const(123) + CONST_Y = const(2 * CONST_X + 1) + +Constants declared this way are still accessible as global variables from +outside the module they are declared in. On the other hand, if a constant +begins with an underscore then it is hidden, it is not available as a +global variable, and does not take up any memory during execution. + +:param expr: Léiriú tairiseach.""" + ... + +@overload +def opt_level() -> int: + """Faigh an leibhéal optamaithe reatha chun scripteanna a thiomsú. (leibhéal roghnaithe) + +Example: ``micropython.opt_level()`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +:return: An integer representing the current level.""" + ... + +@overload +def opt_level(level: int) -> None: + """Socraigh an leibhéal optamaithe le haghaidh tiomsú scripteanna ina dhiaidh sin. (leibhéal rogha) + +Example: ``micropython.opt_level(1)`` + +The optimisation level controls the following compilation features: + +- Assertions: at level 0 assertion statements are enabled and compiled + into the bytecode; at levels 1 and higher assertions are not compiled. + +- Built-in ``__debug__`` variable: at level 0 this variable expands to + True; at levels 1 and higher it expands to False. + +- Source-code line numbers: at levels 0, 1 and 2 source-code line number + are stored along with the bytecode so that exceptions can report the + line number they occurred at; at levels 3 and higher line numbers are + not stored. + +The default optimisation level is usually level 0. + +:param level: (leibhéal) Leibhéal optamaithe slánuimhir.""" + ... + +def mem_info(verbose: Any=None) -> None: + """Priontáil faisnéis faoin gcuimhne atá in úsáid faoi láthair. (eolas cuimhne) + +Example: ``micropython.mem_info()`` + +:param verbose: (foclach) Má thugtar an argóint ``verbose``, clóitear faisnéis bhreise.""" + ... + +def qstr_info(verbose: Any=None) -> None: + """Priontáil eolas faoi théada atá imtheorannaithe faoi láthair. (eolas qstr) + +Example: ``micropython.qstr_info()`` + +:param verbose: (foclach) Má thugtar an argóint ``verbose``, clóitear faisnéis bhreise. + +The information that is printed is implementation dependent, but currently +includes the number of interned strings and the amount of RAM they use. In +verbose mode it prints out the names of all RAM-interned strings.""" + ... + +def stack_use() -> int: + """Tabhair slánuimhir ar ais a léiríonn an méid reatha cruach atá á +a úsáidtear. (úsáid cruach) + +Example: ``micropython.stack_use()`` + +The absolute value of this is not particularly useful, rather it +should be used to compute differences in stack usage at different points. + +:return: An integer representing current stack use.""" + ... + +def heap_lock() -> None: + """Glasáil an carn. (glas carn) + +Example: ``micropython.heap_lock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def heap_unlock() -> None: + """Díghlasáil an carn. (díghlasáil carn) + +Example: ``micropython.heap_unlock()`` + +When locked no memory allocation can occur and a ``MemoryError`` will be +raised if any heap allocation is attempted.""" + ... + +def kbd_intr(chr: int) -> None: + """Socraigh an carachtar a ardóidh eisceacht ``KeyboardInterrupt`` . + +Example: ``micropython.kbd_intr(-1)`` + +:param chr: Cód carachtar chun an t-idirbhriseadh nó -1 a ardú chun gabháil Ctrl-C a dhíchumasú. + +By default this is set to 3 during script execution, corresponding to Ctrl-C. +Passing -1 to this function will disable capture of Ctrl-C, and passing 3 +will restore it. + +This function can be used to prevent the capturing of Ctrl-C on the +incoming stream of characters that is usually used for the REPL, in case +that stream is used for other purposes.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/music.pyi b/lang/ga-ie/typeshed/stdlib/music.pyi new file mode 100644 index 0000000..ce2bc8a --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/music.pyi @@ -0,0 +1,128 @@ +"""Cruthaigh agus seinn séiseanna. (ceol)""" +from typing import Optional, Tuple, Union, List +from .microbit import MicroBitDigitalPin, pin0 +DADADADUM: Tuple[str, ...] +"""Fonn: oscailt 5ú Siansa Beethoven i C mion.""" +ENTERTAINER: Tuple[str, ...] +"""Fonn: an blúire oscailte de chlasaic Ragtime Scott Joplin "The Entertainer". (siamsóir)""" +PRELUDE: Tuple[str, ...] +"""Fonn: oscailt an chéad Réamhrá i C Major de 48 Réamhráite agus Fugues J.S.Bach. (réamhrá)""" +ODE: Tuple[str, ...] +"""Fonn: an téama "Ode to Joy" ó 9ú Siansa Beethoven in D minor.""" +NYAN: Tuple[str, ...] +"""Fonn: téama Nyan Cat (http://www.nyan.cat/). + +The composer is unknown. This is fair use for educational porpoises (as they say in New York).""" +RINGTONE: Tuple[str, ...] +"""Fonn: rud a fhuaimníonn cosúil le clingthon fón póca. (clingthon) + +To be used to indicate an incoming message. +""" +FUNK: Tuple[str, ...] +"""Fonn: líne dord spraíúil do ghníomhairí rúnda agus do mháistir-intinn choiriúla. (func)""" +BLUES: Tuple[str, ...] +"""Fonn: a boogie-woogie 12-bar blues ag siúl Bass.""" +BIRTHDAY: Tuple[str, ...] +"""Fonn: "Breithlá sona duit..." (lá breithe) + +For copyright status see: http://www.bbc.co.uk/news/world-us-canada-34332853 +""" +WEDDING: Tuple[str, ...] +"""Fonn: an curfá bridal ó cheoldráma Wagner "Lohengrin". (pósadh)""" +FUNERAL: Tuple[str, ...] +"""Fonn : an “máirseáil sochraide” ar a dtugtar freisin Sonáid Phianó Uimh. 2 i B♭ beag, Op. 35 le Frédéric Chopin. (sochraid)""" +PUNCHLINE: Tuple[str, ...] +"""Fonn: tá blúire spraoi a léiríonn magadh déanta.""" +PYTHON: Tuple[str, ...] +"""Fonn: Máirseáil John Philip Sousa “Liberty Bell” ar a dtugtar téama “Monty Python’s Flying Circus” (ar a dtugtar an teanga ríomhchlárúcháin Python ina diaidh).""" +BADDY: Tuple[str, ...] +"""Fonn: bealach isteach ré an scannáin chiúin de drochdhuine. (drochdhuine)""" +CHASE: Tuple[str, ...] +"""Fonn: radharc ruaig ré scannán ciúin. (ruaig)""" +BA_DING: Tuple[str, ...] +"""Fonn: comhartha gearr chun a chur in iúl gur tharla rud éigin.""" +WAWAWAWAA: Tuple[str, ...] +"""Fonn: trombón an-bhrónach.""" +JUMP_UP: Tuple[str, ...] +"""Fonn: le húsáid i gcluiche, rud a léiríonn gluaiseacht aníos. (léim suas)""" +JUMP_DOWN: Tuple[str, ...] +"""Séis: le húsáid i gcluiche, rud a léiríonn gluaiseacht anuas. (léim síos)""" +POWER_UP: Tuple[str, ...] +"""Fonn: fonnfóir chun éacht a dhíghlasáil a léiriú. (cumhacht suas)""" +POWER_DOWN: Tuple[str, ...] +"""Fonn: faitíos brónach chun éacht a cailleadh a léiriú. (cumhacht síos)""" + +def set_tempo(ticks: int=4, bpm: int=120) -> None: + """Socraigh an luas garbh le haghaidh athsheinm. (socraigh tempo) + +Example: ``music.set_tempo(bpm=120)`` + +:param ticks: (sceartáin) Líon na sceartán ar buille iad. +:param bpm: Slánuimhir a chinneann cé mhéad buille in aghaidh an nóiméid. + +Suggested default values allow the following useful behaviour: + +- music.set_tempo() – reset the tempo to default of ticks = 4, bpm = 120 +- music.set_tempo(ticks=8) – change the “definition” of a beat +- music.set_tempo(bpm=180) – just change the tempo + +To work out the length of a tick in milliseconds is very simple arithmetic: +60000/bpm/ticks_per_beat. For the default values that’s +60000/120/4 = 125 milliseconds or 1 beat = 500 milliseconds.""" + ... + +def get_tempo() -> Tuple[int, int]: + """Faigheann an luas reatha mar tupla slánuimhreacha: ``(ticks, bpm)``. (faigh tempo) + +Example: ``ticks, beats = music.get_tempo()`` + +:return: The temp as a tuple with two integer values, the ticks then the beats per minute.""" + ... + +def play(music: Union[str, List[str], Tuple[str, ...]], pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True, loop: bool=False) -> None: + """Seinneann sé ceol. (seinn) + +Example: ``music.play(music.NYAN)`` + +:param music: (ceol) ceol a shonraítear in 'nodaireacht speisialta '_ +:param pin: (biorán) an bioráin aschuir le húsáid le cainteoir seachtrach (réamhshocraithe ``pin0``), ``None`` gan aon fhuaim. +:param wait: (fan) Má tá ``wait`` socraithe go ``True``, tá an fheidhm seo ag blocáil. +:param loop: (lúb) Má tá ``loop`` socraithe go ``True``, athrá ar an tiún go dtí go dtugtar ``stop`` nó go gcuirtear isteach ar an nglao blocála. + +Many built-in melodies are defined in this module.""" + ... + +def pitch(frequency: int, duration: int=-1, pin: Optional[MicroBitDigitalPin]=pin0, wait: bool=True) -> None: + """Seinn nóta. (páirc) + +Example: ``music.pitch(185, 1000)`` + +:param frequency: (minicíocht) Minicíocht slánuimhir +:param duration: (fad) Fad milleasoicind. Má tá fuaim dhiúltach ansin leanúnach go dtí an chéad ghlao eile nó glao ar ``stop``. +:param pin: (biorán) Bioráin aschuir roghnach (réamhshocraithe ``pin0``). +:param wait: (fan) Má tá ``wait`` socraithe go ``True``, tá an fheidhm seo ag blocáil. + +For example, if the frequency is set to 440 and the length to +1000 then we hear a standard concert A for one second. + +You can only play one pitch on one pin at any one time.""" + ... + +def stop(pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Stopann sé gach athsheinm ceoil ar an gcainteoir tógtha isteach agus aon fhuaim aschur bioráin. (stad) + +Example: ``music.stop()`` + +:param pin: (pionna) Is féidir argóint roghnach a chur ar fáil chun biorán a shonrú, m.sh. ``music.stop(pin1)``.""" + +def reset() -> None: + """Athshocraigh sceartáin, bpm, fad agus ochtach chuig a luachanna réamhshocraithe. (athshocrú) + +Example: ``music.reset()`` + +Values: +- ``ticks = 4`` +- ``bpm = 120`` +- ``duration = 4`` +- ``octave = 4``""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/neopixel.pyi b/lang/ga-ie/typeshed/stdlib/neopixel.pyi new file mode 100644 index 0000000..b81862f --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/neopixel.pyi @@ -0,0 +1,81 @@ +"""Stiallacha RGB agus RGBW LED atá inseolta ina n-aonar.""" +from .microbit import MicroBitDigitalPin +from typing import Tuple + +class NeoPixel: + + def __init__(self, pin: MicroBitDigitalPin, n: int, bpp: int=3) -> None: + """Túsaigh stiall nua de soilse neopicsel a rialaítear trí bhiorán. + +Example: ``np = neopixel.NeoPixel(pin0, 8)`` + +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. + +See `the online docs `_ for warnings and other advice. + +:param pin: (biorán) An biorán a rialaíonn an stiall neopicsel. +:param n: Líon na neopicsel sa stiall. +:param bpp: Bearta in aghaidh an phicteilín. Maidir le tacaíocht neopicsel RGBW, pas 4 seachas mainneachtain 3 do RGB agus GRB.""" + ... + + def clear(self) -> None: + """Glan na picteilíní go léir. (soiléir) + +Example: ``np.clear()``""" + ... + + def show(self) -> None: + """Taispeáin na picteilíní. (taispeáin) + +Example: ``np.show()`` + +Must be called for any updates to become visible.""" + ... + + def write(self) -> None: + """Taispeáin na picteilíní (micro:bit V2 amháin). (scríobh) + +Example: ``np.write()`` + +Must be called for any updates to become visible. + +Equivalent to ``show``.""" + ... + + def fill(self, colour: Tuple[int, ...]) -> None: + """Dathaigh gach picteilín luach RGB / RGBW ar leith (micro:bit V2 amháin). (líonadh) + +Example: ``np.fill((0, 0, 255))`` + +:param colour: (dath) Tupla den fhad céanna le líon na mbeart in aghaidh an phicteilín (bpp). + +Use in conjunction with ``show()`` to update the neopixels.""" + ... + + def __setitem__(self, key: int, value: Tuple[int, ...]) -> None: + """Socraigh dath picteilín. (socraigh mír) + +Example: ``np[0] = (255, 0, 0)`` + +:param key: (eochair) Uimhir an phicteilín. +:param value: (luach) An dath.""" + + def __getitem__(self, key: int) -> Tuple[int, ...]: + """Faigh dath picteilín. (faigh mír) + +Example: ``r, g, b = np[0]`` + +:param key: (eochair) Uimhir an phicteilín. +:return: The colour tuple.""" + + def __len__(self) -> int: + """Faigh fad an stiall picteilín seo. + +Example: ``len(np)``""" \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/os.pyi b/lang/ga-ie/typeshed/stdlib/os.pyi new file mode 100644 index 0000000..35de847 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/os.pyi @@ -0,0 +1,63 @@ +"""Rochtain a fháil ar an gcóras comhad.""" +from typing import Tuple +from typing import List + +def listdir() -> List[str]: + """Liostaigh comhaid. + +Example: ``os.listdir()`` + +:return: A list of the names of all the files contained within the local +persistent on-device file system.""" + ... + +def remove(filename: str) -> None: + """Bain (scrios) comhad. (bain) + +Example: ``os.remove('data.txt')`` + +:param filename: (ainm comhaid) An comhad le scriosadh. + +If the file does not exist an ``OSError`` exception will occur.""" + ... + +def size(filename: str) -> int: + """Tuairisceáin méid comhaid. (méid) + +Example: ``os.size('data.txt')`` + +:param filename: (ainm comhaid) An comhad +:return: The size in bytes. + +If the file does not exist an ``OSError`` exception will occur.""" + +class uname_result(Tuple[str, str, str, str, str]): + """Toradh de ``os.uname()`` (toradh uname)""" + sysname: str + """Ainm an chórais oibriúcháin. (ainm an chórais)""" + nodename: str + """Ainm an mheaisín ar an líonra (cur i bhfeidhm sainithe). (ainm nóid)""" + release: str + """Scaoileadh an chórais oibriúcháin. (scaoileadh)""" + version: str + """Leagan an chórais oibriúcháin. (leagan)""" + machine: str + """Aitheantóir crua-earraí. (meaisín)""" + +def uname() -> uname_result: + """Tuairisceáin faisnéis a aithníonn an córas oibriúcháin reatha. + +Example: ``os.uname()`` + +The return value is an object with five attributes: + +- ``sysname`` - operating system name +- ``nodename`` - name of machine on network (implementation-defined) +- ``release`` - operating system release +- ``version`` - operating system version +- ``machine`` - hardware identifier + +There is no underlying operating system in MicroPython. As a result the +information returned by the ``uname`` function is mostly useful for +versioning details.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/power.pyi b/lang/ga-ie/typeshed/stdlib/power.pyi new file mode 100644 index 0000000..2be8b27 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/power.pyi @@ -0,0 +1,53 @@ +"""Manage the power modes of the micro:bit (V2 only). +""" + +from microbit import MicroBitDigitalPin, Button +from typing import Optional, Tuple, Union + +def off() -> None: + """Power down the board to the lowest possible power mode. + + Example: ``power.off()`` + + This is the equivalent to pressing the reset button for a few seconds, + to set the board in "Off mode". + + The micro:bit will only wake up if the reset button is pressed or, + if on battery power, when a USB cable is connected. + + When the board wakes up it will start for a reset state, so your program + will start running from the beginning. + """ + ... + +def deep_sleep( + ms: Optional[int] = None, + wake_on: Optional[ + Union[MicroBitDigitalPin, Button] | Tuple[MicroBitDigitalPin | Button, ...] + ] = None, + run_every: bool = True, +) -> None: + """Set the micro:bit into a low power mode where it can wake up and continue operation. + + Example: ``power.deep_sleep(wake_on=(button_a, button_b))`` + + The program state is preserved and when it wakes up it will resume + operation where it left off. + + Deep Sleep mode will consume more battery power than Off mode. + + The wake up sources are configured via arguments. + + The board will always wake up when receiving UART data, when the reset + button is pressed (which resets the board) or, in battery power, + when the USB cable is inserted. + + When the ``run_every`` parameter is set to ``True`` (the default), any + function scheduled with ``run_every`` will momentarily wake up the board + to run and when it finishes it will go back to sleep. + + :param ms: A time in milliseconds to wait before it wakes up. + :param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``. + :param run_every: A boolean to configure if the functions scheduled with ``microbit.run_every`` will continue to run while it sleeps. + """ + ... diff --git a/lang/ga-ie/typeshed/stdlib/radio.pyi b/lang/ga-ie/typeshed/stdlib/radio.pyi new file mode 100644 index 0000000..aad25a4 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/radio.pyi @@ -0,0 +1,130 @@ +"""Cumarsáid a dhéanamh idir micro:bit leis an raidió tógtha. (raidió)""" +from _typeshed import WriteableBuffer +from typing import Optional, Tuple +RATE_1MBIT: int +"""Tairiseach a úsáidtear chun tréchur 1 MBit an dara ceann a léiriú. (ráta 1mbit)""" +RATE_2MBIT: int +"""Tairiseach a úsáidtear chun tréchur 2 MBit an dara ceann a léiriú. (ráta 2mbit)""" + +def on() -> None: + """Casann sé an raidió air. (ar) + +Example: ``radio.on()`` + +This needs to be explicitly called since the radio draws power and takes +up memory that you may otherwise need.""" + ... + +def off() -> None: + """Múchann sé an raidió, ag sábháil cumhachta agus cuimhne. (as) + +Example: ``radio.off()``""" + ... + +def config(length: int=32, queue: int=3, channel: int=7, power: int=6, address: int=1969383796, group: int=0, data_rate: int=RATE_1MBIT) -> None: + """Cumraigh an raidió. (cumraíocht) + +Example: ``radio.config(group=42)`` + +The default configuration is suitable for most use. + +:param length: (fad) Sainmhíníonn (réamhshocrú=32) an fad uasta, i mbéiteanna, de theachtaireacht a sheoltar tríd an raidió. +Féadfaidh sé a bheith suas le 251 beart ar fhad (254 - 3 beart do réamhrá S0, FAD agus S1). +:param queue: (scuaine) (réamhshocrú = 3) sonraítear líon na dteachtaireachtaí is féidir a stóráil ar an scuaine teachtaireachta isteach. +Mura bhfuil aon spásanna fágtha ar an scuaine le haghaidh teachtaireachtaí isteach, ansin tá an teachtaireacht ag teacht isteach thit. +:param channel: (cainéal) (réamhshocrú = 7) slánuimhir luach ó 0 go 83 (san áireamh) a shainmhíníonn "cainéal" treallach a bhfuil an raidió tiúnta leis. +Seolfar teachtaireachtaí tríd an gcainéal seo agus ní chuirfear ach teachtaireachtaí a fhaightear tríd an gcainéal seo ar an scuaine teachtaireachtaí atá ag teacht isteach. Tá gach céim 1MHz ar leithead, bunaithe ar 2400MHz. +:param power: (cumhacht) (réamhshocrú = 6) Is luach slánuimhir ó 0 go 7 (san áireamh) a chur in iúl ar an neart comhartha a úsáidtear nuair a chraoladh teachtaireacht. +Dá airde an luach is ea is láidre an comhartha, ach is é an gléas is mó a chaitheann an chumhacht. Aistríonn an t-uimhriú go poist sa liosta seo a leanas de luachanna dBm (decibel milliwatt): -30, -20, -16, -12, -8, -4, 0, 4. +:param address: (seoladh) (default=0x75626974) ainm treallach, arna shloinneadh mar sheoladh 32-giotán, a úsáidtear chun paicéid atá ag teacht isteach a scagadh ag leibhéal na crua-earraí, gan ach iad siúd a mheaitseáil leis an seoladh a shocraigh tú a choinneáil. +Is é an réamhshocrú a úsáideann ardáin eile a bhaineann le micro:bit an socrú réamhshocraithe a úsáidtear anseo. +:param group: (grúpa) (default=0) luach 8-giotán (0-255) a úsáidtear leis an ``address`` agus teachtaireachtaí á scagadh. +Go coincheapúil, tá "seoladh" cosúil le seoladh tí / oifige agus tá "grúpa" cosúil leis an duine ag an seoladh sin ar mian leat do theachtaireacht a sheoladh chuige. +:param data_rate: (ráta sonraí) (réamhshocrú=``radio.RATE_1MBIT``) an luas ag a dtarlaíonn tréchur sonraí. +Is féidir a bheith ar cheann de na tairisigh seo a leanas a shainmhínítear sa mhodúl ``radio`` : ``RATE_250KBIT``, ``RATE_1MBIT`` nó ``RATE_2MBIT``. + +If ``config`` is not called then the defaults described above are assumed.""" + ... + +def reset() -> None: + """Athshocraigh na socruithe dá luachanna réamhshocraithe. (athshocrú) + +Example: ``radio.reset()`` + +The defaults as as per the ``config`` function above.""" + ... + +def send_bytes(message: bytes) -> None: + """Seolann seo teachtaireacht ina bhfuil bearta. (seol bearta) + +Example: ``radio.send_bytes(b'hello')`` + +:param message: (teachtaireacht) Na bearta le seoladh.""" + ... + +def receive_bytes() -> Optional[bytes]: + """Faigh an chéad teachtaireacht eile isteach ar an scuaine teachtaireachtaí. (bearta a fháil) + +Example: ``radio.receive_bytes()`` + +:return: The message bytes if any, otherwise ``None``.""" + ... + +def receive_bytes_into(buffer: WriteableBuffer) -> Optional[int]: + """Cóipeáil an chéad teachtaireacht isteach eile ar an scuaine teachtaireachta isteach i maolán. (bearta a fháil isteach i) + +Example: ``radio.receive_bytes_info(buffer)`` + +:param buffer: (maolán) An maolán sprice. Tá an teachtaireacht teasctha má tá sé níos mó ná an maolán. +:return: ``None`` if there are no pending messages, otherwise it returns the length of the message (which might be more than the length of the buffer).""" + ... + +def send(message: str) -> None: + """Seolann seo teaghrán teachtaireachta. (seol) + +Example: ``radio.send('hello')`` + +This is the equivalent of ``radio.send_bytes(bytes(message, 'utf8'))`` but with ``b'\x01\x00\x01'`` +prepended to the front (to make it compatible with other platforms that target the micro:bit). + +:param message: (teachtaireacht) An sreangán le seoladh.""" + ... + +def receive() -> Optional[str]: + """Oibríonn sé ar an mbealach céanna le ``receive_bytes`` ach filleann sé cibé rud a seoladh. (faigh) + +Example: ``radio.receive()`` + +Equivalent to ``str(receive_bytes(), 'utf8')`` but with a check that the the first +three bytes are ``b'\x01\x00\x01'`` (to make it compatible with other platforms that +may target the micro:bit). + +:return: The message with the prepended bytes stripped and converted to a string. + +A ``ValueError`` exception is raised if conversion to string fails.""" + ... + +def receive_full() -> Optional[Tuple[bytes, int, int]]: + """Tuairisceáin tupla ina bhfuil trí luach a léiríonn an chéad teachtaireacht eile ag teacht isteach ar an scuaine teachtaireacht. (faigh iomlán) + +Example: ``radio.receive_full()`` + +If there are no pending messages then ``None`` is returned. + +The three values in the tuple represent: + +- the next incoming message on the message queue as bytes. +- the RSSI (signal strength): a value between 0 (strongest) and -255 (weakest) as measured in dBm. +- a microsecond timestamp: the value returned by ``time.ticks_us()`` when the message was received. + +For example:: + + details = radio.receive_full() + if details: + msg, rssi, timestamp = details + +This function is useful for providing information needed for triangulation +and/or trilateration with other micro:bit devices. + +:return: ``None`` if there is no message, otherwise a tuple of length three with the bytes, strength and timestamp values.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/random.pyi b/lang/ga-ie/typeshed/stdlib/random.pyi new file mode 100644 index 0000000..3bfe817 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/random.pyi @@ -0,0 +1,81 @@ +"""Gin uimhreacha randamacha. (randamach)""" +from typing import TypeVar, Sequence, Union, overload + +def getrandbits(n: int) -> int: + """Gin slánuimhir le ``n`` giotán randamach. + +Example: ``random.getrandbits(1)`` + +:param n: Luach idir 1-30 (san áireamh).""" + ... + +def seed(n: int) -> None: + """Túsaigh an gineadóir uimhreacha randamacha. (síol) + +Example: ``random.seed(0)`` + +:param n: An síol slánuimhir + +This will give you reproducibly deterministic randomness from a given starting +state (``n``).""" + ... + +def randint(a: int, b: int) -> int: + """Roghnaigh slánuimhir randamach idir ``a`` agus ``b`` san áireamh. + +Example: ``random.randint(0, 9)`` + +:param a: Luach tosaigh don raon (san áireamh) +:param b: Luach deiridh don raon (san áireamh) + +Alias for ``randrange(a, b + 1)``.""" + ... + +@overload +def randrange(stop: int) -> int: + """Roghnaigh slánuimhir a roghnaíodh go randamach idir nialas agus suas le (ach ní +lena n-áirítear) ``stop``. + +Example: ``random.randrange(10)`` + +:param stop: (stad) Luach deiridh don raon (eisiach)""" + ... + +@overload +def randrange(start: int, stop: int, step: int=1) -> int: + """Roghnaigh eilimint a roghnaíodh go randamach ó ``range(start, stop, step)``. + +Example: ``random.randrange(0, 10)`` + +:param start: (tús) Tús an raoin (san áireamh) +:param stop: (stad) Deireadh an raoin (eisiach) +:param step: (céim) An chéim.""" + ... +_T = TypeVar('_T') + +def choice(seq: Sequence[_T]) -> _T: + """Roghnaigh eilimint randamach ón seicheamh neamhfholamh ``seq``. (rogha) + +Example: ``random.choice([Image.HAPPY, Image.SAD])`` + +:param seq: Seicheamh. + +If ``seq`` is empty, raises ``IndexError``.""" + ... + +def random() -> float: + """Gin uimhir randamach snámhphointe sa raon [0.0, 1.0). (randamach) + +Example: ``random.random()`` + +:return: The random floating point number""" + ... + +def uniform(a: float, b: float) -> float: + """Seol uimhir randamach snámhphointe ar ais idir ``a`` agus ``b`` san áireamh. (éide) + +Example: ``random.uniform(0, 9)`` + +:param a: Luach tosaigh don raon (san áireamh) +:param b: Luach deiridh don raon (san áireamh)""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/speech.pyi b/lang/ga-ie/typeshed/stdlib/speech.pyi new file mode 100644 index 0000000..b6ae758 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/speech.pyi @@ -0,0 +1,79 @@ +"""Cuir an micro:bit ag caint, ag canadh agus ag déanamh fuaimeanna eile cosúil le cainte. (óráid)""" +from typing import Optional +from .microbit import MicroBitDigitalPin, pin0 + +def translate(words: str) -> str: + """Aistrigh focail Bhéarla go fóinéimí. (aistrigh) + +Example: ``speech.translate('hello world')`` + +:param words: (focail) Teaghrán focal Béarla. +:return: A string containing a best guess at the appropriate phonemes to pronounce. +The output is generated from this `text to phoneme translation table `_. + +This function should be used to generate a first approximation of phonemes +that can be further hand-edited to improve accuracy, inflection and +emphasis. + +See `the online documentation `_ for detailed information.""" + ... + +def pronounce(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: Optional[MicroBitDigitalPin]=pin0) -> None: + """Fóinéimí a fhuaimniú. (fuaimniú) + +Example: ``speech.pronounce(' /HEHLOW WERLD')`` + +:param phonemes: (fóinéimí) An teaghrán fóinéimí a fhuaimniú +:param pitch: (airde) Uimhir a sheasann do pháirc an ghutha +:param speed: (luas) Uimhir a léiríonn luas an ghutha +:param mouth: (béal) Uimhir a sheasann do bhéal an ghutha +:param throat: (scornach) Uimhir a sheasann do scornach an ghutha +:param pin: (biorán) Is féidir argóint roghnach chun an bioráin aschuir a shonrú a úsáid chun mainneachtain ``pin0``a shárú. +Mura dteastaíonn uainn aon fhuaim a sheinm as na bioráin is féidir ``pin=None``a úsáid. micro:bit V2 amháin. + +Override the optional pitch, speed, mouth and throat settings to change the +timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... + +def say(words: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Abair focail Bhéarla. (abair) + +Example: ``speech.say('hello world')`` + +:param words: (focail) An teaghrán focal le rá. +:param pitch: (airde) Uimhir a léiríonn airde an ghutha +:param speed: (luas) Uimhir a léiríonn luas an ghlór +:param mouth: (béal) Uimhir a sheasann do bhéal an ghutha +:param throat: (scornach) Uimhir a sheasann do scornach an ghutha +:param pin: (biorán) Is féidir argóint roghnach a úsáid chun an biorán aschuir a shonrú chun an réamhshocrú ``pin0`` a shárú. +Mura dteastaíonn uainn go seinnfí aon fhuaim as na bioráin is féidir ``pin=None`` a úsáid. micro:bit V2 amháin. + +The result is semi-accurate for English. Override the optional pitch, speed, +mouth and throat settings to change the timbre (quality) of the voice. + +This is a short-hand equivalent of: +``speech.pronounce(speech.translate(words))`` + +See `the online documentation `_ for detailed information.""" + ... + +def sing(phonemes: str, pitch: int=64, speed: int=72, mouth: int=128, throat: int=128, pin: MicroBitDigitalPin=pin0) -> None: + """Can fóinéimí. (canadh) + +Example: ``speech.sing(' /HEHLOW WERLD')`` + +:param phonemes: (fóinéimí) An teaghrán focal le canadh. +:param pitch: (airde) Uimhir a léiríonn airde an ghutha +:param speed: (luas) Uimhir a léiríonn luas an ghlór +:param mouth: (béal) Uimhir a sheasann do bhéal an ghutha +:param throat: (scornach) Uimhir a sheasann do scornach an ghutha +:param pin: (biorán) Is féidir argóint roghnach chun an bioráin aschuir a shonrú a úsáid chun mainneachtain ``pin0``a shárú. +Mura dteastaíonn uainn aon fhuaim a sheinm as na bioráin is féidir ``pin=None``a úsáid. micro:bit V2 amháin. + +Override the optional pitch, speed, mouth and throat settings to change +the timbre (quality) of the voice. + +See `the online documentation `_ for detailed information.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/struct.pyi b/lang/ga-ie/typeshed/stdlib/struct.pyi new file mode 100644 index 0000000..70fc3e5 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/struct.pyi @@ -0,0 +1,56 @@ +"""Pacáistiú agus díphacáil cineálacha sonraí bunúsach.""" +from _typeshed import ReadableBuffer, WriteableBuffer +from typing import Any, Tuple, Union + +def calcsize(fmt: str) -> int: + """Faigh líon na mbeart a theastaíonn chun an ``fmt`` tugtha a stóráil. + +Example: ``struct.calcsize('hf')`` + +:param fmt: Teaghrán formáide. +:return The number of bytes needed to store such a value.""" + ... + +def pack(fmt: str, v1: Any, *vn: Any) -> bytes: + """Pacáil luachanna de réir teaghrán formáide. (pacáiste) + +Example: ``struct.pack('hf', 1, 3.1415)`` + +:param fmt: An teaghrán formáide. +:param v1: An chéad luach. +:param *vn: Na luachanna atá fágtha. +:return A bytes object encoding the values.""" + ... + +def pack_into(fmt: str, buffer: WriteableBuffer, offset: int, v1: Any, *vn: Any) -> None: + """Pacáil luachanna de réir teaghrán formáide. (pacáil isteach i) + +Example: ``struct.pack_info('hf', buffer, 1, 3.1415)`` + +:param fmt: An teaghrán formáide. +:param buffer: (maolán) An maolán sprice le scríobh isteach. +:param offset: (fritháireamh) An fritháireamh isteach sa mhaolán. D'fhéadfadh sé a bheith diúltach le comhaireamh ó dheireadh an mhaoláin. +:param v1: An chéad luach. +:param *vn: Na luachanna atá fágtha.""" + ... + +def unpack(fmt: str, data: ReadableBuffer) -> Tuple[Any, ...]: + """Díphacáil sonraí de réir teaghrán formáide. (díphacáil) + +Example: ``v1, v2 = struct.unpack('hf', buffer)`` + +:param fmt: An teaghrán formáide. +:param data: (sonraí) Na sonraí. +:return: A tuple of the unpacked values.""" + ... + +def unpack_from(fmt: str, buffer: ReadableBuffer, offset: int=0) -> Tuple: + """Díphacáil sonraí ó mhaolán de réir teaghrán formáide. (díphacáil ó) + +Example: ``v1, v2 = struct.unpack_from('hf', buffer)`` + +:param fmt: An teaghrán formáide. +:param buffer: (maolán) An maolán foinseach le léamh as. +:param offset: (fritháireamh) An fritháireamh isteach sa mhaolán. D'fhéadfadh sé a bheith diúltach le comhaireamh ó dheireadh an mhaoláin. +:return: A tuple of the unpacked values.""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/sys.pyi b/lang/ga-ie/typeshed/stdlib/sys.pyi new file mode 100644 index 0000000..7d78696 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/sys.pyi @@ -0,0 +1,96 @@ +"""Feidhmeanna a bhaineann go sonrach leis an gcóras""" +from typing import Any, Dict, List, NoReturn, TextIO, Tuple + +def exit(retval: object=...) -> NoReturn: + """Cuir deireadh leis an ríomhchlár reatha le cód scoir ar leith. (scoir) + +Example: ``sys.exit(1)`` + +This function raises a ``SystemExit`` exception. If an argument is given, its +value given as an argument to ``SystemExit``. + +:param retval: An cód scoir nó an teachtaireacht.""" + ... + +def print_exception(exc: Exception) -> None: + """Priontáil eisceacht le rianú siar. (eisceacht priontála) + +Example: ``sys.print_exception(e)`` + +:param exc: An eisceacht maidir le priontáil + +This is simplified version of a function which appears in the +``traceback`` module in CPython.""" +argv: List[str] +"""Liosta inathraithe d'argóintí a cuireadh tús leis an gclár reatha leo.""" +byteorder: str +"""Ord beart an chórais (``"little"`` nó ``"big"``).""" + +class _implementation: + name: str + version: Tuple[int, int, int] +implementation: _implementation +"""Cuspóir le faisnéis faoi chur i bhfeidhm reatha Python. (cur i bhfeidhm) + +For MicroPython, it has following attributes: + +- ``name`` - string "micropython" +- ``version`` - tuple (major, minor, micro), e.g. (1, 7, 0) + +This object is the recommended way to distinguish MicroPython from other +Python implementations (note that it still may not exist in the very +minimal ports). + +CPython mandates more attributes for this object, but the actual useful +bare minimum is implemented in MicroPython. +""" +maxsize: int +""" +Uasluach is féidir le cineál slánuimhir dhúchasach a shealbhú ar an ardán reatha, +nó an luach uasta is féidir a léiriú le cineál slánuimhir MicroPython, má tá sé níos lú +ná uasluach ardáin (is é sin an cás i gcás calafoirt MicroPython gan +tacaíocht int fada). (uasmhéid) + +This attribute is useful for detecting "bitness" of a platform (32-bit vs +64-bit, etc.). It's recommended to not compare this attribute to some +value directly, but instead count number of bits in it:: + + bits = 0 + v = sys.maxsize + while v: + bits += 1 + v >>= 1 + if bits > 32: + # 64-bit (or more) platform + ... + else: + # 32-bit (or less) platform + # Note that on 32-bit platform, value of bits may be less than 32 + # (e.g. 31) due to peculiarities described above, so use "> 16", + # "> 32", "> 64" style of comparisons. +""" +modules: Dict[str, Any] +"""Foclóir modúil luchtaithe. (modúil) + +On some ports, it may not include builtin modules.""" +path: List[str] +"""Liosta inathraithe d’eolairí le cuardach a dhéanamh ar mhodúil allmhairithe. (cosán)""" +platform: str +"""An t-ardán a bhfuil MicroPython ag rith air. (ardán) + +For OS/RTOS ports, this is usually an identifier of the OS, e.g. ``"linux"``. +For baremetal ports it is an identifier of a board, e.g. ``"pyboard"`` for +the original MicroPython reference board. It thus can be used to +distinguish one board from another. + +If you need to check whether your program runs on MicroPython (vs other +Python implementation), use ``sys.implementation`` instead. +""" +version: str +"""Leagan teanga Python a chloíonn leis an gcur i bhfeidhm seo, mar theaghrán. (leagan)""" +version_info: Tuple[int, int, int] +"""Leagan teanga Python a gcomhlíonann an cur i bhfeidhm seo, mar thupla de shláintiúirí. (eolas faoin leagan) + +Only the first three version numbers (major, minor, micro) are supported and +they can be referenced only by index, not by name. +""" \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/this.pyi b/lang/ga-ie/typeshed/stdlib/this.pyi new file mode 100644 index 0000000..faf492b --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/this.pyi @@ -0,0 +1 @@ +def authors() -> str: ... diff --git a/lang/ga-ie/typeshed/stdlib/time.pyi b/lang/ga-ie/typeshed/stdlib/time.pyi new file mode 100644 index 0000000..679599d --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/time.pyi @@ -0,0 +1,116 @@ +"""Tomhais am agus cuir moilleanna le ríomhchláir. (am)""" +from typing import Union + +def sleep(seconds: Union[int, float]) -> None: + """Moill a chur ar roinnt soicindí. (codladh) + +Example: ``time.sleep(1)`` + +:param seconds: (soicindí) Líon na soicindí le codladh. +Bain úsáid as uimhir snámhphointe chun codladh ar feadh uimhir chodánach soicind.""" + ... + +def sleep_ms(ms: int) -> None: + """Moill ar líon áirithe milleasoicindí. (codladh ms) + +Example: ``time.sleep_ms(1_000_000)`` + +:param ms: Líon na milleasoicindí moill (>= 0).""" + ... + +def sleep_us(us: int) -> None: + """Moill ar líon áirithe micreasoicindí. (codladh linn) + +Example: ``time.sleep_us(1000)`` + +:param us: (linn) Líon na micreasoicindí moill (>= 0).""" + ... + +def ticks_ms() -> int: + """Faigh cuntar milleasoicind atá ag dul i méid le pointe tagartha treallach, +a chlúdaíonn thart tar éis luach éigin. (sceartáin ms) + +Example: ``time.ticks_ms()`` + +:return: The counter value in milliseconds.""" + ... + +def ticks_us() -> int: + """Faigh cuntar méadaitheach micreasoicind le pointe tagartha treallach, +a chlúdaíonn thart tar éis luach éigin. (tic a chur orainn) + +Example: ``time.ticks_us()`` + +:return: The counter value in microseconds.""" + ... + +def ticks_add(ticks: int, delta: int) -> int: + """Fritháireamh luach ticeanna de réir uimhir ar leith, a d'fhéadfadh a bheith dearfach nó +diúltach. (cuir sceartáin) + +Example: ``time.ticks_add(time.ticks_ms(), 200)`` + +Given a ticks value, this function allows to calculate ticks +value delta ticks before or after it, following modular-arithmetic +definition of tick values. + +:param ticks: (sceartáin) Luach ticeanna +:param delta: (deilte) Fritháireamh slánuimhir + +Example:: + + # Find out what ticks value there was 100ms ago + print(ticks_add(time.ticks_ms(), -100)) + + # Calculate deadline for operation and test for it + deadline = ticks_add(time.ticks_ms(), 200) + while ticks_diff(deadline, time.ticks_ms()) > 0: + do_a_little_of_something() + + # Find out TICKS_MAX used by this port + print(ticks_add(0, -1))""" + ... + +def ticks_diff(ticks1: int, ticks2: int) -> int: + """Tomhais an difríocht idir luachanna a chuirtear ar ais ó +``time.ticks_ms()`` nó ``ticks_us()``, mar luach sínithe +a d'fhéadfadh timfhilleadh timpeall. (ticeanna difr) + +Example: ``time.ticks_diff(scheduled_time, now)`` + +:param ticks1: (ticeanna1) An luach a dhealú ó +:param ticks2: (ticeanna2) An luach a dhealú + +The argument order is the same as for subtraction operator, +``ticks_diff(ticks1, ticks2)`` has the same meaning as ``ticks1 - ticks2``. + +``ticks_diff()`` is designed to accommodate various usage +patterns, among them: + +Polling with timeout. In this case, the order of events is known, and you +will deal only with positive results of :func:`time.ticks_diff()`:: + + # Wait for GPIO pin to be asserted, but at most 500us + start = time.ticks_us() + while pin.value() == 0: + if time.ticks_diff(time.ticks_us(), start) > 500: + raise TimeoutError + + +Scheduling events. In this case, :func:`time.ticks_diff()` result may be +negative if an event is overdue:: + + # This code snippet is not optimized + now = time.ticks_ms() + scheduled_time = task.scheduled_time() + if ticks_diff(scheduled_time, now) > 0: + print("Too early, let's nap") + sleep_ms(ticks_diff(scheduled_time, now)) + task.run() + elif ticks_diff(scheduled_time, now) == 0: + print("Right at time!") + task.run() + elif ticks_diff(scheduled_time, now) < 0: + print("Oops, running late, tell task to run faster!") + task.run(run_faster=True)""" + ... \ No newline at end of file diff --git a/lang/ga-ie/typeshed/stdlib/types.pyi b/lang/ga-ie/typeshed/stdlib/types.pyi new file mode 100644 index 0000000..752b2de --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/types.pyi @@ -0,0 +1,413 @@ +import sys +from typing import ( + Any, + AsyncGenerator, + Awaitable, + Callable, + Generator, + Generic, + ItemsView, + Iterable, + Iterator, + KeysView, + Mapping, + Tuple, + Type, + TypeVar, + ValuesView, + overload, +) +from typing_extensions import Literal, final + +# Note, all classes "defined" here require special handling. + +_T = TypeVar("_T") +_T1 = TypeVar("_T1") +_T2 = TypeVar("_T2") +_T_co = TypeVar("_T_co", covariant=True) +_T_contra = TypeVar("_T_contra", contravariant=True) +_KT = TypeVar("_KT") +_VT_co = TypeVar("_VT_co", covariant=True) +_V_co = TypeVar("_V_co", covariant=True) + +@final +class _Cell: + __hash__: None # type: ignore + cell_contents: Any + +@final +class FunctionType: + __closure__: Tuple[_Cell, ...] | None + __code__: CodeType + __defaults__: Tuple[Any, ...] | None + __dict__: dict[str, Any] + __globals__: dict[str, Any] + __name__: str + __qualname__: str + __annotations__: dict[str, Any] + __kwdefaults__: dict[str, Any] + def __init__( + self, + code: CodeType, + globals: dict[str, Any], + name: str | None = ..., + argdefs: Tuple[object, ...] | None = ..., + closure: Tuple[_Cell, ...] | None = ..., + ) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: object | None, type: type | None) -> MethodType: ... + +LambdaType = FunctionType + +@final +class CodeType: + """Create a code object. Not for the faint of heart.""" + + co_argcount: int + if sys.version_info >= (3, 8): + co_posonlyargcount: int + co_kwonlyargcount: int + co_nlocals: int + co_stacksize: int + co_flags: int + co_code: bytes + co_consts: Tuple[Any, ...] + co_names: Tuple[str, ...] + co_varnames: Tuple[str, ...] + co_filename: str + co_name: str + co_firstlineno: int + co_lnotab: bytes + co_freevars: Tuple[str, ...] + co_cellvars: Tuple[str, ...] + if sys.version_info >= (3, 8): + def __init__( + self, + argcount: int, + posonlyargcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + else: + def __init__( + self, + argcount: int, + kwonlyargcount: int, + nlocals: int, + stacksize: int, + flags: int, + codestring: bytes, + constants: Tuple[Any, ...], + names: Tuple[str, ...], + varnames: Tuple[str, ...], + filename: str, + name: str, + firstlineno: int, + lnotab: bytes, + freevars: Tuple[str, ...] = ..., + cellvars: Tuple[str, ...] = ..., + ) -> None: ... + if sys.version_info >= (3, 8): + def replace( + self, + *, + co_argcount: int = ..., + co_posonlyargcount: int = ..., + co_kwonlyargcount: int = ..., + co_nlocals: int = ..., + co_stacksize: int = ..., + co_flags: int = ..., + co_firstlineno: int = ..., + co_code: bytes = ..., + co_consts: Tuple[Any, ...] = ..., + co_names: Tuple[str, ...] = ..., + co_varnames: Tuple[str, ...] = ..., + co_freevars: Tuple[str, ...] = ..., + co_cellvars: Tuple[str, ...] = ..., + co_filename: str = ..., + co_name: str = ..., + co_lnotab: bytes = ..., + ) -> CodeType: ... + +@final +class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]): + __hash__: None # type: ignore + def __init__(self, mapping: Mapping[_KT, _VT_co]) -> None: ... + def __getitem__(self, k: _KT) -> _VT_co: ... + def __iter__(self) -> Iterator[_KT]: ... + def __len__(self) -> int: ... + def copy(self) -> dict[_KT, _VT_co]: ... + def keys(self) -> KeysView[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def items(self) -> ItemsView[_KT, _VT_co]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + def __reversed__(self) -> Iterator[_KT]: ... + def __or__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + def __ror__( + self, __value: Mapping[_T1, _T2] + ) -> dict[_KT | _T1, _VT_co | _T2]: ... + +class SimpleNamespace: + __hash__: None # type: ignore + def __init__(self, **kwargs: Any) -> None: ... + def __getattribute__(self, name: str) -> Any: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __delattr__(self, name: str) -> None: ... + +class ModuleType: + __name__: str + __file__: str + __dict__: dict[str, Any] + __package__: str | None + def __init__(self, name: str, doc: str | None = ...) -> None: ... + +@final +class GeneratorType(Generator[_T_co, _T_contra, _V_co]): + gi_code: CodeType + gi_frame: FrameType + gi_running: bool + gi_yieldfrom: GeneratorType[_T_co, _T_contra, Any] | None + def __iter__(self) -> GeneratorType[_T_co, _T_contra, _V_co]: ... + def __next__(self) -> _T_co: ... + def close(self) -> None: ... + def send(self, __arg: _T_contra) -> _T_co: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> _T_co: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> _T_co: ... + +@final +class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]): + ag_await: Awaitable[Any] | None + ag_frame: FrameType + ag_running: bool + ag_code: CodeType + def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ... + def __anext__(self) -> Awaitable[_T_co]: ... + def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Awaitable[_T_co]: ... + @overload + def athrow( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Awaitable[_T_co]: ... + def aclose(self) -> Awaitable[None]: ... + +@final +class CoroutineType: + cr_await: Any | None + cr_code: CodeType + cr_frame: FrameType + cr_running: bool + def close(self) -> None: ... + def send(self, __arg: Any) -> Any: ... + @overload + def throw( + self, + __typ: Type[BaseException], + __val: BaseException | object = ..., + __tb: TracebackType | None = ..., + ) -> Any: ... + @overload + def throw( + self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ... + ) -> Any: ... + +class _StaticFunctionType: + """Fictional type to correct the type of MethodType.__func__. + + FunctionType is a descriptor, so mypy follows the descriptor protocol and + converts MethodType.__func__ back to MethodType (the return type of + FunctionType.__get__). But this is actually a special case; MethodType is + implemented in C and its attribute access doesn't go through + __getattribute__. + + By wrapping FunctionType in _StaticFunctionType, we get the right result; + similar to wrapping a function in staticmethod() at runtime to prevent it + being bound as a method. + """ + + def __get__(self, obj: object | None, type: type | None) -> FunctionType: ... + +@final +class MethodType: + __closure__: Tuple[_Cell, ...] | None # inherited from the added function + __defaults__: Tuple[Any, ...] | None # inherited from the added function + __func__: _StaticFunctionType + __self__: object + __name__: str # inherited from the added function + __qualname__: str # inherited from the added function + def __init__(self, func: Callable[..., Any], obj: object) -> None: ... + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +@final +class BuiltinFunctionType: + __self__: object | ModuleType + __name__: str + __qualname__: str + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + +BuiltinMethodType = BuiltinFunctionType + +if sys.version_info >= (3, 7): + @final + class WrapperDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class MethodWrapperType: + __self__: object + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __eq__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + @final + class MethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + @final + class ClassMethodDescriptorType: + __name__: str + __qualname__: str + __objclass__: type + def __call__(self, *args: Any, **kwargs: Any) -> Any: ... + def __get__(self, obj: Any, type: type = ...) -> Any: ... + +@final +class TracebackType: + if sys.version_info >= (3, 7): + def __init__( + self, + tb_next: TracebackType | None, + tb_frame: FrameType, + tb_lasti: int, + tb_lineno: int, + ) -> None: ... + tb_next: TracebackType | None + else: + @property + def tb_next(self) -> TracebackType | None: ... + # the rest are read-only even in 3.7 + @property + def tb_frame(self) -> FrameType: ... + @property + def tb_lasti(self) -> int: ... + @property + def tb_lineno(self) -> int: ... + +@final +class FrameType: + f_back: FrameType | None + f_builtins: dict[str, Any] + f_code: CodeType + f_globals: dict[str, Any] + f_lasti: int + f_lineno: int + f_locals: dict[str, Any] + f_trace: Callable[[FrameType, str, Any], Any] | None + if sys.version_info >= (3, 7): + f_trace_lines: bool + f_trace_opcodes: bool + def clear(self) -> None: ... + +@final +class GetSetDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +@final +class MemberDescriptorType: + __name__: str + __objclass__: type + def __get__(self, __obj: Any, __type: type = ...) -> Any: ... + def __set__(self, __instance: Any, __value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +if sys.version_info >= (3, 7): + def new_class( + name: str, + bases: Iterable[object] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + def resolve_bases(bases: Iterable[object]) -> Tuple[Any, ...]: ... + +else: + def new_class( + name: str, + bases: Tuple[type, ...] = ..., + kwds: dict[str, Any] | None = ..., + exec_body: Callable[[dict[str, Any]], None] | None = ..., + ) -> type: ... + +def prepare_class( + name: str, bases: Tuple[type, ...] = ..., kwds: dict[str, Any] | None = ... +) -> Tuple[type, dict[str, Any], dict[str, Any]]: ... + +# Actually a different type, but `property` is special and we want that too. +DynamicClassAttribute = property + +def coroutine(func: Callable[..., Any]) -> CoroutineType: ... + +if sys.version_info >= (3, 8): + CellType = _Cell + +if sys.version_info >= (3, 9): + class GenericAlias: + __origin__: type + __args__: Tuple[Any, ...] + __parameters__: Tuple[Any, ...] + def __init__(self, origin: type, args: Any) -> None: ... + def __getattr__(self, name: str) -> Any: ... # incomplete + +if sys.version_info >= (3, 10): + @final + class NoneType: + def __bool__(self) -> Literal[False]: ... + EllipsisType = ellipsis # noqa F811 from builtins + from builtins import _NotImplementedType + + NotImplementedType = _NotImplementedType # noqa F811 from builtins + @final + class UnionType: + __args__: Tuple[Any, ...] + def __or__(self, obj: Any) -> UnionType: ... + def __ror__(self, obj: Any) -> UnionType: ... diff --git a/lang/ga-ie/typeshed/stdlib/typing.pyi b/lang/ga-ie/typeshed/stdlib/typing.pyi new file mode 100644 index 0000000..a494557 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/typing.pyi @@ -0,0 +1,716 @@ +import collections # Needed by aliases like DefaultDict, see mypy issue 2986 +import sys +from abc import ABCMeta, abstractmethod +from types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType +from typing_extensions import Literal as _Literal + +if sys.version_info >= (3, 7): + from types import MethodDescriptorType, MethodWrapperType, WrapperDescriptorType + +if sys.version_info >= (3, 9): + from types import GenericAlias + +# Definitions of special type checking related constructs. Their definitions +# are not used, so their value does not matter. + +Any = object() + +class TypeVar: + __name__: str + __bound__: Optional[Type[Any]] + __constraints__: Tuple[Type[Any], ...] + __covariant__: bool + __contravariant__: bool + def __init__( + self, + name: str, + *constraints: Type[Any], + bound: Union[None, Type[Any], str] = ..., + covariant: bool = ..., + contravariant: bool = ..., + ) -> None: ... + +_promote = object() + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> object: ... + +_F = TypeVar("_F", bound=Callable[..., Any]) + +def overload(func: _F) -> _F: ... + +Union: _SpecialForm = ... +Optional: _SpecialForm = ... +Tuple: _SpecialForm = ... +Generic: _SpecialForm = ... +# Protocol is only present in 3.8 and later, but mypy needs it unconditionally +Protocol: _SpecialForm = ... +Callable: _SpecialForm = ... +Type: _SpecialForm = ... +ClassVar: _SpecialForm = ... +if sys.version_info >= (3, 8): + Final: _SpecialForm = ... + def final(f: _F) -> _F: ... + Literal: _SpecialForm = ... + # TypedDict is a (non-subscriptable) special form. + TypedDict: object + +if sys.version_info < (3, 7): + class GenericMeta(type): ... + +if sys.version_info >= (3, 10): + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Optional[Type[Any]] + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: Union[None, Type[Any], str] = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... + +# Return type that indicates a function does not return. +# This type is equivalent to the None type, but the no-op Union is necessary to +# distinguish the None type from the None value. +NoReturn = Union[None] + +# These type variables are used by the container types. +_T = TypeVar("_T") +_S = TypeVar("_S") +_KT = TypeVar("_KT") # Key type. +_VT = TypeVar("_VT") # Value type. +_T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers. +_V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers. +_KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers. +_VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers. +_T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant. +_TC = TypeVar("_TC", bound=Type[object]) + +def no_type_check(arg: _F) -> _F: ... +def no_type_check_decorator(decorator: _F) -> _F: ... + +# Type aliases and type constructors + +class _Alias: + # Class for defining generic aliases for library types. + def __getitem__(self, typeargs: Any) -> Any: ... + +List = _Alias() +Dict = _Alias() +DefaultDict = _Alias() +Set = _Alias() +FrozenSet = _Alias() +Counter = _Alias() +Deque = _Alias() +ChainMap = _Alias() + +if sys.version_info >= (3, 7): + OrderedDict = _Alias() + +if sys.version_info >= (3, 9): + Annotated: _SpecialForm = ... + +# Predefined type variables. +AnyStr = TypeVar("AnyStr", str, bytes) + +# Abstract base classes. + +def runtime_checkable(cls: _TC) -> _TC: ... +@runtime_checkable +class SupportsInt(Protocol, metaclass=ABCMeta): + @abstractmethod + def __int__(self) -> int: ... + +@runtime_checkable +class SupportsFloat(Protocol, metaclass=ABCMeta): + @abstractmethod + def __float__(self) -> float: ... + +@runtime_checkable +class SupportsComplex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __complex__(self) -> complex: ... + +@runtime_checkable +class SupportsBytes(Protocol, metaclass=ABCMeta): + @abstractmethod + def __bytes__(self) -> bytes: ... + +if sys.version_info >= (3, 8): + @runtime_checkable + class SupportsIndex(Protocol, metaclass=ABCMeta): + @abstractmethod + def __index__(self) -> int: ... + +@runtime_checkable +class SupportsAbs(Protocol[_T_co]): + @abstractmethod + def __abs__(self) -> _T_co: ... + +@runtime_checkable +class SupportsRound(Protocol[_T_co]): + @overload + @abstractmethod + def __round__(self) -> int: ... + @overload + @abstractmethod + def __round__(self, ndigits: int) -> _T_co: ... + +@runtime_checkable +class Sized(Protocol, metaclass=ABCMeta): + @abstractmethod + def __len__(self) -> int: ... + +@runtime_checkable +class Hashable(Protocol, metaclass=ABCMeta): + # TODO: This is special, in that a subclass of a hashable class may not be hashable + # (for example, list vs. object). It's not obvious how to represent this. This class + # is currently mostly useless for static checking. + @abstractmethod + def __hash__(self) -> int: ... + +@runtime_checkable +class Iterable(Protocol[_T_co]): + @abstractmethod + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Iterator(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __next__(self) -> _T_co: ... + def __iter__(self) -> Iterator[_T_co]: ... + +@runtime_checkable +class Reversible(Iterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __reversed__(self) -> Iterator[_T_co]: ... + +class Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]): + def __next__(self) -> _T_co: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + def close(self) -> None: ... + def __iter__(self) -> Generator[_T_co, _T_contra, _V_co]: ... + @property + def gi_code(self) -> CodeType: ... + @property + def gi_frame(self) -> FrameType: ... + @property + def gi_running(self) -> bool: ... + @property + def gi_yieldfrom(self) -> Optional[Generator[Any, Any, Any]]: ... + +@runtime_checkable +class Awaitable(Protocol[_T_co]): + @abstractmethod + def __await__(self) -> Generator[Any, None, _T_co]: ... + +class Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]): + __name__: str + __qualname__: str + @property + def cr_await(self) -> Optional[Any]: ... + @property + def cr_code(self) -> CodeType: ... + @property + def cr_frame(self) -> FrameType: ... + @property + def cr_running(self) -> bool: ... + @abstractmethod + def send(self, __value: _T_contra) -> _T_co: ... + @overload + @abstractmethod + def throw( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> _T_co: ... + @overload + @abstractmethod + def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ... + @abstractmethod + def close(self) -> None: ... + +# NOTE: This type does not exist in typing.py or PEP 484. +# The parameters correspond to Generator, but the 4th is the original type. +class AwaitableGenerator( + Awaitable[_V_co], Generator[_T_co, _T_contra, _V_co], Generic[_T_co, _T_contra, _V_co, _S], metaclass=ABCMeta +): ... + +@runtime_checkable +class AsyncIterable(Protocol[_T_co]): + @abstractmethod + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +@runtime_checkable +class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + def __aiter__(self) -> AsyncIterator[_T_co]: ... + +class AsyncGenerator(AsyncIterator[_T_co], Generic[_T_co, _T_contra]): + @abstractmethod + def __anext__(self) -> Awaitable[_T_co]: ... + @abstractmethod + def asend(self, __value: _T_contra) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow( + self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ... + ) -> Awaitable[_T_co]: ... + @overload + @abstractmethod + def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ... + @abstractmethod + def aclose(self) -> Awaitable[None]: ... + @abstractmethod + def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ... + @property + def ag_await(self) -> Any: ... + @property + def ag_code(self) -> CodeType: ... + @property + def ag_frame(self) -> FrameType: ... + @property + def ag_running(self) -> bool: ... + +@runtime_checkable +class Container(Protocol[_T_co]): + @abstractmethod + def __contains__(self, __x: object) -> bool: ... + +@runtime_checkable +class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]): + # Implement Sized (but don't have it as a base class). + @abstractmethod + def __len__(self) -> int: ... + +_Collection = Collection[_T_co] + +class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]): + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T_co: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> Sequence[_T_co]: ... + # Mixin methods + def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ... + def count(self, value: Any) -> int: ... + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __reversed__(self) -> Iterator[_T_co]: ... + +class MutableSequence(Sequence[_T], Generic[_T]): + @abstractmethod + def insert(self, index: int, value: _T) -> None: ... + @overload + @abstractmethod + def __getitem__(self, i: int) -> _T: ... + @overload + @abstractmethod + def __getitem__(self, s: slice) -> MutableSequence[_T]: ... + @overload + @abstractmethod + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + @abstractmethod + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: int) -> None: ... + @overload + @abstractmethod + def __delitem__(self, i: slice) -> None: ... + # Mixin methods + def append(self, value: _T) -> None: ... + def clear(self) -> None: ... + def extend(self, values: Iterable[_T]) -> None: ... + def reverse(self) -> None: ... + def pop(self, index: int = ...) -> _T: ... + def remove(self, value: _T) -> None: ... + def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ... + +class AbstractSet(_Collection[_T_co], Generic[_T_co]): + @abstractmethod + def __contains__(self, x: object) -> bool: ... + # Mixin methods + def __le__(self, s: AbstractSet[Any]) -> bool: ... + def __lt__(self, s: AbstractSet[Any]) -> bool: ... + def __gt__(self, s: AbstractSet[Any]) -> bool: ... + def __ge__(self, s: AbstractSet[Any]) -> bool: ... + def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ... + def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ... + def isdisjoint(self, other: Iterable[Any]) -> bool: ... + +class MutableSet(AbstractSet[_T], Generic[_T]): + @abstractmethod + def add(self, value: _T) -> None: ... + @abstractmethod + def discard(self, value: _T) -> None: ... + # Mixin methods + def clear(self) -> None: ... + def pop(self) -> _T: ... + def remove(self, value: _T) -> None: ... + def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ... + def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ... + +class MappingView(Sized): + def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocumented + def __len__(self) -> int: ... + +class ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]): + def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ... + +class KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]): + def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undocumented + def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rand__(self, o: Iterable[_T]) -> Set[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_KT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_KT_co]: ... + def __or__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __ror__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ... + def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ... + def __xor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + def __rxor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ... + +class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]): + def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_VT_co]: ... + if sys.version_info >= (3, 8): + def __reversed__(self) -> Iterator[_VT_co]: ... + +@runtime_checkable +class ContextManager(Protocol[_T_co]): + def __enter__(self) -> _T_co: ... + def __exit__( + self, + __exc_type: Optional[Type[BaseException]], + __exc_value: Optional[BaseException], + __traceback: Optional[TracebackType], + ) -> Optional[bool]: ... + +@runtime_checkable +class AsyncContextManager(Protocol[_T_co]): + def __aenter__(self) -> Awaitable[_T_co]: ... + def __aexit__( + self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Awaitable[Optional[bool]]: ... + +class Mapping(_Collection[_KT], Generic[_KT, _VT_co]): + # TODO: We wish the key type could also be covariant, but that doesn't work, + # see discussion in https: //github.com/python/typing/pull/273. + @abstractmethod + def __getitem__(self, k: _KT) -> _VT_co: ... + # Mixin methods + @overload + def get(self, key: _KT) -> Optional[_VT_co]: ... + @overload + def get(self, key: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ... + def items(self) -> AbstractSet[Tuple[_KT, _VT_co]]: ... + def keys(self) -> AbstractSet[_KT]: ... + def values(self) -> ValuesView[_VT_co]: ... + def __contains__(self, o: object) -> bool: ... + +class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]): + @abstractmethod + def __setitem__(self, k: _KT, v: _VT) -> None: ... + @abstractmethod + def __delitem__(self, v: _KT) -> None: ... + def clear(self) -> None: ... + @overload + def pop(self, key: _KT) -> _VT: ... + @overload + def pop(self, key: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ... + # 'update' used to take a Union, but using overloading is better. + # The second overloaded type here is a bit too general, because + # Mapping[Tuple[_KT, _VT], W] is a subclass of Iterable[Tuple[_KT, _VT]], + # but will always have the behavior of the first overloaded type + # at runtime, leading to keys of a mix of types _KT and Tuple[_KT, _VT]. + # We don't currently have any way of forcing all Mappings to use + # the first overload, but by using overloading rather than a Union, + # mypy will commit to using the first overload when the argument is + # known to be a Mapping with unknown type parameters, which is closer + # to the behavior we want. See mypy issue #1430. + @overload + def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + @overload + def update(self, **kwargs: _VT) -> None: ... + +Text = str + +TYPE_CHECKING = True + +class IO(Iterator[AnyStr], Generic[AnyStr]): + # TODO use abstract properties + @property + def mode(self) -> str: ... + @property + def name(self) -> str: ... + @abstractmethod + def close(self) -> None: ... + @property + def closed(self) -> bool: ... + @abstractmethod + def fileno(self) -> int: ... + @abstractmethod + def flush(self) -> None: ... + @abstractmethod + def isatty(self) -> bool: ... + @abstractmethod + def read(self, n: int = ...) -> AnyStr: ... + @abstractmethod + def readable(self) -> bool: ... + @abstractmethod + def readline(self, limit: int = ...) -> AnyStr: ... + @abstractmethod + def readlines(self, hint: int = ...) -> list[AnyStr]: ... + @abstractmethod + def seek(self, offset: int, whence: int = ...) -> int: ... + @abstractmethod + def seekable(self) -> bool: ... + @abstractmethod + def tell(self) -> int: ... + @abstractmethod + def truncate(self, size: Optional[int] = ...) -> int: ... + @abstractmethod + def writable(self) -> bool: ... + @abstractmethod + def write(self, s: AnyStr) -> int: ... + @abstractmethod + def writelines(self, lines: Iterable[AnyStr]) -> None: ... + @abstractmethod + def __next__(self) -> AnyStr: ... + @abstractmethod + def __iter__(self) -> Iterator[AnyStr]: ... + @abstractmethod + def __enter__(self) -> IO[AnyStr]: ... + @abstractmethod + def __exit__( + self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType] + ) -> Optional[bool]: ... + +class BinaryIO(IO[bytes]): + @abstractmethod + def __enter__(self) -> BinaryIO: ... + +class TextIO(IO[str]): + # TODO use abstractproperty + @property + def buffer(self) -> BinaryIO: ... + @property + def encoding(self) -> str: ... + @property + def errors(self) -> Optional[str]: ... + @property + def line_buffering(self) -> int: ... # int on PyPy, bool on CPython + @property + def newlines(self) -> Any: ... # None, str or tuple + @abstractmethod + def __enter__(self) -> TextIO: ... + +class ByteString(Sequence[int], metaclass=ABCMeta): ... + +class Match(Generic[AnyStr]): + pos: int + endpos: int + lastindex: Optional[int] + lastgroup: Optional[AnyStr] + string: AnyStr + + # The regular expression object whose match() or search() method produced + # this match instance. + re: Pattern[AnyStr] + def expand(self, template: AnyStr) -> AnyStr: ... + # group() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def group(self, __group: _Literal[0] = ...) -> AnyStr: ... + @overload + def group(self, __group: str | int) -> AnyStr | Any: ... + @overload + def group(self, __group1: str | int, __group2: str | int, *groups: str | int) -> Tuple[AnyStr | Any, ...]: ... + # Each item of groups()'s return tuple is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groups(self) -> Tuple[AnyStr | Any, ...]: ... + @overload + def groups(self, default: _T) -> Tuple[AnyStr | _T, ...]: ... + # Each value in groupdict()'s return dict is either "AnyStr" or + # "AnyStr | None", depending on the pattern. + @overload + def groupdict(self) -> dict[str, AnyStr | Any]: ... + @overload + def groupdict(self, default: _T) -> dict[str, AnyStr | _T]: ... + def start(self, __group: Union[int, str] = ...) -> int: ... + def end(self, __group: Union[int, str] = ...) -> int: ... + def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ... + @property + def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented + # __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern. + @overload + def __getitem__(self, __key: _Literal[0]) -> AnyStr: ... + @overload + def __getitem__(self, __key: int | str) -> AnyStr | Any: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +class Pattern(Generic[AnyStr]): + flags: int + groupindex: Mapping[str, int] + groups: int + pattern: AnyStr + def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ... + def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ... + def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ... + def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ... + @overload + def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def sub(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> AnyStr: ... + @overload + def subn(self, repl: AnyStr, string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + @overload + def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + if sys.version_info >= (3, 9): + def __class_getitem__(cls, item: Any) -> GenericAlias: ... + +# Functions + +if sys.version_info >= (3, 7): + _get_type_hints_obj_allowed_types = Union[ + object, + Callable[..., Any], + FunctionType, + BuiltinFunctionType, + MethodType, + ModuleType, + WrapperDescriptorType, + MethodWrapperType, + MethodDescriptorType, + ] +else: + _get_type_hints_obj_allowed_types = Union[ + object, Callable[..., Any], FunctionType, BuiltinFunctionType, MethodType, ModuleType, + ] + +if sys.version_info >= (3, 9): + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, + globalns: Optional[Dict[str, Any]] = ..., + localns: Optional[Dict[str, Any]] = ..., + include_extras: bool = ..., + ) -> Dict[str, Any]: ... + +else: + def get_type_hints( + obj: _get_type_hints_obj_allowed_types, globalns: Optional[Dict[str, Any]] = ..., localns: Optional[Dict[str, Any]] = ... + ) -> Dict[str, Any]: ... + +if sys.version_info >= (3, 8): + def get_origin(tp: Any) -> Optional[Any]: ... + def get_args(tp: Any) -> Tuple[Any, ...]: ... + +@overload +def cast(typ: Type[_T], val: Any) -> _T: ... +@overload +def cast(typ: str, val: Any) -> Any: ... +@overload +def cast(typ: object, val: Any) -> Any: ... + +# Type constructors + +# NamedTuple is special-cased in the type checker +class NamedTuple(Tuple[Any, ...]): + _field_types: collections.OrderedDict[str, Type[Any]] + _field_defaults: Dict[str, Any] = ... + _fields: Tuple[str, ...] + _source: str + def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., **kwargs: Any) -> None: ... + @classmethod + def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ... + if sys.version_info >= (3, 8): + def _asdict(self) -> Dict[str, Any]: ... + else: + def _asdict(self) -> collections.OrderedDict[str, Any]: ... + def _replace(self: _T, **kwargs: Any) -> _T: ... + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def __delitem__(self, k: NoReturn) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __or__(self: _T, __value: _T) -> _T: ... + def __ior__(self: _T, __value: _T) -> _T: ... + +def NewType(name: str, tp: Type[_T]) -> Type[_T]: ... + +# This itself is only available during type checking +def type_check_only(func_or_cls: _F) -> _F: ... + +if sys.version_info >= (3, 7): + class ForwardRef: + __forward_arg__: str + __forward_code__: CodeType + __forward_evaluated__: bool + __forward_value__: Optional[Any] + __forward_is_argument__: bool + def __init__(self, arg: str, is_argument: bool = ...) -> None: ... + def _evaluate(self, globalns: Optional[Dict[str, Any]], localns: Optional[Dict[str, Any]]) -> Optional[Any]: ... + def __eq__(self, other: Any) -> bool: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + +if sys.version_info >= (3, 10): + def is_typeddict(tp: Any) -> bool: ... diff --git a/lang/ga-ie/typeshed/stdlib/typing_extensions.pyi b/lang/ga-ie/typeshed/stdlib/typing_extensions.pyi new file mode 100644 index 0000000..59fe3df --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/typing_extensions.pyi @@ -0,0 +1,115 @@ +import abc +import sys +from typing import ( + TYPE_CHECKING as TYPE_CHECKING, + Any, + AsyncContextManager as AsyncContextManager, + AsyncGenerator as AsyncGenerator, + AsyncIterable as AsyncIterable, + AsyncIterator as AsyncIterator, + Awaitable as Awaitable, + Callable, + ChainMap as ChainMap, + ClassVar as ClassVar, + ContextManager as ContextManager, + Coroutine as Coroutine, + Counter as Counter, + DefaultDict as DefaultDict, + Deque as Deque, + ItemsView, + KeysView, + Mapping, + NewType as NewType, + NoReturn as NoReturn, + Text as Text, + Tuple, + Type as Type, + TypeVar, + ValuesView, + _Alias, + overload as overload, +) + +_T = TypeVar("_T") +_F = TypeVar("_F", bound=Callable[..., Any]) +_TC = TypeVar("_TC", bound=Type[object]) + +class _SpecialForm: + def __getitem__(self, typeargs: Any) -> Any: ... + +def runtime_checkable(cls: _TC) -> _TC: ... + +# This alias for above is kept here for backwards compatibility. +runtime = runtime_checkable +Protocol: _SpecialForm = ... +Final: _SpecialForm = ... + +def final(f: _F) -> _F: ... + +Literal: _SpecialForm = ... + +def IntVar(name: str) -> Any: ... # returns a new TypeVar + +# Internal mypy fallback type for all typed dicts (does not exist at runtime) +class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta): + def copy(self: _T) -> _T: ... + # Using NoReturn so that only calls using mypy plugin hook that specialize the signature + # can go through. + def setdefault(self, k: NoReturn, default: object) -> object: ... + # Mypy plugin hook for 'pop' expects that 'default' has a type variable type. + def pop(self, k: NoReturn, default: _T = ...) -> object: ... # type: ignore + def update(self: _T, __m: _T) -> None: ... + def items(self) -> ItemsView[str, object]: ... + def keys(self) -> KeysView[str]: ... + def values(self) -> ValuesView[object]: ... + def __delitem__(self, k: NoReturn) -> None: ... + +# TypedDict is a (non-subscriptable) special form. +TypedDict: object = ... + +OrderedDict = _Alias() + +def get_type_hints( + obj: Callable[..., Any], + globalns: dict[str, Any] | None = ..., + localns: dict[str, Any] | None = ..., + include_extras: bool = ..., +) -> dict[str, Any]: ... + +if sys.version_info >= (3, 7): + def get_args(tp: Any) -> Tuple[Any, ...]: ... + def get_origin(tp: Any) -> Any | None: ... + +Annotated: _SpecialForm = ... +_AnnotatedAlias: Any = ... # undocumented + +@runtime_checkable +class SupportsIndex(Protocol, metaclass=abc.ABCMeta): + @abc.abstractmethod + def __index__(self) -> int: ... + +# PEP 612 support for Python < 3.9 +if sys.version_info >= (3, 10): + from typing import Concatenate as Concatenate, ParamSpec as ParamSpec, TypeAlias as TypeAlias, TypeGuard as TypeGuard +else: + class ParamSpecArgs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpecKwargs: + __origin__: ParamSpec + def __init__(self, origin: ParamSpec) -> None: ... + class ParamSpec: + __name__: str + __bound__: Type[Any] | None + __covariant__: bool + __contravariant__: bool + def __init__( + self, name: str, *, bound: None | Type[Any] | str = ..., contravariant: bool = ..., covariant: bool = ... + ) -> None: ... + @property + def args(self) -> ParamSpecArgs: ... + @property + def kwargs(self) -> ParamSpecKwargs: ... + Concatenate: _SpecialForm = ... + TypeAlias: _SpecialForm = ... + TypeGuard: _SpecialForm = ... diff --git a/lang/ga-ie/typeshed/stdlib/uarray.pyi b/lang/ga-ie/typeshed/stdlib/uarray.pyi new file mode 100644 index 0000000..d1ba4d9 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/uarray.pyi @@ -0,0 +1 @@ +from array import * diff --git a/lang/ga-ie/typeshed/stdlib/ucollections.pyi b/lang/ga-ie/typeshed/stdlib/ucollections.pyi new file mode 100644 index 0000000..9400561 --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/ucollections.pyi @@ -0,0 +1 @@ +from collections import * diff --git a/lang/ga-ie/typeshed/stdlib/uerrno.pyi b/lang/ga-ie/typeshed/stdlib/uerrno.pyi new file mode 100644 index 0000000..5ecb44d --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/uerrno.pyi @@ -0,0 +1 @@ +from errno import * diff --git a/lang/ga-ie/typeshed/stdlib/urandom.pyi b/lang/ga-ie/typeshed/stdlib/urandom.pyi new file mode 100644 index 0000000..1c31bde --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/urandom.pyi @@ -0,0 +1 @@ +from random import * diff --git a/lang/ga-ie/typeshed/stdlib/ustruct.pyi b/lang/ga-ie/typeshed/stdlib/ustruct.pyi new file mode 100644 index 0000000..ee3a9fc --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/ustruct.pyi @@ -0,0 +1 @@ +from struct import * diff --git a/lang/ga-ie/typeshed/stdlib/usys.pyi b/lang/ga-ie/typeshed/stdlib/usys.pyi new file mode 100644 index 0000000..104052c --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/usys.pyi @@ -0,0 +1 @@ +from sys import * diff --git a/lang/ga-ie/typeshed/stdlib/utime.pyi b/lang/ga-ie/typeshed/stdlib/utime.pyi new file mode 100644 index 0000000..72705db --- /dev/null +++ b/lang/ga-ie/typeshed/stdlib/utime.pyi @@ -0,0 +1 @@ +from time import * diff --git a/scripts/build-translations.sh b/scripts/build-translations.sh index 2d7b383..f80485d 100755 --- a/scripts/build-translations.sh +++ b/scripts/build-translations.sh @@ -5,7 +5,7 @@ set -euxo pipefail -languages="ca de fr es-ES ja ko nl pl zh-CN zh-TW lol" +languages="ca de es-ES fr ga-IE ja ko nl pl zh-CN zh-TW lol" for language in $languages; do lower="${language,,}"